jaedb / Iris

Discover, explore and manage your music library across multiple sources with this beautiful web-based interface. Iris is a Mopidy frontend extension.
Apache License 2.0
1.13k stars 132 forks source link

Cannot build for Debian Bookworm #940

Open orontee opened 9 months ago

orontee commented 9 months ago

Iris version

3.69.2

Operating system(s) affected

Browser(s) affected

What happened?

I was notified that version 3.69.3 is available, I clicked the "Upgrade to ..." button but nothing happened.

From the logs, it seems related to the "externally managed environment" problem when calling pip install --upgrade.

Logs

janv. 04 21:58:30 argos sudo[9551]:   mopidy : PWD=/ ; USER=root ; COMMAND=/usr/local/lib/python3.11/dist-packages/mopidy_iris/system.sh upgrade
janv. 04 21:58:30 argos sudo[9551]: pam_unix(sudo:session): session opened for user root(uid=0) by (uid=107)
janv. 04 21:58:30 argos mopidy[9376]: INFO     [Thread-15] mopidy_iris.system sudo python3 -m pip install --upgrade mopidy-iris
janv. 04 21:58:30 argos sudo[9553]:     root : PWD=/ ; USER=root ; COMMAND=/usr/bin/python3 -m pip install --upgrade mopidy-iris
janv. 04 21:58:30 argos sudo[9553]: pam_unix(sudo:session): session opened for user root(uid=0) by (uid=0)
janv. 04 21:58:34 argos mopidy[9554]: error: externally-managed-environment
janv. 04 21:58:34 argos mopidy[9554]: × This environment is externally managed
janv. 04 21:58:34 argos mopidy[9554]: ╰─> To install Python packages system-wide, try apt install
janv. 04 21:58:34 argos mopidy[9554]:     python3-xyz, where xyz is the package you are trying to
janv. 04 21:58:34 argos mopidy[9554]:     install.
janv. 04 21:58:34 argos mopidy[9554]:     
janv. 04 21:58:34 argos mopidy[9554]:     If you wish to install a non-Debian-packaged Python package,
janv. 04 21:58:34 argos mopidy[9554]:     create a virtual environment using python3 -m venv path/to/venv.
janv. 04 21:58:34 argos mopidy[9554]:     Then use path/to/venv/bin/python and path/to/venv/bin/pip. Make
janv. 04 21:58:34 argos mopidy[9554]:     sure you have python3-full installed.
janv. 04 21:58:34 argos mopidy[9554]:     
janv. 04 21:58:34 argos mopidy[9554]:     For more information visit http://rptl.io/venv
janv. 04 21:58:34 argos mopidy[9554]: note: If you believe this is a mistake, please contact your Python installation or OS distribution provider. You can override this, at the risk of breaking your Python installation or OS, by passing --break-system-packages.
jaedb commented 7 months ago

Can be fixed by adding this to Dockerfile:

ENV PIP_BREAK_SYSTEM_PACKAGES 1
orontee commented 2 weeks ago

AFAICT the issue isn't related to Docker.