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 image pyats fails to build on latest ubuntu 24.04 (noble) #879

Closed
ghost opened this issue May 1, 2024 · 1 comment · Fixed by #883
Closed

Docker image pyats fails to build on latest ubuntu 24.04 (noble) #879

ghost opened this issue May 1, 2024 · 1 comment · Fixed by #883

Comments

@ghost
Copy link

ghost commented May 1, 2024

Docker image pyats is based on ubuntu:latest, which is version 24.04 (noble) since a couple of days. This ubuntu version uses a new pip, which refuses to replace files installed by apt.

Here an excerpt from the build log, the full log is at https://github.com/GNS3/gns3-registry/actions/runs/8906797643/job/24459523600

#17 [13/14] RUN python3 -m pip install --upgrade pip wheel setuptools
#17 0.321 error: externally-managed-environment
#17 0.321 
#17 0.321 × This environment is externally managed
#17 0.321 ╰─> To install Python packages system-wide, try apt install
#17 0.321     python3-xyz, where xyz is the package you are trying to
#17 0.321     install.
#17 0.321     
#17 0.321     If you wish to install a non-Debian-packaged Python package,
#17 0.321     create a virtual environment using python3 -m venv path/to/venv.
#17 0.321     Then use path/to/venv/bin/python and path/to/venv/bin/pip. Make
#17 0.321     sure you have python3-full installed.
#17 0.321     
#17 0.321     If you wish to install a non-Debian packaged Python application,
#17 0.321     it may be easiest to use pipx install xyz, which will manage a
#17 0.321     virtual environment for you. Make sure you have pipx installed.
#17 0.321     
#17 0.321     See /usr/share/doc/python3.12/README.venv for more information.
#17 0.321 
#17 0.321 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.
#17 0.321 hint: See PEP 668 for the detailed specification.
#17 ERROR: process "/bin/sh -c python3 -m pip install --upgrade pip wheel setuptools" did not complete successfully: exit code: 1

Until this is fixed (for example by the maintainer @xander-petty12093), the docker build tool should no longer build it. Therefore I will create a PR disabling building this docker image.

Copy link

llevier commented May 2, 2024

Hello
I also faced this situation, simply a python bug easy to solve:
find /usr/lib -name EXTERNALLY-MANAGED -exec rm -f {} ;
From this, python will work as before :-)

@grossmj grossmj linked a pull request May 9, 2024 that will close this issue
@grossmj grossmj closed this as completed May 9, 2024
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 a pull request may close this issue.

2 participants