-
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
pip 19.1 breaks Poetry #1049
Comments
This is intentional Pip behavior. They implemented it knowing full well it would break Poetry (see pypa/pip#6314). Basically, if you have a build-system defined in your pyproject.toml, Pip won’t let you install in editable mode, because technically that isn’t supported by PEP-517. There’s also a Poetry issue #826 that addresses it, though the title should probably be updated to be easier to find. Commenting out the build system piece of your pyproject.toml or using older versions of Pip are current workarounds. Note that the underlying issue of conflicting backend dependencies will happen even on Pip 19.0.3 |
In our case automated tests of python package using tox failed as tox is pulling the latest pip. Workaround is using tox-pip-version plugin allowing to declare pip to be installed into tox created virtualenv. In our case fixing the pip to version 19.0.3 fixed the problem (so our experience differers from the one of @dbanty ). |
I have an open PR that addresses this issue. Please give it some 🎉 , maybe someone will notice it then |
Fixed in 0.12.13. |
still facing this issue |
@ape364 the issue right now looks like is caused due to the |
@ape364 CI scripts shall have deterministic environment to run (as much as is feasible). For this reason we run our CI jobs for python packages (in GitLab) using docker image with pre-installed Anyway, even with this setup we have failed as |
but I see correct version in the log: $ pip --version
pip 19.0.3 from /home/travis/virtualenv/python3.7.1/lib/python3.7/site-packages/pip (python 3.7) As I understand, 19.1 breaks Poetry, but 19.0.3 should work 😞 |
@ape364 I think, you are right that pip 19.0.3 shall not break poetry (at least this is what we experienced with poetry==12.12). Anyway, I have noticed someone reporting that even pip 19.0.3 can break it. I thing it is wrong and reacted to that, but I got no feedback. (sorry, I cannot find the issue now, I think it was in poetry but could be also in pip.) |
@vlcinsky pip 19.0.3 broke if you used a private package index in your pyproject.toml. That said, the latest poetry release fixes this issue by temporarily deleting pyproject.toml, avoiding pip's pep 517 quirks. See commit 2ed53be @sfermigier can you verify that the latest stable version of poetry resolves this issue and close? |
@pappasam thanks for pip 19.0.3 clarification. Private index is important use case for us. We had another problem (installing from it, even poetry 12:14 does not installs) and we ended up using version 1.0.0a2. |
running poetry 12.14, still experiencing the issue |
Worked fine with |
Hmm, Still fails with
|
For me works with setup reported by @dsevero, doesn't work if I have poetry==0.12.15. |
python 3.7.2 It's a bit weird that works for some and doesn't for others. Could it be some other tool or library causing the problems, like setuptools? |
I'm not sure of what's going on with the internals here, but this may provide some insight (or further perplexity): So, I have a repo 'Y' on Github that uses regular virtualenv + pip 19.1.1. This repo in turn requires (through a requirements.txt file) another Github repo 'X' that uses poetry & pyproject.toml for its packaging. Cloning repo Y and running pip (19.1.1) install within the virtualenv succesfully installs the repo X package. However, I have another project, Z, which is also using poetry for package management and also requires repo X (an entry such as this in pyproject.toml: Hope that made sense. |
@riverfr0zen what version of poetry are you using? Did the problem hapṕen when using poetry version Another question: if you modify project Z and remove the dependency on project Y, is the problem still present? I guess, the problem will still be there. My understanding of your problems is as follows:
In any case, make sure you report proper version of poetry and pip you are using. |
Ok, somehow I missed upgrading to 0.12.15. Thanks for your reply. After upgrading, I cleared out the old virtualenv, cloned 'project Z', and tried to install and was successful. I did have to upgrade poetry's pip, but I'm not sure if that is because of something in my setup. Anyway, here were my steps in case someone finds it helpful.
The install was successful, including the git repo ('project Y'). |
Currently I can't use some packages because they require a higher pip version to be installed, which breaks poetry |
@Serkan-devel if you provide more specific details (which packages, what pip version is required, and mainly - what poetry version you are using), it shall be simpler to fix it. Namely: do you youse |
I'm using poetry 0.12.15 and tried to install
|
@Serkan-devel the message (which is actually a warning and not an error message) you report happens any time, you use pip older than the latest one. This has nothing to do with |
But doesn't poetry still break when using pip 19.1? |
@Serkan-devel the latest Use this issue to improve the situation by properly reporting problems you experience and provide enough details such as OS, pip and poetry version, packages making problems and details about the problems (such as error messages) |
Will open a newer issue because I have something different |
The only problem I've had so far is with No other issues so far! |
Because of this: python-poetry/poetry#1049
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. |
-vvv
option).Issue
After upgrading pip to version 19.1 (relased 5 hours ago), I can't install my projects using poetry anymore:
(Downgrading pip to 19.0.3 restores the usual behavior).
Not sure if it's a pip or a poetry issue, but I'm posting it here so that poetry users are aware of the issue.
The text was updated successfully, but these errors were encountered: