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

[docker-outside-of-docker] Fix externally-managed-environment python error for "bookworm" #1120

Closed
samruddhikhandale opened this issue Sep 12, 2024 · 2 comments · Fixed by #1121

Comments

@samruddhikhandale
Copy link
Member

          @samruddhikhandale I think this should also be ported to [docker-outside-of-docker](https://github.com/devcontainers/features/tree/main/src/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.

Originally posted by @rubensa in #833 (comment)

@samruddhikhandale
Copy link
Member Author

@gauravsaini04 / @prathameshzarkar9 Can you help take a look? Let's validate and to add similar changes for the [docker-outside-of-docker] Feature.

@gauravsaini04
Copy link
Contributor

Have raised pr #1121 for the issue

samruddhikhandale added a commit that referenced this issue Sep 24, 2024
…n error for "bookworm" - solution to issue #1120 (#1121)

* [docker-outside-of-docker] - solution to issue #1120

* minor changes

* err fn addition

* changes as required

* Update src/docker-outside-of-docker/devcontainer-feature.json

Co-authored-by: Samruddhi Khandale <[email protected]>

* remove debugging code

* missed this change

* reverting changes

* keeping docker_compose_install to be false for v1 installs

* changes as requested

* changes as required

---------

Co-authored-by: Samruddhi Khandale <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
2 participants