Skip to content

Poor error message when attempting to pip install --download from git or other VCS. #429

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

Closed
slacy opened this issue Jan 6, 2012 · 2 comments
Labels
auto-locked Outdated issues that have been locked by automation C: download About fetching data from PyPI and other sources type: bug A confirmed bug or unintended behavior

Comments

@slacy
Copy link

slacy commented Jan 6, 2012

I just thought I'd try this, and was expecting some kind of reasonable error message:

$ pip install --no-install --download=./sdists/ git+https://github.com/hmarr/django-ses.git
<error message, see below>

$ cat ~/.pip/pip.log


/home/slacy/src/teethie/a/env/bin/pip run on Fri Jan 6 10:25:22 2012
Downloading/unpacking git+https://github.com/hmarr/django-ses.git
Cloning https://github.com/hmarr/django-ses.git to /tmp/pip-EiLmaO-export
Found command 'git' at '/usr/bin/git'
Running command /usr/bin/git clone -q https://github.com/hmarr/django-ses.git /tmp/pip-EiLmaO-export
Running command /usr/bin/git checkout-index -a -f --prefix ./sdists/
Exception:
Traceback (most recent call last):
File "/home/slacy/src/teethie/a/env/local/lib/python2.7/site-packages/pip-1.0.2-py2.7.egg/pip/basecommand.py", line 126, in main
self.run(options, args)
File "/home/slacy/src/teethie/a/env/local/lib/python2.7/site-packages/pip-1.0.2-py2.7.egg/pip/commands/install.py", line 235, in run
requirement_set.successfully_downloaded])
TypeError: sequence item 0: expected string, NoneType found

@tonyarkles
Copy link

I just got this error too:

Downloading django-keyedcache-1.4-6.tar.gz
Downloading from URL https://pypi.python.org/packages/source/d/django-keyedcache/django-keyedcache-1.4-6.tar.gz#md5=cfb044c368c5b6c3b3d34277a0a2adb4 (from https://pypi.python.org/simple/django-keyedcache/)
Saved ./downloaded-packages/django-keyedcache-1.4-6.tar.gz
Exception:
Traceback (most recent call last):
File "/usr/lib/python2.7/dist-packages/pip/basecommand.py", line 126, in main
self.run(options, args)
File "/usr/lib/python2.7/dist-packages/pip/commands/install.py", line 235, in run
requirement_set.successfully_downloaded])
TypeError: sequence item 0: expected string, NoneType found

And I'm not quite sure what that means or what to do about it...

Edit: Just re-read the title of this issue. Mine is similar, but it's not using git or VCS at all. I reordered the list of packages in the requirement.txt and it looks like it just craps out on the last one in the file, no matter which one it is.

Edit #2: pip install --upgrade pip fixed this for me. pip that comes with Ubuntu 12.04.4 LTS seems to be broken.

@qwcode qwcode added the download label Mar 7, 2014
@xavfernandez
Copy link
Member

As already stated, this is fixed in latest pip version.

@xavfernandez xavfernandez added the type: bug A confirmed bug or unintended behavior label Oct 9, 2015
@lock lock bot added the auto-locked Outdated issues that have been locked by automation label Jun 4, 2019
@lock lock bot locked as resolved and limited conversation to collaborators Jun 4, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
auto-locked Outdated issues that have been locked by automation C: download About fetching data from PyPI and other sources type: bug A confirmed bug or unintended behavior
Projects
None yet
Development

No branches or pull requests

4 participants