Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Error During Upgrade
#2
(2020 Apr 13, 06:19 PM)WVUTampaAlum Wrote: I did the upgrade through the UI and it never responded.  I rebooted my pi and saw that SIP was not running after reboot when it normally is.  I ssh'd into the pi and went to SIP dir and try to manually run it below cmd and getting error.

sudo python sip.py
Traceback (most recent call last):
  File "sip.py", line 22, in <module>
    import gv
  File "/home/pi/SIP/gv.py", line 117, in <module>
    pd = load_programs()  # Load program data from file
  File "/home/pi/SIP/helpers.py", line 558, in load_programs
    import convert_progs
  File "/home/pi/SIP/convert_progs.py", line 5
    import json
        ^
SyntaxError: invalid syntax
It looks like your are upgrading from SIP version 3 to version 4.
Version 4 has many changes including a new format for storing irrigation programs.

I would suggest that you rename the the sip folder to something like SIP-backup and do a fresh install from the Pi directory use:
git clone https://github.com/Dan-in-CA/SIP.git


Then you can copy your settings (programs.json, sd.json and snames.json) from the backup in SIP/data to the new install. There is a utility program in the SIP folder named convert.progs.py that will convert your programs.json to an new file named "programData.json". It will leave you old programs file intact as a backup.

Let me know how it goes
Dan
<p><br></p>
Reply


Messages In This Thread
Error During Upgrade - by WVUTampaAlum - 2020 Apr 13, 06:19 PM
RE: Error During Upgrade - by dan - 2020 Apr 13, 08:22 PM
RE: Error During Upgrade - by WVUTampaAlum - 2020 Apr 14, 01:13 AM
RE: Error During Upgrade - by dan - 2020 Apr 14, 03:49 AM
RE: Error During Upgrade - by WVUTampaAlum - 2020 Apr 14, 12:45 PM

Forum Jump:


Users browsing this thread: 1 Guest(s)