-
Notifications
You must be signed in to change notification settings - Fork 11
Description
For my project we have a relay hat on the pi that is controlled by python code.
I use it with a pi4 and a pi5. If i install the INA260 library on the pi4 everything is fine.
if I install the INA260 library on a pi5 like this:
sudo pip3 install adafruit-circuitpython-ina260 --break-system-packages
(using the break packages flag was the only way i could figure out how to get it installed)
immediately the GPIO stops works and i get this error
Traceback (most recent call last):
File "/home/pi/Desktop/Mothbox/TakePhoto.py", line 54, in <module>
GPIO.setup(Relay_Ch1,GPIO.OUT)
RuntimeError: Cannot determine SOC peripheral base address
now the pi5 does have weird stuff with its GPIO pins, and this error comes up for instance if using the regular GPIO libraries. and so in the past i got around it by installing the lgpio library.
but now it doesn't matter if i have the lgpio library or not, whenever the ina260 library is installed it permanently breaks the setup.
also i cannot do pip3 uninstall either. it keeps it being broke. I have to flash a new image.