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

Bad error message on malformed VCS string #427

Closed
alex opened this Issue Jan 5, 2012 · 1 comment

Comments

Projects
None yet
3 participants
@alex
Member

alex commented Jan 5, 2012

The item in my requirements.txt:

git://github.com/alex/django-fixture-generator.git#egg=fixture_generator

The resulting error message:

Downloading/unpacking fixture-generator from git://github.com/alex/django-fixture-generator.git (from -r requirements/development.txt (line 3))
Exception:
Traceback (most recent call last):
  File "/home/alex/.virtualenvs/tracebin/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/alex/.virtualenvs/tracebin/local/lib/python2.7/site-packages/pip-1.0.2-py2.7.egg/pip/commands/install.py", line 223, in run
    requirement_set.prepare_files(finder, force_root_egg_info=self.bundle, bundle=self.bundle)
  File "/home/alex/.virtualenvs/tracebin/local/lib/python2.7/site-packages/pip-1.0.2-py2.7.egg/pip/req.py", line 961, in prepare_files
    self.unpack_url(url, location, self.is_download)
  File "/home/alex/.virtualenvs/tracebin/local/lib/python2.7/site-packages/pip-1.0.2-py2.7.egg/pip/req.py", line 1073, in unpack_url
    return unpack_vcs_link(link, location, only_download)
  File "/home/alex/.virtualenvs/tracebin/local/lib/python2.7/site-packages/pip-1.0.2-py2.7.egg/pip/download.py", line 293, in unpack_vcs_link
    vcs_backend.unpack(location)
  File "/home/alex/.virtualenvs/tracebin/local/lib/python2.7/site-packages/pip-1.0.2-py2.7.egg/pip/vcs/__init__.py", line 225, in unpack
    self.obtain(location)
  File "/home/alex/.virtualenvs/tracebin/local/lib/python2.7/site-packages/pip-1.0.2-py2.7.egg/pip/vcs/git.py", line 97, in obtain
    url, rev = self.get_url_rev()
  File "/home/alex/.virtualenvs/tracebin/local/lib/python2.7/site-packages/pip-1.0.2-py2.7.egg/pip/vcs/git.py", line 183, in get_url_rev
    url, rev = super(Git, self).get_url_rev()
  File "/home/alex/.virtualenvs/tracebin/local/lib/python2.7/site-packages/pip-1.0.2-py2.7.egg/pip/vcs/__init__.py", line 117, in get_url_rev
    url = self.url.split('+', 1)[1]
IndexError: list index out of range

@ghost ghost assigned pnasrat Jan 30, 2012

@pnasrat

This comment has been minimized.

Show comment
Hide comment
@pnasrat

pnasrat Jan 30, 2012

Contributor

Yeah we definitely should do better, probably should fix consistently across all vcs backends ensuring bare scheme is handled correctly.

Contributor

pnasrat commented Jan 30, 2012

Yeah we definitely should do better, probably should fix consistently across all vcs backends ensuring bare scheme is handled correctly.

@carljm carljm closed this in 2c0ac18 Mar 14, 2012

carljm added a commit that referenced this issue Mar 14, 2012

bernardofire added a commit to bernardofire/pip that referenced this issue May 2, 2012

bernardofire added a commit to bernardofire/pip that referenced this issue May 2, 2012

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment