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
I had an Enviro+ running for a year on a Pi ZeroW before I decided to upgrade the OS to latest, and completely broke the operation of the Enviro+.
I did a fresh install of the previous OS version and have almost everything running again except the PMS5003. Pulling down the latest driver from here an running examples/all.py give the following error
Woah there, suitable gpiochip not found!
PIN15: not found - /dev/gpiochip0 (pinctrl-bcm2835)
Re-running install.sh did some magic, got rid of the gpiochip error but then lead to the following error:
File "/usr/local/lib/python3.9/dist-packages/gpiodevice/__init__.py", line 138, in get_pin
chip = find_chip_by_pins(pin)
File "/usr/local/lib/python3.9/dist-packages/gpiodevice/errors.py", line 45, in wrapper
errors.append(next(i))
File "/usr/local/lib/python3.9/dist-packages/gpiodevice/__init__.py", line 108, in find_chip_by_pins
for pin_id in pins:
TypeError: 'int' object is not iterable
I had an Enviro+ running for a year on a Pi ZeroW before I decided to upgrade the OS to latest, and completely broke the operation of the Enviro+.
I did a fresh install of the previous OS version and have almost everything running again except the PMS5003. Pulling down the latest driver from here an running examples/all.py give the following error
Re-running install.sh did some magic, got rid of the gpiochip error but then lead to the following error:
The solution seems to be
pip install RPi.GPIO
replace
/usr/local/lib/python3.9/dist-packages/pms5003/__init__.py
with the one from this commit
https://raw.githubusercontent.com/pimoroni/pms5003-python/406801133aaa7489dd4b967890c1cab7a656a4aa/library/pms5003/__init__.py
After that the examples work perfectly.
The text was updated successfully, but these errors were encountered: