displayotron icon indicating copy to clipboard operation
displayotron copied to clipboard

Does not install with pip and sudo

Open transilluminate opened this issue 1 year ago • 1 comments

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...! 😆

transilluminate avatar Jan 02 '24 17:01 transilluminate