-
Notifications
You must be signed in to change notification settings - Fork 2.9k
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
azure-nspkg update breaks pipenv compatibility for some packages #3481
Comments
Hi @jafreck azure-mgmt-nspkg 3.0 has a dependency on azure-nspkg 3.0, BUT they are tagged to be not installable on Python 3. So there is definitely a pipenv bug here: my guess is pipenv download azure-mgmt-nspkg 3.0 by mistake (it shouldn't, see bug #3447 ), and then this one requires azure-nspkg>=3.0 (which is not compatible with Python 3.0, hence the bug). So pipenv deduces from azure-mgmt-nspkg 3.0 that it needs azure-ngpkt==3.0, and deduces at the same time from python_requires that it can't install 3.0 ( I'm amazed honestly by the number of re-implementation of the PyPI protocol that does not respect official PEPs.... I would have not expected that at all... Side note, I'm curious to see if Poetry is better here (they claim to have the best dependency solver, at least better than pipenv). |
Released azure-nspkg 3.0.1 and azure-mgmt-nspkg 3.0.1 that does not use There is too many people impacted, even if I did nothing wrong, and it's third-party issues, to just do nothing. Hopefully this fixes all issues, so closing here. |
Thanks for the update @lmazuel. I think I understand the issue now, but just to be clear:
So, pipenv seems to respect that PEP only partially. Probably when it finds the dependencies, it does not respect that identifier, but when it goes to actually generate the lock file & install, it does. This seems like a major issue since pipenv is "standard tooling" under github.com/pypa. I will try to investigate this and raise it with them. |
@lmazuel I have updated the
If I downgrade the |
This is related to #3447. The latest change & release of
azure-nspkg
brokepipenv
compatibility for some of the packages.For example, for
azure-mgmt-batch
, here is repro:pipenv install
output:The error indicates that somehow
azure-nspkg>=3.0.0
is required, yet not found. It's likely not found since that version specifies python2 only, but I'm not sure why it is required at all.I checked a number of the azure-mgmt packages including
azure-mgmt-applicationinsights
andazure-mgmt-documentdb
and this occurred behavior occurred for those packages as well.Installing using
pip
seems to work for python3. I can see thatazure-nspkg==2.0.0
is pulled. I'm not sure why it is being installed considering it was not specified in theazure-mgmt-batch
setup.py. Is it being injected somehow?Here is the output from a pip install in a clean virtualenv:
python3.5 -m venv env && source env/bin/activate && pip install --upgrade pip==18.0.0 && pip install azure-mgmt-batch==5.0.1
:This output indicates that
azure-mgmt-nspkg
is a direct dependency ofazure-mgmt-batch
.The text was updated successfully, but these errors were encountered: