You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I've searched other issues and no duplicate issues were found.
I'm convinced that this is not my fault but a bug.
Description
When building the container (./setup-dev-env.sh -y docker) on a host using pip >= 23.0.1 (e.g. Ubuntu >= 23.10), the build fail on the install of pipx with error: externally-managed-environment.
Expected behavior
No error when building the container ; successful build.
Actual behavior
Failed build :
error: externally-managed-environment
× This environment is externally managed
╰─> To install Python packages system-wide, try apt install
python3-xyz, where xyz is the package you are trying to
install.
If you wish to install a non-Debian-packaged Python package,
create a virtual environment using python3 -m venv path/to/venv.
Then use path/to/venv/bin/python and path/to/venv/bin/pip. Make
sure you have python3-full installed.
If you wish to install a non-Debian packaged Python application,
it may be easiest to use pipx install xyz, which will manage a
virtual environment for you. Make sure you have pipx installed.
See /usr/share/doc/python3.12/README.venv for more information.
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.
hint: See PEP 668 for the detailed specification.
Steps to reproduce
Use pip >= 23.0 on the host
Download the repo with git clone https://github.com/autowarefoundation/autoware.git
cd autoware
Attempt to build the container with ./setup-dev-env.sh -y --no-nvidia docker
Wait for the error to appear
Versions
OS : Ubuntu 24.04 (probably also on 23.10, untested)
PEP 668 (May 2021) marks Python default environment as "externally managed", making it so that one can't use pip to install packages in the default env (as performed in setup-dev-env.sh on line 182 :
Checklist
Description
When building the container (
./setup-dev-env.sh -y docker
) on a host using pip >= 23.0.1 (e.g. Ubuntu >= 23.10), the build fail on the install ofpipx
witherror: externally-managed-environment
.Expected behavior
No error when building the container ; successful build.
Actual behavior
Failed build :
Steps to reproduce
git clone https://github.com/autowarefoundation/autoware.git
cd autoware
./setup-dev-env.sh -y --no-nvidia docker
Versions
Possible causes
PEP 668 (May 2021) marks Python default environment as "externally managed", making it so that one can't use pip to install packages in the default env (as performed in
setup-dev-env.sh
on line 182 :Additional context
No response
The text was updated successfully, but these errors were encountered: