Posts: 652
Threads: 18
Joined: Aug 2015
Reputation:
22
i tried running the current version of SIP under Python2 and got the same error.
Dan
<p><br></p>
Posts: 33
Threads: 5
Joined: Oct 2015
Reputation:
0
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
Posts: 652
Threads: 18
Joined: Aug 2015
Reputation:
22
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
<p><br></p>