-
Notifications
You must be signed in to change notification settings - Fork 2.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
Poetry 1.2.1 install fails to install packages with pip dependency #6567
Comments
This is related to walking back the use of the virtualenv seed pip -- I think we may need to add a special case for pip and upgrade it first (with no parallelism) when we are manipulating it to avoid this. |
If that's right then:
suggest that if someone can think of a cheap fix then great, but in that context I submit that it's not worth a lot of effort |
Poetry 1.1.x will not actually manipulate pip at all -- it is effectively blind to pip (try adding pip to a pyproject.toml, then check the lock file using 1.1.15). This is a new issue, but arguably not a regression as treating pip as just another dependency is a new capability of Poetry 1.2. Edit: upgrading pip before running Poetry is not really a solution as Poetry may want to change the version (or reinstall if the direct origin URL is different) based on the lock file -- Poetry would need to upgrade pip first before running the concurrent installer on all other dependencies. |
re upgrading pip: indeed it would be necessary to update to whatever version was written in the lock file. In this case that is the latest but ack that in principle it might not be |
maybe that poetry 1.1 behaviour suggests the cheap and good-enough-for-now fix is to reinstate pip among the That's still broken in principle - what if the project requires a version of pip that's different than the version that's currently in the environment? But depending on pip is pretty rare, then it's really quite unlikely that "some recent pip" is not good enough - it's probably a sticking plaster that would hold for some time. |
I'm not sure adding pip back to |
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.
This comment was marked as off-topic.
This comment was marked as off-topic.
This issue has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs. |
Poetry version: 1.2.1
Python version: 3.8.12
OS version and name: macOS 12.6 but same problem observed in docker built with python:3.8 as base image
pyproject.toml: https://gist.github.com/SfinxCZ/a8a80b14cc19c6631942adb2fb6ca3ff
I am on the latest stable Poetry version, installed using a recommended method.
I have searched the issues of this repo and believe that this is not a duplicate.
I have consulted the FAQ and blog for any relevant entries or release notes.
If an exception occurs when executing a command, I executed it again in debug mode (
-vvv
option) and have included the output below.Issue
After upgrading to poetry 1.2.1 I have encountered an issue where poetry fails to install project linked above (pyproject.toml). From what I've observed, the problem seems to occur, when the project depends on a library that has
pip
as its dependency (chalice
in this case). Then, during the installation poetry tries to upgradepip
to version listed in the poetry.lock file. However, other libraries that are being installed at the same moment requirepip
to be installed and installation fails - see the log here install.log.Reproducing this error is tricky as it seems to be a raise condition that depends on the parallelism used in the install step.
Downgrading to poetry 1.2.0 seems to fix the problem.
The text was updated successfully, but these errors were encountered: