question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

VCS install fails

See original GitHub issue

On a clean environment:

$ pipenv --version
pipenv, version 11.6.3
$ pipenv install -e "git+https://github.com/django/django.git#egg=django"
Creating a virtualenv for this project…
Using /usr/bin/python (3.6.4) to create virtualenv…
⠋Already using interpreter /usr/bin/python
Using base prefix '/usr'
New python executable in /[path]/.local/share/virtualenvs/gittest-YBJVqmXZ/bin/python
Installing setuptools, pip, wheel...done.

Virtualenv location: /[path]/.local/share/virtualenvs/gittest-YBJVqmXZ
Creating a Pipfile for this project…
Installing -e git+https://github.com/django/django.git#egg=django…
Obtaining django from git+https://github.com/django/django.git#egg=django
  Cloning https://github.com/django/django.git to /[path]/.local/share/virtualenvs/gittest-YBJVqmXZ/src/django
Collecting pytz (from django)
  Using cached pytz-2018.3-py2.py3-none-any.whl
Installing collected packages: pytz, django
  Running setup.py develop for django
Successfully installed django pytz-2018.3

Adding -e git+https://github.com/django/django.git#egg=django to Pipfile's [packages]…
Pipfile.lock not found, creating…
Locking [dev-packages] dependencies…
Locking [packages] dependencies…
dor/packaging/requirements.py", line 96, in __init__
    requirement_string[e.loc:e.loc + 8]))
pip9._vendor.packaging.requirements.InvalidRequirement: Invalid requirement, parse error at "'-i https'"

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3.6/site-packages/pipenv/resolver.py", line 66, in <module>
    main()
  File "/usr/lib/python3.6/site-packages/pipenv/resolver.py", line 54, in main
    results = resolve(packages, pre=do_pre, sources=project.sources, verbose=is_verbose, clear=do_clear)
  File "/usr/lib/python3.6/site-packages/pipenv/resolver.py", line 52, in resolve
    return pipenv.utils.resolve_deps(packages, which, project=project, pre=pre, sources=sources, clear=clear, verbose=verbose)
  File "/usr/lib/python3.6/site-packages/pipenv/../pipenv/utils.py", line 397, in resolve_deps
    resolved_tree, resolver = actually_resolve_reps(deps, index_lookup, markers_lookup, project, sources, verbose, clear, pre)
  File "/usr/lib/python3.6/site-packages/pipenv/../pipenv/utils.py", line 284, in actually_resolve_reps
    constraint = req.InstallRequirement.from_editable(dep[len('-e '):])
  File "/usr/lib/python3.6/site-packages/pipenv/../pipenv/vendor/pip9/req/req_install.py", line 156, in from_editable
    wheel_cache=wheel_cache)
  File "/usr/lib/python3.6/site-packages/pipenv/../pipenv/vendor/pip9/req/req_install.py", line 91, in __init__
    "Invalid requirement: '%s'\n%s" % (req, add_msg))
pip9.exceptions.InstallationError: Invalid requirement: 'django -i https://pypi.python.org/simple'
It looks like a path. Does it exist ?

As far as I can see a -i https://pypi.python.org/simple is added to the requirement and isn’t correctly parsed by REQUIREMENT.parseString

Same thing with git@github.com:... urls Same thing without -e

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Comments:7 (4 by maintainers)

github_iconTop GitHub Comments

1reaction
kennethreitzcommented, Mar 13, 2018

sorry for the 🐛!

0reactions
randycoulmancommented, Mar 13, 2018

Confirmed fixed for me in 11.6.9. Thanks!

Read more comments on GitHub >

github_iconTop Results From Across the Web

Repairing the VCS installation - Veritas SORT
Repairing the VCS installation · Open the Windows Control Panel and click Programs and Features. · Select Veritas Cluster Server 6.1 for Windows....
Read more >
Installing a package from VCS fails with `Invalid specifier: '==attr
Issue description When trying install/lock a project from VCS that uses version = attr: specifier in setup.cfg, if the package was (is) ...
Read more >
Problem installing VCS module in python: Command error
Collecting vcs Using cached vcs-0.4.0.tar.gz (482 kB) ERROR: Command errored out with exit status 1: command: /Users ...
Read more >
VCS install error - The UNIX and Linux Forums
i am installing vcs 6.0 in vmware solaris 10 (64bit) i got error while i am going to install vcs in 2 nodes...
Read more >
CAN'T INSTALL WINDOWS : r/AtariVCS - Reddit
I'm getting this error when I try to install: "windows could not ... I've since gotten my VCS and messed with the BIOS...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found