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

dev container configuration doesn't work #1080

Closed
giannoug opened this issue Dec 11, 2023 · 5 comments
Closed

dev container configuration doesn't work #1080

giannoug opened this issue Dec 11, 2023 · 5 comments

Comments

@giannoug
Copy link
Contributor

I've tried opening the project with dev containers both in my local machine and in GitHub Codespaces, but it always fails with the following error:

2023-12-11 15:45:09.526Z: #24 61.52 Installing Python tools...
2023-12-11 15:45:09.828Z: #24 61.77 Updating pip...2023-12-11 15:45:09.831Z: 
2023-12-11 15:45:09.946Z: #24 62.03 error: externally-managed-environment
#24 62.03 
#24 62.03 × This environment is externally managed
#24 62.03 ╰─> To install Python packages system-wide, try apt install
#24 62.03     python3-xyz, where xyz is the package you are trying to
#24 62.03     install.
2023-12-11 15:45:09.951Z: #24 62.03     
#24 62.03     If you wish to install a non-Debian-packaged Python package,
#24 62.03     create a virtual environment using python3 -m venv path/to/venv.
#24 62.03     Then use path/to/venv/bin/python and path/to/venv/bin/pip. Make
#24 62.03     sure you have python3-full installed.
#24 62.03     
#24 62.03     If you wish to install a non-Debian packaged Python application,
#24 62.03     it may be easiest to use pipx install xyz, which will manage a
#24 62.03     virtual environment for you. Make sure you have pipx installed.
#24 62.03     
#24 62.03     See /usr/share/doc/python3.11/README.venv for more information.
#24 62.03 
#24 62.03 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.
#24 62.03 hint: See PEP 668 for the detailed specification.
2023-12-11 15:45:10.097Z: #24 62.08 ERROR: Feature "Python" (ghcr.io/devcontainers/features/python) failed to install! Look at the documentation at ********/devcontainers/features/tree/main/src/python for help troubleshooting this error.
2023-12-11 15:45:10.831Z: #24 ERROR: process "/bin/sh -c cp -ar /tmp/build-features-src/python_9 /tmp/dev-container-features  && chmod -R 0755 /tmp/dev-container-features/python_9  && cd /tmp/dev-container-features/python_9  && chmod +x ./devcontainer-features-install.sh  && ./devcontainer-features-install.sh  && rm -rf /tmp/dev-container-features/python_9" did not complete successfully: exit code: 1

Can be easily reproduced. Click on "Use this template" and then "Open in a codespace"

@giannoug
Copy link
Contributor Author

giannoug commented Dec 11, 2023

@onedr0p
Copy link
Owner

onedr0p commented Dec 11, 2023

Would you be able to submit a PR?

@giannoug
Copy link
Contributor Author

Sure, but I've not managed to fully test dev containers, just start it. I believe it needs a bit of tweaking to have it fully working

@onedr0p
Copy link
Owner

onedr0p commented Dec 11, 2023

Anything you find out would be great. Although I made some changes and tested them I'm not using the devcontainer so it's best effort support on my end.

@onedr0p
Copy link
Owner

onedr0p commented Dec 14, 2023

I have changed this to bulleye for now 8f95451

If bookworm ever works in the future we can change back to it.

@onedr0p onedr0p closed this as completed Dec 14, 2023
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

No branches or pull requests

2 participants