-
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
pip install fails with .../python3: can't find '__main__' module in '.../pep517/_in_process.py #7946
Comments
I've created a minimal reproducer: https://github.com/lazka/pip-pyproject-bug Just a basic pyproject.toml fails. I wonder why I'm the first to hit this, hm. |
Another data point: This doesn't fail on Arch Linux with the same pip/python, so might be a Debian only issue. |
Turns out forcing a pip install with "--force-reinstall" in the venv makes things work, so this is a broken pip in Debian which was also pulled into Ubuntu. I'll report this to Debian instead. |
Looks similar to #7874 (see sqlalchemy/sqlalchemy#5207). This is indeed a Debian issue, they patch parts of the Python standard distribution that makes PEP 517 fail. Please definitely report this to Debian; they are in the best position to fix this. In the mean time, there are workarounds in the linked issues to avoid force-reinstall pip. |
I've reported it to Debian: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=955414 |
Environment
Description
Sometime during the last week or two installing pygobject with pip has started to fail with (full log at the bottom):
This is before any of my setup.py code is executed so I don't know what is going on.
The only workaround I found so far is removing the "pyproject.toml" file which currently contains this:
Expected behavior
pip install succeeds like it did before
How to Reproduce
pip install pygobject
sudo apt install libgirepository1.0-dev gcc libcairo2-dev pkg-config python3-dev
Output
The text was updated successfully, but these errors were encountered: