pimoroni / inky

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

pip error with latest raspbian: inky install script not installing examples #198

Closed javl closed 2 months ago

javl commented 3 months ago

On the latest Raspbian, when installing the Inky examples using the curl https://get.pimoroni.com/inky | bash command, pip will throw the new "externally-managed-environment" error (see below).

I've fixed it for myself by editing the Inky bash script (line 833), adding the --break-system-packages flag to the pip install line.

From: if ! sudo -H $PIP3_BIN install --upgrade "$piplibname"; then to: if ! sudo -H $PIP3_BIN install --upgrade "$piplibname" --break-system-packages; then

Info on this error plus some solutions can be found here: https://pimylifeup.com/python-externally-managed-environment/

BreadMakesYouFull commented 3 months ago

This might be covered by https://github.com/pimoroni/inky/pull/182 Specifically: https://github.com/pimoroni/inky/pull/182/files#diff-043df5bdbf6639d7a77e1d44c5226fd7371e5259a1e4df3a0dd5d64c30dca44f

emilyboda commented 2 months ago

Is there any update on this? I am still having this issue.

I have manually edited the line mentioned by javl above and still get individual packages that are not installed properly.

helgibbons commented 2 months ago

Hi @emilyboda - assuming you're using Pi OS Bookworm you might have more success with the updated installer (and installation instructions) in #182 ?

emilyboda commented 2 months ago

I did try to install with those instructions and received errors for the examples. Is there any update on when the full non-beta version that works with the newest version of raspberry pi OS will be released? Or is there any information about which old version of raspberry Pi OS works with the existing instructions?

helgibbons commented 2 months ago

I did try to install with those instructions and received errors for the examples.

@emilyboda Please can you let us know the specific errors you're getting with the updated installer over on #182 ? Details of what Pi/Inky combo you have might also be handy.

helgibbons commented 2 months ago

Closing this one as we've now merged the new installer into main (but do let us know if anyone has any issues with the new installer).

There's updated install instructions in the readme: https://github.com/pimoroni/inky/blob/main/README.md

I've also updated our Inky pHAT and wHAT Learn Guides: https://learn.pimoroni.com/article/getting-started-with-inky-phat https://learn.pimoroni.com/article/getting-started-with-inky-what