Skip to content

Installing the Library on my pi5 bookworm breaks my python GPIO calls #29

@quitmeyer

Description

@quitmeyer

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions