pimoroni / inky

Combined library for V2/V3 Inky pHAT and Inky wHAT.
https://shop.pimoroni.com/?q=inky
MIT License
575 stars 121 forks source link

Can't get Inky to work on Raspberry Pi Zero 2 W #186

Closed BoardGames482 closed 7 months ago

BoardGames482 commented 7 months ago

I will update/edit this with more information later this week when I can copy the exact output from my Pi

I am trying to get Inky to work with a 5.7" (600 x 448 pixel) Inky Impression screen. I just flashed a new SD card with bullseye (v11) for my Raspberry Pi Zero 2 W I'm running into some confusing issues and hope you can help.

Depending on the example I run (clone repo -> cd into examples dir -> python3 clear.py , for example) I am stopped by an import issue due to SMBus or the Hanken fonts.

< will fill in with more detail later this week > 
< will fill in with more detail later this week > 

Things I have tried:

JeppeJonHolt commented 7 months ago

I had the same problem. I got it to work using the prerelease for the pi 5: https://github.com/pimoroni/inky/pull/182 but have not gotten i to function with the older version. So we might just have to wait for it to release ;)

BoardGames482 commented 7 months ago

@JeppeJonHolt thank you very much this did solve my issue.

For any others with the same issue here is some additional detail on how I solved it: The prerelease did work, HOWEVER since I had already installed the inky package and some pre-requisites with sudo (as per instructions/guides) which needed to be rectified.

  1. Install pre-release per #182
  2. Attempt to run examples... doesn't work because it can't find smbus2
  3. Deactivate virtual env and uninstall smbus and smbus2 as root from both python2/3 :
    sudo pip uninstall smbus2 / sudo pip uninstall smbus
    sudo pip3 uninstall smbus2 / sudo pip3 uninstall smbus
  4. Reactivate environment then install smbus (not as root) pip install smbus2
  5. Now the examples work (mostly)

For all other packages (such as the fonts, numpy etc) that were installed as root, repeat steps 3 & 4 to fix.

Gadgetoid commented 7 months ago

Note: I have updated the instructions on the pull-request for the Bookworm/Pi 5 compatible version https://github.com/pimoroni/inky/pull/182