-
-
Notifications
You must be signed in to change notification settings - Fork 615
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
Strange exception when executing on a requirements.txt containing a URL to a tarball #416
Comments
It seems to be the same for "-e" requirements. |
Similar to That said, nameless dependencies would be useful / less annoying sometimes, even if they're somewhat fundamentally crippled for a dependency manager. Might become an option in the long run? |
The
So here's the expected meaningful error. @Groxx pip 9.0.0 dropped the support for the autodetection of requirement names from URLs, so the @davidovich Like the other one poked you for, this is fixed in master. |
closed by #485 |
Steps to replicate
echo https://files.pythonhosted.org/packages/6a/11/114c67b0e3c25c19497fde977538339530d8ffa050d6ec9349793f933faa/lockfile-0.10.2.tar.gz > requirements.in
pip-compile requirements.in
Expected result
A meaningful error.
Actual result
This exception:
Details
I understand that URLs to tarballs in requirement files may not be supported by
pip-compile
, but then a more helpful error message would be great.I had a look at the code, the issue comes from here:
https://github.com/nvie/pip-tools/blob/master/piptools/scripts/compile.py#L141
It seems that
ireq.req
is None for URLs. Hence when thekey_from_req
function tries to access its.name
attribute it crashes.The text was updated successfully, but these errors were encountered: