Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
SIP version 5.0.0 released (Python 3 only)
#1
8-19-2023

With the release of version 5.0.0 SIP will run under Python 3 only. Support for Python 2.x has been removed.

The latest Raspberry pi OS uses Python 3.9.2 as default.

If you are running an older version of Raspbian such as Buster it would be a good idea to upgrade to the latest Raspberry Pi OS

This release also includes a new Polish language translation.

A new node-red plugin is included by default but is not yet activated. It is usable but is still a work in progress. The documentation has not been finalized and the SIP irrigation nodes need to be published to the node-red library. This should happen within the next few days. 

8-23-2023
The SIP irrigation nodes can now be installed from the node-red library.
Open "Manage palette" (Alt Shift P) and search for "sip" or "irrigation". You should see a module named
" @sip-irrigation/node-red-sip-irrigation-nodes"

Dan
<p><br></p>
Reply
#2
I'm getting this error after update:
Traceback (most recent call last):
  File "sip.py", line 21, in <module>
    import gv
  File "/opt/SIP/gv.py", line 106, in <module>
    from helpers import load_programs, station_names
  File "/opt/SIP/helpers.py", line 329
    return f"{h:d}:{m:02d}:{s:02d}"

- I have try to delete and install SIP again the error continues, the only way was to install Rassberry OS again and SIP.
Reply
#3
Same error here.

I copied back an old SIP directory that works.
Reply
#4
Thank you for reporting the errors.

I got the same errors as you when I tried to run SIP under Python 2.7.16.

The latest Raspberry pi OS uses Python 3.9.2 as default.

If you are running an older version of Raspbian such as Buster it would be a good idea to upgrade to the latest Raspberry Pi OS
<p><br></p>
Reply
#5
On Python 3.7.3 there is an issue with importlib metadata. SIP will not start due to the absence of importlib (with metadata) and/or importlib_metadata.
I couldn't find an apt package to install the required lib.

--Gerard
Reply
#6
(2023 Aug 24, 03:34 PM)astrogerard Wrote: On Python 3.7.3 there is an issue with importlib metadata. SIP will not start due to the absence of importlib (with metadata) and/or importlib_metadata.
I couldn't find an apt package to install the required lib.

--Gerard

I had to downgrade the version of cheroot to 8.6.0 so it will run under Python 3.7.3.
It seems to be working now.

Dan
<p><br></p>
Reply
#7
(2023 Aug 24, 07:45 PM)dan Wrote:
(2023 Aug 24, 03:34 PM)astrogerard Wrote: On Python 3.7.3 there is an issue with importlib metadata. SIP will not start due to the absence of importlib (with metadata) and/or importlib_metadata.
I couldn't find an apt package to install the required lib.

--Gerard

I had to downgrade the version of cheroot to 8.6.0 so it will run under Python 3.7.3.
It seems to be working now.

Dan


Hi Dan,

Tried again but unfortunately it gives another blocking error.

Code:
Traceback (most recent call last):
  File "sip.py", line 331, in <module>
    app.run()
  File "sip.py", line 250, in run
    return web.httpserver.runsimple(func, (ip, port))
  File "/home/sip/SIP/web/httpserver.py", line 167, in runsimple
    server = WSGIServer(server_address, func)
  File "/home/sip/SIP/web/httpserver.py", line 188, in WSGIServer
    from cheroot import wsgi
ImportError: cannot import name 'wsgi' from 'cheroot' (unknown location)


At the moment I haven't time to take a deeper dive in this. Hopefully in a few weeks there are some weeks less busy so I can do more on SIP.

--Gerard
Reply
#8
(2023 Aug 25, 03:55 PM)astrogerard Wrote:
(2023 Aug 24, 07:45 PM)dan Wrote:
(2023 Aug 24, 03:34 PM)astrogerard Wrote: On Python 3.7.3 there is an issue with importlib metadata. SIP will not start due to the absence of importlib (with metadata) and/or importlib_metadata.
I couldn't find an apt package to install the required lib.

--Gerard

I had to downgrade the version of cheroot to 8.6.0 so it will run under Python 3.7.3.
It seems to be working now.

Dan


Hi Dan,

Tried again but unfortunately it gives another blocking error.

Code:
Traceback (most recent call last):
  File "sip.py", line 331, in <module>
    app.run()
  File "sip.py", line 250, in run
    return web.httpserver.runsimple(func, (ip, port))
  File "/home/sip/SIP/web/httpserver.py", line 167, in runsimple
    server = WSGIServer(server_address, func)
  File "/home/sip/SIP/web/httpserver.py", line 188, in WSGIServer
    from cheroot import wsgi
ImportError: cannot import name 'wsgi' from 'cheroot' (unknown location)


At the moment I haven't time to take a deeper dive in this. Hopefully in a few weeks there are some weeks less busy so I can do more on SIP.

--Gerard

Gerard,
What versions of SIP, python, and and OS are you running?

Dan
<p><br></p>
Reply
#9
There was a problem with the cheroot directory.
It is fixed now.

Dan
<p><br></p>
Reply
#10
Thanks fix ed for me on version: 5.0.5 (2023-08-26)
Reply


Forum Jump:


Users browsing this thread: 8 Guest(s)