-
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
UnicodeDecodeError installing legit from GitHub #1738
Comments
👍 encountered this over on pyfiglet. |
You shoud try:
|
Yup, https://github.com/kennethreitz/legit is a link to a webpage, nothing much pip can do from it.
The solution is indeed to add the vcs scheme:
This can be closed. |
But Git is somehow able to pull from this URL, so |
Yes. That's why you specify vcs scheme to perform pull. If you say |
@defance, you misunderstood. The Git somehow communicates with web server to receive info that the |
pip could certainly first try to get a valid package file and if it can not determine the archive format, tries each Or the user could directly provide the needed information... |
Yes, this is what I expect it to do. Maybe lightweight probes are better than a full fledged try/fail cycle? |
Closing this as the issue seems to be trying to install an HTML page instead of a git repository. |
@dstufft, even if the use case is bad, the error message is still not informative and confusing for anyone unfortunate enough to hit this accidentally. Is there any way that could be improved, perhaps by detecting that the content type is wrong, or something like this? |
@pwaller it has an error message now:
|
pip 1.5.4, python 2.7.6
The text was updated successfully, but these errors were encountered: