Skip to content

Devcontainer Build Failure - Maybe pip Package? #25842

Closed
@CodeMan99

Description

@CodeMan99

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions