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

Cannot build for Debian Bookworm #940

Open
2 of 10 tasks
orontee opened this issue Jan 4, 2024 · 2 comments
Open
2 of 10 tasks

Cannot build for Debian Bookworm #940

orontee opened this issue Jan 4, 2024 · 2 comments
Labels
bug confirmed A bug that has successfully been replicated and can be resolved in progress

Comments

@orontee
Copy link
Contributor

orontee commented Jan 4, 2024

Iris version

3.69.2

Operating system(s) affected

  • Windows
  • MacOS
  • iOS
  • Android
  • Linux
  • Other

Browser(s) affected

  • Firefox
  • Chrome
  • Edge
  • Other

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.
@orontee orontee added the bug label Jan 4, 2024
@jaedb
Copy link
Owner

jaedb commented Mar 18, 2024

Can be fixed by adding this to Dockerfile:

ENV PIP_BREAK_SYSTEM_PACKAGES 1

@jaedb jaedb changed the title Upgrade button doesn't work as expected when Mopidy-Iris is served from Debian Bookworm Cannot build for Debian Bookworm Mar 18, 2024
@jaedb jaedb added in progress confirmed A bug that has successfully been replicated and can be resolved labels Mar 18, 2024
@orontee
Copy link
Contributor Author

orontee commented Oct 12, 2024

AFAICT the issue isn't related to Docker.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug confirmed A bug that has successfully been replicated and can be resolved in progress
Projects
None yet
Development

No branches or pull requests

2 participants