installation issues - Printable Version +- SIP (https://nosack.com/sipforum) +-- Forum: SIP (Sustainable Irrigation Platform) (https://nosack.com/sipforum/forumdisplay.php?fid=1) +--- Forum: Installation and set up questions (https://nosack.com/sipforum/forumdisplay.php?fid=2) +--- Thread: installation issues (/showthread.php?tid=314) Pages:
1
2
|
RE: installation issues - dan - 2023 Oct 09 Be sure you are running Python3 On the command line try: Code: python --version SIP now requires Python3 which is the default in raspberry Pi OS. I just cloned a fresh copy of SIP from GitHub and did not see any error. Python six was used to help python code work on both Python 2 and 3. Dan RE: installation issues - dan - 2023 Oct 09 i tried running the current version of SIP under Python2 and got the same error. Dan RE: installation issues - DavidCNZ - 2023 Oct 10 Thanks Dan, it's been on python 3 for quite some time but it appears I have both 2 and 3 installed. If I run it under 3 I get this: xxxx@raspberrypi:~/SIP $ sudo python3 sip.py MQTT publish UP Ignoring exception while loading the mqtt_zones plug-in. bad magic number in 'six': b'\x03\xf3\r\n' Ignoring exception while loading the plugin_manager plug-in. bad magic number in 'six': b'\x03\xf3\r\n' plugins loaded: mobile_app mqtt mqtt_hass mqtt_schedule system_update Starting timing loop Traceback (most recent call last): File "sip.py", line 340, in <module> app.run() File "sip.py", line 258, in run return web.httpserver.runsimple(func, (ip, port)) File "/home/pi/SIP/web/httpserver.py", line 167, in runsimple server = WSGIServer(server_address, func) File "/home/pi/SIP/web/httpserver.py", line 188, in WSGIServer from cheroot import wsgi File "/home/pi/SIP/cheroot/wsgi.py", line 33, in <module> import six ImportError: bad magic number in 'six': b'\x03\xf3\r\n' MQTT publish DOWN Python versions: xxx@raspberrypi:~ $ python --version Python 2.7.16 xxxx@raspberrypi:~ $ python3 --version Python 3.7.3 David RE: installation issues - dan - 2023 Oct 10 A search on google found this solution: Code: find . -name \*.pyc -delete Dan RE: installation issues - DavidCNZ - 2023 Oct 10 (2023 Oct 10, 03:28 PM)dan Wrote: A search on google found this solution: Thanks Dan, that's got it up again. Something is still not quite right yet but it's only cosmetic. The CPU Temp shows 42.0&DEGC I'll see if scheduled programs run during the day. David RE: installation issues - dan - 2023 Oct 11 The temp display has been fixed now. Glad things are working. A major upgrade like this can be painful. Sorry for the problems but it was necessary. Many of the Python libraries that SIP uses no longer support Python2 in their current revisions. Dan RE: installation issues - DavidCNZ - 2023 Oct 11 (2023 Oct 11, 02:51 PM)dan Wrote: The temp display has been fixed now. Yep all good with 5.0.40. Thank you for all your efforts. It's a great app. David |