You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The Adafruit_GPIO library is now archived and so does not correctly support later versions of Raspberry Pi and OS. The plan is to replace this with smbus2.
This stacktrace occurred on a Raspberry Pi 4 with 'Bullseye' Raspberry Pi OS:
File "/usr/local/lib/python3.9/dist-packages/ina219.py", line 116, in __init__
self._i2c = I2C.get_i2c_device(address=address, busnum=busnum)
File "/usr/local/lib/python3.9/dist-packages/Adafruit_GPIO/I2C.py", line 63, in get_i2c_device
busnum = get_default_bus()
File "/usr/local/lib/python3.9/dist-packages/Adafruit_GPIO/I2C.py", line 55, in get_default_bus
raise RuntimeError('Could not determine default I2C bus for platform.')
RuntimeError: Could not determine default I2C bus for platform.
A work-around for this is described in the readme.
The text was updated successfully, but these errors were encountered:
The Adafruit_GPIO library is now archived and so does not correctly support later versions of Raspberry Pi and OS. The plan is to replace this with smbus2.
This stacktrace occurred on a Raspberry Pi 4 with 'Bullseye' Raspberry Pi OS:
A work-around for this is described in the readme.
The text was updated successfully, but these errors were encountered: