Suitable gpio chip not found
Hello!
I had a setup on an RPi 4 chugging along in a corner for a while. I forgot about it until recently and checked the URL and the page was not working/was down.
I was able to ssh in just fine (it's headless) and run a whole sudo apt update
and sudo apt full-upgrade
and then reboot.
Still nothing. So, I took a look at the config and also looked at the repo, turns out there was newer stuff! So I copied out my data folder and removed the entire enviroplusweb folder and did a new git clone.
Then I attempted to execute python enviroplusweb.py
(without putting the data back yet) and received the below:
Woah there, suitable gpiochip not found!
✅ GPIO22: (line 22) found - /dev/gpiochip4 (pinctrl-bcm2711)!
⚠️ GPIO22: (line 22, GPIO22) currently claimed by enviroplusweb-PMS5003_en
❌ GPIO22: not found - /dev/gpiochip1 (raspberrypi-exp-gpio)!
✅ GPIO22: (line 22) found - /dev/gpiochip0 (pinctrl-bcm2711)!
⚠️ GPIO22: (line 22, GPIO22) currently claimed by enviroplusweb-PMS5003_en
I haven't physically touched the device, and the onboard screen for the Enviro+ seems to display things fine which leads me to assume (perhaps incorrectly?) that the physical devices are fine and connected.
I went back through the bookworm install instructions (this is running bookworm, not trixie) to validate the raspi-config
settings, firmware file, and installed packages.
Any suggestions or anything I can provide to help troubleshoot?
Thank you!