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.

Installing local package with `pipenv install '-e .' --dev` no longer works.

See original GitHub issue

The feature described https://docs.pipenv.org/basics.html#editable-dependencies-e-g-e was broken in this commit https://github.com/kennethreitz/pipenv/commit/0a48fa090e2535041e5280511a6a2f1696de6797

In the most recent version of pipenv (8.3.1), pipenv install '-e .' --dev fails with a TypeError from this line https://github.com/kennethreitz/pipenv/blob/v8.3.1/pipenv/utils.py#L540

Since ‘.’ is a directory and not a regular file, it fails the check on L539 os.path.isfile(req.path) and the Requirements object name is None when parsing this type of requirement which causes the exception to be raised.

Installing pipenv==8.2.7 resolved this issue for me.

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Reactions:3
  • Comments:6 (5 by maintainers)

github_iconTop GitHub Comments

5reactions
AlJohricommented, Nov 8, 2017

quick workaround - add "cjSj384E" = {path = ".", editable = true} to your Pipfile manually where cjSj384E is the hash of path to the current directory. you can get this hash from checking the currently virtualenv name pipenv --venv

0reactions
techalchemycommented, Nov 15, 2017

This is resolved in #958

Read more comments on GitHub >

github_iconTop Results From Across the Web

Build and install local package with pip and pipenv
Pip and pipenv work quite the same. To be sure you understand, pip is the package manager of your global python interpreter.
Read more >
Advanced Usage of Pipenv - Read the Docs
Pipenv allows you to open any Python module that is installed (including ones in your codebase), with the $ pipenv open command: $...
Read more >
Basic Usage of Pipenv - Python Packaging Authority
$ pipenv install is used for installing packages into the pipenv virtual environment and updating your Pipfile. Along with the basic install command,...
Read more >
30371 (Use pipenv to create venv for development) - Sage Trac
I have now added a minimal pipfile including sage as an editable install. So running pipenv install results in a semi-workable virtual environment....
Read more >
Python Package Installation on Windows - ActiveState
For more information on how to use pip, see the Pip Package Installation instructions below. Wheels and Windows. Python packages installed with ...
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