Skip to content

Docker-in-docker - [Bug fix] : Fix externally-managed-environment python error for "bookworm" - #833

Merged
samruddhikhandale merged 2 commits into
mainfrom
samruddhikhandale/dnd-python
Feb 8, 2024
Merged

Docker-in-docker - [Bug fix] : Fix externally-managed-environment python error for "bookworm"#833
samruddhikhandale merged 2 commits into
mainfrom
samruddhikhandale/dnd-python

Conversation

@samruddhikhandale

@samruddhikhandale samruddhikhandale commented Feb 6, 2024

Copy link
Copy Markdown
Member

Closes: #832

Changes needed to the "docker-in-docker" Feature post Debian bookworm / PEP 668

If OS is bookworm, install from git releases instead.

@samruddhikhandale
samruddhikhandale requested a review from a team as a code owner February 6, 2024 22:05
@samruddhikhandale
samruddhikhandale merged commit d5ef6a7 into main Feb 8, 2024
@samruddhikhandale
samruddhikhandale deleted the samruddhikhandale/dnd-python branch February 8, 2024 17:16
@rubensa

rubensa commented Sep 12, 2024

Copy link
Copy Markdown
Contributor

@samruddhikhandale I think this should also be ported to docker-outside-of-docker, isn't it?

NOTE: I'm currently getting following error when installing docker-outside-of-docker on a Docker container based on mcr.microsoft.com/devcontainers/base:bookworm for arm64 architecture.

#12 90.97 error: externally-managed-environment
#12 90.97 
#12 90.97 × This environment is externally managed
#12 90.97 ╰─> To install Python packages system-wide, try apt install
#12 90.97     python3-xyz, where xyz is the package you are trying to
#12 90.97     install.
#12 90.97     
#12 90.97     If you wish to install a non-Debian-packaged Python package,
#12 90.97     create a virtual environment using python3 -m venv path/to/venv.
#12 90.97     Then use path/to/venv/bin/python and path/to/venv/bin/pip. Make
#12 90.97     sure you have python3-full installed.
#12 90.97     
#12 90.97     If you wish to install a non-Debian packaged Python application,
#12 90.97     it may be easiest to use pipx install xyz, which will manage a
#12 90.97     virtual environment for you. Make sure you have pipx installed.
#12 90.97     
#12 90.97     See /usr/share/doc/python3.11/README.venv for more information.
#12 90.97 
#12 90.97 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.
#12 90.97 hint: See PEP 668 for the detailed specification.

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

Successfully merging this pull request may close these issues.

Docker-in-docker: Fails on bookworm with error: externally-managed-environment

3 participants