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

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

Closed
javl opened this issue Jul 23, 2024 · 6 comments
Closed

Comments

@javl
Copy link

javl commented Jul 23, 2024

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
Copy link

@emilyboda
Copy link

emilyboda commented Aug 27, 2024

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
Copy link
Contributor

helgibbons commented Aug 29, 2024

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

@emilyboda
Copy link

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
Copy link
Contributor

helgibbons commented Aug 30, 2024

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
Copy link
Contributor

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

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

4 participants