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

Does not install with pip and sudo #69

Open
transilluminate opened this issue Jan 2, 2024 · 1 comment
Open

Does not install with pip and sudo #69

transilluminate opened this issue Jan 2, 2024 · 1 comment

Comments

@transilluminate
Copy link

Hi! I have a dot3k, and I'm re-installing on a Pi4 / Raspberry Pi OS Lite (64bit Debian Bookworm).

I needed to alter the script at get.pimoroni.com/displayotron to install. After each sudo pip install command I needed to add a flag to allow it to install to the system packages. See the diff:

822c822
<             if ! sudo -H $PIP2_BIN install --upgrade "$piplibname"; then
---
>             if ! sudo -H $PIP2_BIN install --upgrade "$piplibname" --break-system-packages; then
833c833
<             if ! sudo -H $PIP3_BIN install --upgrade "$piplibname"; then
---
>             if ! sudo -H $PIP3_BIN install --upgrade "$piplibname" --break-system-packages; then
890c890
<                     sudo -H $PIP2_BIN install "$moredep"
---
>                     sudo -H $PIP2_BIN install "$moredep" --break-system-packages
898c898
<                     sudo -H $PIP3_BIN install "$moredep"
---
>                     sudo -H $PIP3_BIN install "$moredep" --break-system-packages
907c907
<                 sudo -H $PIP2_BIN install "$pipdep"
---
>                 sudo -H $PIP2_BIN install "$pipdep" --break-system-packages
910c910
<                 sudo -H $PIP3_BIN install "$pipdep"
---
>                 sudo -H $PIP3_BIN install "$pipdep" --break-system-packages

Perhaps a more elegant way would be to use a venv, but the board needs root access anyway...! 😆

@gazhay
Copy link

gazhay commented Aug 14, 2024

Even after this patch I still can't get it to install :-(

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

2 participants