Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
SIP Stopped Working After Update
#1
After attempting to update SIP software from my Pi's SIP page, SIP no longer functions and shows the following error when attempting to run sudo python sip.py:

Trackback (most recent call last):
File "sip.py", line 21, in <module>
import gv
File "/home/pi/SIP/gv.py", line 22
ver_str = f"{major_ver}.{minor_ver}.{revision - old_count}"

SyntaxError: invalid syntax

I was hoping to please get some help or feedback making my system work again? This system was running fine for 3 years until I attempted this update.

Andre'
Reply
#2
Make sure you are running SIP with python3.

You can check your default Python version with:
Code:
python --version
If you still have Python2. try starting SIP with python3 sip.py.
<p><br></p>
Reply
#3
(2024 May 16, 02:20 PM)dan Wrote: Make sure you are running SIP with python3.

You can check your default Python version with:
Code:
python --version
If you still have Python2. try starting SIP with python3 sip.py.

Dan I am getting this error with python 2.7 or python 3.4.2.  cannot get it to run. fyi I had a power outage while updating so I reinstalled SIP to no avail.

thanks, dick
Reply
#4
When you re-installed SIP did you also update to the latest Raspberry pi OS?
<p><br></p>
Reply
#5
(2024 Dec 10, 02:52 PM)dan Wrote: When you re-installed SIP did you also update to the latest Raspberry pi OS?

I did run update and upgrade.  I also tried to run the original install it tries to run but a gpio is stuck on.

then i created a new sdcard with latest OS and SIP.  SIP wont load.  I am suspecting something is damaged on the PI
Reply
#6
(2024 Dec 11, 02:58 PM)mrbeezer@gmail.com Wrote:
(2024 Dec 10, 02:52 PM)dan Wrote: When you re-installed SIP did you also update to the latest Raspberry pi OS?

I did run update and upgrade.  I also tried to run the original install it tries to run but a gpio is stuck on.

then i created a new sdcard with latest OS and SIP.  SIP wont load.  I am suspecting something is damaged on the PI

created a new system now I get this error: File "/usr/lib/python3/dist-packages/RPi/GPIO/__init__.py", line 428, in _get_rpi_info
    raise NotImplementedError(
NotImplementedError: This module does not understand old-style revision codes

I am using the latest OS and Python 3.1.1

Thanks, Dick
Reply
#7
I tried setting up a new SD card with rpi OS Lite (64 bit) and installed and ran SIP without a problem on a pi model B+.

What model Pi and OS version are you running?
<p><br></p>
Reply


Forum Jump:


Users browsing this thread: 6 Guest(s)