Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
installation issues
#11
Be sure you are running Python3
On the command line try:
Code:
python --version
It should show something like Python 3.9.2
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
<p><br></p>
Reply
#12
i tried running the current version of SIP under Python2 and got the same error.

Dan
<p><br></p>
Reply
#13
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
Reply
#14
A search on google found this solution:
Code:
find . -name \*.pyc -delete
Let me know if it helps.

Dan
<p><br></p>
Reply
#15
Photo 
(2023 Oct 10, 03:28 PM)dan Wrote: A search on google found this solution:
Code:
find . -name \*.pyc -delete
Let me know if it helps.

Dan

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
Reply
#16
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>
Reply
#17
(2023 Oct 11, 02:51 PM)dan Wrote: 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

Yep all good with 5.0.40. Thank you for all your efforts. 

It's a great app.

David
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)