Hello looking for some additional assistance. I installed Kivy-reef directly on my reef-pi because I was not able to get the systemd service working but when I start it I get an error. But I only get the error when the config is pointed to itself (
http://127.0.0.1) When I point it to another location, working or not it runs.
Error output as follows:
(kivy_venv)
pi@ReefTank:
~ $ python3 /home/pi/kivy-reef/main.py
[
INFO ] [Logger ] Record log in /home/pi/.kivy/logs/kivy_22-04-29_13.txt
[
INFO ] [Kivy ] v2.1.0
[
INFO ] [Kivy ] Installed at "/home/pi/kivy_venv/lib/python3.9/site-packages/kivy/__init__.py"
[
INFO ] [Python ] v3.9.2 (default, Mar 12 2021, 04:06:34)
[GCC 10.2.1 20210110]
[
INFO ] [Python ] Interpreter at "/home/pi/kivy_venv/bin/python3"
[
INFO ] [Logger ] Purge log fired. Processing...
[
INFO ] [Logger ] Purge finished!
[
INFO ] [Factory ] 189 symbols loaded
[
INFO ] [Image ] Providers: img_tex, img_dds, img_sdl2, img_pil (img_ffpyplayer ignored)
[
INFO ] [Text ] Provider: sdl2(['text_pango'] ignored)
[
INFO ] [Window ] Provider: sdl2(['window_egl_rpi'] ignored)
[
INFO ] [GL ] Using the "OpenGL" graphics system
[
INFO ] [GL ] Backend used <sdl2>
[
INFO ] [GL ] OpenGL version <b'2.1 Mesa 20.3.5'>
[
INFO ] [GL ] OpenGL vendor <b'Broadcom'>
[
INFO ] [GL ] OpenGL renderer <b'VC4 V3D 2.1'>
[
INFO ] [GL ] OpenGL parsed version: 2, 1
[
INFO ] [GL ] Shading version <b'1.20'>
[
INFO ] [GL ] Texture max size <2048>
[
INFO ] [GL ] Texture max units <16>
[
INFO ] [Window ] auto add sdl2 input provider
[
INFO ] [Window ] virtual keyboard not allowed, single mode, not docked
[
INFO ] [GL ] NPOT texture support is available
Traceback (most recent call last):
File "/home/pi/kivy-reef/main.py", line 157, in <module>
ReefpiApp().run()
File "/home/pi/kivy_venv/lib/python3.9/site-packages/kivy/app.py", line 954, in run
self._run_prepare()
File "/home/pi/kivy_venv/lib/python3.9/site-packages/kivy/app.py", line 924, in _run_prepare
root = self.build()
File "/home/pi/kivy-reef/main.py", line 146, in build
if not self.connect():
File "/home/pi/kivy-reef/main.py", line 137, in connect
self.build_widgets()
File "/home/pi/kivy-reef/main.py", line 124, in build_widgets
self.ph_dict = PhDict(self.connection)
File "/home/pi/kivy-reef/sensors.py", line 53, in __init__
super(PhDict, self).__init__(c)
File "/home/pi/kivy-reef/entity.py", line 92, in __init__
self.populateDict() # Populate the dictionary by creating entity objects
File "/home/pi/kivy-reef/entity.py", line 152, in populateDict
new_item = self.createItem(attributes, self.connection)
File "/home/pi/kivy-reef/sensors.py", line 56, in createItem
new_item = PhWidget(attributes.get('id'), attributes.get('name'), c)
File "/home/pi/kivy-reef/sensors.py", line 45, in __init__
self.update()
File "/home/pi/kivy-reef/entity.py", line 32, in update
new_value = round(self.___get_last_reading(), 2)
TypeError: type NoneType doesn't define __round__ method