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

Devcontainer Build Failure - Maybe pip Package? #25842

Closed
CodeMan99 opened this issue Jul 12, 2023 · 3 comments · Fixed by #26422
Closed

Devcontainer Build Failure - Maybe pip Package? #25842

CodeMan99 opened this issue Jul 12, 2023 · 3 comments · Fixed by #26422
Labels

Comments

@CodeMan99
Copy link

Description

Log: https://gist.github.com/CodeMan99/4b3ab939a1d1a0f6f6afe09f0a8cced2

For some reason I am unable to use the devcontainer as configured. I get an error about a python environment error. Snippet:

31.81 Updating pip...
32.13 error: externally-managed-environment
32.13
32.13 × This environment is externally managed
32.13 ╰─> To install Python packages system-wide, try apt install
32.13     python3-xyz, where xyz is the package you are trying to
32.13     install.
32.13
32.13     If you wish to install a non-Debian-packaged Python package,
32.13     create a virtual environment using python3 -m venv path/to/venv.
32.13     Then use path/to/venv/bin/python and path/to/venv/bin/pip. Make
32.13     sure you have python3-full installed.
32.13
32.13     If you wish to install a non-Debian packaged Python application,
32.13     it may be easiest to use pipx install xyz, which will manage a
32.13     virtual environment for you. Make sure you have pipx installed.
32.13
32.13     See /usr/share/doc/python3.11/README.venv for more information.
32.13
32.13 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.
32.13 hint: See PEP 668 for the detailed specification.
32.18 ERROR: Feature "Python" (ghcr.io/devcontainers/features/python) failed to install! Look at the documentation at https://github.com/devcontainers/features/tree/main/src/python for help troubleshooting this error.

Gitea Version

d1e066f

Can you reproduce the bug on the Gitea demo site?

No

Log Gist

No response

Screenshots

No response

Git Version

No response

Operating System

No response

How are you running Gitea?

Not Applicable.

Database

None

@CodeMan99
Copy link
Author

cc @techknowlogick @yp05327

@philippbeckmann
Copy link
Contributor

philippbeckmann commented Jul 14, 2023

see also: devcontainers/features#577

Edit: Pinning the image to the Debian Bullseye version seems to solve the problem for a start, as there have been changes to the python config in the new Bookworm release.
"image": "mcr.microsoft.com/devcontainers/go:1.20-bullseye",

@techknowlogick
Copy link
Member

Thanks @philippbeckmann I've created a PR with that change #26422

silverwind pushed a commit that referenced this issue Aug 10, 2023
fixes #25842

credit to philippbeckmann for discovering this
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Sep 25, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants