SIP
SIP version 5.0.0 released (Python 3 only) - Printable Version

+- SIP (https://nosack.com/sipforum)
+-- Forum: SIP (Sustainable Irrigation Platform) (https://nosack.com/sipforum/forumdisplay.php?fid=1)
+--- Forum: Announcements (https://nosack.com/sipforum/forumdisplay.php?fid=10)
+--- Thread: SIP version 5.0.0 released (Python 3 only) (/showthread.php?tid=312)

Pages: 1 2


SIP version 5.0.0 released (Python 3 only) - dan - 2023 Aug 19

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


RE: SIP version 5.0.0 released (Python 3 only) - DrLabel - 2023 Aug 23

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.


RE: SIP version 5.0.0 released (Python 3 only) - snpeter - 2023 Aug 24

Same error here.

I copied back an old SIP directory that works.


RE: SIP version 5.0.0 released (Python 3 only) - dan - 2023 Aug 24

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


RE: SIP version 5.0.0 released (Python 3 only) - astrogerard - 2023 Aug 24

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


RE: SIP version 5.0.0 released (Python 3 only) - dan - 2023 Aug 24

(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


RE: SIP version 5.0.0 released (Python 3 only) - astrogerard - 2023 Aug 25

(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


RE: SIP version 5.0.0 released (Python 3 only) - dan - 2023 Aug 25

(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


RE: SIP version 5.0.0 released (Python 3 only) - dan - 2023 Aug 26

There was a problem with the cheroot directory.
It is fixed now.

Dan


RE: SIP version 5.0.0 released (Python 3 only) - draggaj - 2023 Aug 27

Thanks fix ed for me on version: 5.0.5 (2023-08-26)