-
Notifications
You must be signed in to change notification settings - Fork 3k
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
ImportError
when running pyproject.toml-based build, since the build-backend can't be found
#11770
Comments
I think this is the issue fixed by #11740. |
Upgraded Dockerfile to use Ubuntu 22.04 did correct the error. Still seems to be an error for 20.04. |
What's the workaround for the old ubuntu images? For some reason, I cannot bump the ubuntu version. |
setuptools
on the latest release of pip
I am running on 22.04 and this error still happens. Shall we reopen? |
per pypa/pip#11770 Signed-off-by: Jinzhe Zeng <jinzhe.zeng@rutgers.edu>
I can not reproduce on Ubuntu 22.04 with this: FROM ubuntu:22.04
RUN apt-get update \
&& apt-get install -y software-properties-common \
&& add-apt-repository ppa:deadsnakes/ppa \
&& apt-get update \
&& apt-get install -y build-essential curl python3.10-distutils python3.10-dev \
&& curl -sS https://bootstrap.pypa.io/get-pip.py | python3.10
RUN python3.10 -m pip install --no-binary=pyyaml pyyaml==5.4.1 This builds cleanly. Please provide a reproduction if you see errors. |
This comment was marked as off-topic.
This comment was marked as off-topic.
This comment was marked as off-topic.
This comment was marked as off-topic.
This comment was marked as off-topic.
This comment was marked as off-topic.
Last pip version introduces a bug with ubuntu 20 See pypa/pip#11770 So we decided to pin pip to version < 23.0
Last pip version introduces a bug with ubuntu 20 See pypa/pip#11770 So we decided to pin pip to version < 23.0 Thanks @jmaupetit @lunika
Last pip version introduces a bug with ubuntu 20 See pypa/pip#11770 So we decided to pin pip to version < 23.0 Thanks @jmaupetit @lunika
Is anyone able to reproduce this on platforms other than Ubuntu 20.04? |
I can't even reproduce it in an Ubuntu 20.04 container (but not the docker image) |
I've reproduced the problem on Ubuntu 20.04 with Python 3.10 from Ubuntu 22.04 comes with Python 3.10 and is not affected. @vmarkovtsev Would you like to share more details about the issue you found? |
ImportError
when running pyproject.toml-based build, since the build-backend can't be found
I can reproduce with the ubuntu:22.04 image, but with Python 3.11 from deadsnakes, not 3.10 which is already on 22.04 repositories. podman run -it --rm ubuntu:22.04
apt-get update && DEBIAN_FRONTEND=noninteractive apt-get install -y software-properties-common curl tzdata
add-apt-repository -y ppa:deadsnakes/ppa
apt-get update && apt-get install -y python3.11-dev
curl https://bootstrap.pypa.io/get-pip.py -sS | python3.11 # Installs pip 23.0, setuptools 67.1.0, wheel 0.38.4
python3.11 -m pip install --no-binary=pyyaml pyyaml==5.4.1 # No module named 'setuptools' |
Thank you @marcinwrochna. I confirm that #11740 fixes the issue with Python 3.11 from deadsnakes on Ubuntu 22.04 too. @pradyunsg I think we can close this issue now as all identified problems are solved by the already merged PR. |
hello, im having the same trouble but im on my kali linux, and this command is obviously not working. can you please help me with that? |
@lanadweik At the moment the workaround is to downgrade pip: |
After you downgrade pip, you can also check that the proposed resolution for this bug works for you too installing pip from the git repository: |
Description
Currently unable to install packages with the latest release of pip
Expected behavior
No response
pip version
23.0
Python version
3.10
OS
docker ubuntu20.04
How to Reproduce
Output
Code of Conduct
The text was updated successfully, but these errors were encountered: