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
121 stars 42 forks source link

examples/hat-mini/output.py does not run #33

Closed BryanCrotaz closed 3 years ago

BryanCrotaz commented 4 years ago

Downloaded this repo master as zip onto a Pi (having installed libraries as per instructions in readme)

Unzipped, then ran python examples/hat-mini/output.py

Error:

File "output.py", line 17, in <module>
  import ST7735 as ST7735
ImportError: No module named ST7735
Gadgetoid commented 4 years ago

That's, odd. ST7735 is a dependency of this library. However, I think you might be running into this because this library is shipped with Raspbian and ST7735 is not.

You should be able to fix by running sudo pip install --upgrade automationhat

BryanCrotaz commented 4 years ago

I guessed at sudo pip install st7735 and it worked.