adafruit / adafruit/Adafruit_CircuitPython_INA260
Installing the Library on my pi5 bookworm breaks my python GPIO calls
- Dominant language
- Python
- Stars
- 15
- Forks
- 11
- PR merge metrics
- No merged PRs in 30d
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
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.
Contributor guide
No contributing guide indexed for this repository
Research direction
Start with the installation command in the issue and the failing GPIO.setup call at TakePhoto.py line 54, comparing behavior on the Pi 4 and Pi 5 Bookworm environments. Reproduce the failure before and after installing or uninstalling the INA260 library; done means GPIO.setup works on the Pi 5 without requiring a re-flashed image.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- python, raspberry-pi
- Domain
- embedded-iot
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 25/100