pimoroni / automation-hat

Python library and examples for the Pimoroni Automation HAT, pHAT and HAT Mini
https://shop.pimoroni.com/products/automation-hat
MIT License
122 stars 41 forks source link

No module named 'gpiodevice' #58

Closed roger-richards closed 4 months ago

roger-richards commented 7 months ago

Using PiZeroW (I know, old but what I had..) Used following guide to install nodejs on PiZeroW: https://hassancorrigan.com/blog/install-nodejs-on-a-raspberry-pi-zero/ Installed Pimoroni software as documented on their site. Enabled I2C via sudo raspi-config

Tried to run output.py and generated error: No module named 'gpiod' googled and installed: sudo pip3 install smbus

same error: No module named 'gpiod' googled more and installed: sudo apt install libgpiod-dev python3-libgpiod different error: No module named 'gpiodevice' googled more and installed: sudo pip3 install ST7735 same error: No module named 'gpiodevice'

Any suggestions? I've searched throughly.

roger-richards commented 7 months ago

duh! had to pip3 install gpiodevice

Gadgetoid commented 7 months ago

Oof, it might be that Automation HAT is relying on some libraries that have been updated, but which don't properly list their dependencies 😬

I should probably get around to updating Automation HAT itself.

Full details of why everything is a miserable nightmare right now: https://github.com/pimoroni/boilerplate-python/pull/13

And an ongoing progress report: https://github.com/pimoroni/boilerplate-python/issues/16

helgibbons commented 4 months ago

Hopefully things should be working better now that everything's updated and merged in!

Up-to-date installation instructions can be found here and here.

Closing this one for now.