Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Python3 compatible version now available
#8
Dan, first of all, many thanks for all the work you are doing on SIP to get it working under Python3.

Since winter has arrived and the valves are disconnected it is time to migrate to new versions of the OS, Python and SIP. Just to give some feedback about the upgrade proces I must say it went almost without any problem.

On the Raspberry Pi 3 (Model B Rev 1.2) I started with a new raspbian 10 (buster) lite image and ran a headless setup. Then installed Python 3.7.3, python3-RPi.GPI, python3-paho-mqtt, git and of course cloned SIP.

When starting SIP it failed with:

Code:
Traceback (most recent call last):
  File "sip.py", line 6, in <module>
    from future import standard_library
  File "/home/sip/SIP/future/standard_library/__init__.py", line 64, in <module>
    import logging
  File "/usr/lib/python3.7/logging/__init__.py", line 26, in <module>
    import sys, os, time, io, traceback, warnings, weakref, collections.abc
  File "/usr/lib/python3.7/traceback.py", line 3, in <module>
    import collections
  File "/usr/lib/python3.7/collections/__init__.py", line 27, in <module>
    from reprlib import recursive_repr as _recursive_repr
  File "/home/sip/SIP/reprlib/__init__.py", line 7, in <module>
    raise ImportError('\n To run SIP under Python 3 '
ImportError:
To run SIP under Python 3  Please rename the folder reprlib.
In the SIP directory, use the command:
mv reprlib reprlib-bak

After removing reprlib SIP started succesfully.
Then copy/paste'd some config files and ran convert_progs. All went fine 
The plugins I use at the moment are: Relay board, MQTT, MQTT Zone Broadcaster and CLI Control.

I noticed after starting manually a station for a certain amount of time the home screen isn't updated. I can't remember if it did in the old version.

So the migration went very well. Thanks again Dan for the good work!

--Gerard
Reply


Messages In This Thread
Python3 compatible version now available - by dan - 2019 Dec 01, 05:39 PM
RE: Python3 compatible version now available - by astrogerard - 2019 Dec 07, 07:06 PM

Forum Jump:


Users browsing this thread: 8 Guest(s)