Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Closed
BoardGames482 opened this issue Jan 22, 2024 · 3 comments
Closed

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

BoardGames482 opened this issue Jan 22, 2024 · 3 comments

Comments

@BoardGames482
Copy link

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.

  • Failure to import SMBus from smbus2
< will fill in with more detail later this week > 
  • Failure to import HankenGroteskBold from font_hanken_grotesk
< will fill in with more detail later this week > 

Things I have tried:

  • using the bash script: curl https://get.pimoroni.com/inky | bash (it seemed to detect ISC and SPI and all the packages I had installed with no issues)
  • installing with the rpi and example-depends options: pip3 install inky[rpi,example-depends]
  • enabling SPI and ISC through the rpi-config
  • installing packages through apt and pip
  • some other steps that I forgot (will try to update later)
@JeppeJonHolt
Copy link

JeppeJonHolt commented Jan 26, 2024

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

@BoardGames482
Copy link
Author

@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 Port to gpiod for Bookworm/Pi 5 and beyond #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
  1. Reactivate environment then install smbus (not as root) pip install smbus2
  2. 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
Copy link
Member

Note: I have updated the instructions on the pull-request for the Bookworm/Pi 5 compatible version #182

This issue was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants