but now it seems there is a general problem with numpy(?):
after the configuration finished the lights didn't turn on or show any sign of life
sudo systemctl status hyperion-yeelight-bridge.service
returned
"libf77blas.so.3: cannot open shared object file: No such file or directory"
so after a quick google search i ran
sudo apt-get install libatrlas-base-dev and restarted the service
now i get the following error from sudo systemctl status hyperion-yeelight-bridge.service
pi@raspberrypi:~ $ sudo systemctl status hyperion-yeelight-bridge.service
● hyperion-yeelight-bridge.service - Hyperion Yeelight Bridge
Loaded: loaded (/etc/systemd/system/hyperion-yeelight-bridge.service; enabled; vendor preset: enabled)
Active: failed (Result: exit-code) since Fri 2020-04-10 16:31:57 CEST; 23min ago
Process: 1960 ExecStart=/home/pi/hyperion-yeelight-bridge/bridge.py (code=exited, status=1/FAILURE)
Main PID: 1960 (code=exited, status=1/FAILURE)
Apr 10 16:31:57 raspberrypi bridge.py[1960]: Traceback (most recent call last):
Apr 10 16:31:57 raspberrypi bridge.py[1960]: File "/usr/lib/python3.7/threading.py", line 917, in _bootstrap_inner
Apr 10 16:31:57 raspberrypi bridge.py[1960]: self.run()
Apr 10 16:31:57 raspberrypi bridge.py[1960]: File "/usr/lib/python3.7/threading.py", line 865, in run
Apr 10 16:31:57 raspberrypi bridge.py[1960]: self._target(*self._args, **self._kwargs)
Apr 10 16:31:57 raspberrypi bridge.py[1960]: File "/home/pi/hyperion-yeelight-bridge/bridge.py", line 45, in _player_status
Apr 10 16:31:57 raspberrypi bridge.py[1960]: if speed['result']['speed'] > 0:
Apr 10 16:31:57 raspberrypi bridge.py[1960]: KeyError: 'result'
Apr 10 16:31:57 raspberrypi systemd[1]: hyperion-yeelight-bridge.service: Main process exited, code=exited, status=1/FAILURE
Apr 10 16:31:57 raspberrypi systemd[1]: hyperion-yeelight-bridge.service: Failed with result 'exit-code'.
Alles anzeigen
weirdly when i check the installed version of numpy i get the following
i@raspberrypi:~ $ python -c "import numpy; print(numpy.__version__)"
Traceback (most recent call last):
File "<string>", line 1, in <module>
ImportError: No module named 'numpy'
(the command might be wrong though)
if i check installed packages via "pip list" then numpy shows up as version 1.16.2 (NOT the required 1.17.2 as specified on gitlab/req.txt)
however, trying to uninstall numpy via "pip uninstall numpy" returns
pi@raspberrypi:~ $ pip uninstall numpy
Not uninstalling numpy at /usr/lib/python2.7/dist-packages, outside environment /usr
Can't uninstall 'numpy'. No files were found to uninstall.
uninstalling via "pip3 uninstall numpy" on the other hand returns
Uninstalling numpy-1.18.2:
Would remove:
/usr/local/bin/f2py
/usr/local/bin/f2py3
/usr/local/bin/f2py3.7
/usr/local/lib/python3.7/dist-packages/numpy-1.18.2.dist-info/*
/usr/local/lib/python3.7/dist-packages/numpy/*
Would not remove (outside of prefix):
/usr/bin/f2py
/usr/bin/f2py3
/usr/bin/f2py3.7
Proceed (y/n)? y
Successfully uninstalled numpy-1.18.2
Alles anzeigen
so i installed the exact version specified by squizzy v1.17.2 via "pip3 install numpy==1.17.2 which returned
Looking in indexes: https://pypi.org/simple, https://www.piwheels.org/simple
Collecting numpy==1.17.2
Downloading https://www.piwheels.org/simple/numpy/numpy-1.17.2-cp37-cp37m-linux_armv7l.whl (10.5MB)
100% |████████████████████████████████| 10.5MB 42kB/s
Installing collected packages: numpy
Found existing installation: numpy 1.16.2
Not uninstalling numpy at /usr/lib/python3/dist-packages, outside environment /usr
Can't uninstall 'numpy'. No files were found to uninstall.
Successfully installed numpy-1.17.2
now when i check pip3 list numpy shows up as v 1.17.2
but i still get the same error when checking hyperion-yeelight-bridge.service status
systemctl status hyperion-yeelight-bridge.service
● hyperion-yeelight-bridge.service - Hyperion Yeelight Bridge
Loaded: loaded (/etc/systemd/system/hyperion-yeelight-bridge.service; enabled; vendor preset: enabled)
Active: failed (Result: exit-code) since Fri 2020-04-10 17:16:49 CEST; 5s ago
Process: 3874 ExecStart=/home/pi/hyperion-yeelight-bridge/bridge.py (code=exited, status=1/FAILURE)
Main PID: 3874 (code=exited, status=1/FAILURE)
Apr 10 17:16:49 raspberrypi bridge.py[3874]: Traceback (most recent call last):
Apr 10 17:16:49 raspberrypi bridge.py[3874]: File "/usr/lib/python3.7/threading.py", line 917, in _bootstrap_inner
Apr 10 17:16:49 raspberrypi bridge.py[3874]: self.run()
Apr 10 17:16:49 raspberrypi bridge.py[3874]: File "/usr/lib/python3.7/threading.py", line 865, in run
Apr 10 17:16:49 raspberrypi bridge.py[3874]: self._target(*self._args, **self._kwargs)
Apr 10 17:16:49 raspberrypi bridge.py[3874]: File "/home/pi/hyperion-yeelight-bridge/bridge.py", line 45, in _player_status
Apr 10 17:16:49 raspberrypi bridge.py[3874]: if speed['result']['speed'] > 0:
Apr 10 17:16:49 raspberrypi bridge.py[3874]: KeyError: 'result'
Apr 10 17:16:49 raspberrypi systemd[1]: hyperion-yeelight-bridge.service: Main process exited, code=exited, status=1/FAILURE
Apr 10 17:16:49 raspberrypi systemd[1]: hyperion-yeelight-bridge.service: Failed with result 'exit-code'.
Alles anzeigen
does anybody have an idea? Would be much appreciated
:edit
pip3 freeze lists numpy 1.17.2
pip freeze still lists numpy 1.16.2
running sudo python3 bridge.py manually returns
pi@raspberrypi:~/hyperion-yeelight-bridge $ sudo python3 bridge.py
Traceback (most recent call last):
File "bridge.py", line 155, in <module>
HyperionYeelightBridge(kodi, yeelights, hyperion_port)
File "bridge.py", line 65, in __init__
self.socket.bind(("", port))
TypeError: an integer is required (got type str)
Exception in thread Thread-1:
Traceback (most recent call last):
File "/usr/lib/python3.7/threading.py", line 917, in _bootstrap_inner
self.run()
File "/usr/lib/python3.7/threading.py", line 865, in run
self._target(*self._args, **self._kwargs)
File "bridge.py", line 45, in _player_status
if speed['result']['speed'] > 0:
KeyError: 'result'
Alles anzeigen