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.

Cannot use pipenv --three or pipenv install

See original GitHub issue

Trying to run a Django project on Heroku. After installing pipenv using pip3, when I run pipenv --three, I run into an infinite loop, and pipenv install gives me an error message (included below):

I saw a similar issue raised: https://github.com/pypa/pipenv/issues/969. I don’t understand the solution though, or if it will work for me.

Describe your environment

macOS High Sierra Python 3.6.4 pipenv version 11.0.2

Expected result

Uh…no infinite loops, and no weird installation errors.

Actual result
pipenv --three
`Virtualenv already exists!
Removing existing virtualenv…
Virtualenv already exists!
Removing existing virtualenv…` x infinity

pipenv install

`Pipfile.lock not found, creating…
Locking [dev-packages] dependencies…
Locking [packages] dependencies…
ptools/resolver.py", line 297, in _iter_dependencies
    dependencies = self.repository.get_dependencies(ireq)
  File "/usr/local/lib/python3.6/site-packages/pipenv/patched/piptools/repositories/pypi.py", line 162, in get_dependencies
    legacy_results = self.get_legacy_dependencies(ireq)
  File "/usr/local/lib/python3.6/site-packages/pipenv/patched/piptools/repositories/pypi.py", line 199, in get_legacy_dependencies
    result = reqset._prepare_file(self.finder, ireq)
  File "/usr/local/lib/python3.6/site-packages/pipenv/patched/pip/req/req_set.py", line 639, in _prepare_file
    abstract_dist.prep_for_dist()
  File "/usr/local/lib/python3.6/site-packages/pipenv/patched/pip/req/req_set.py", line 134, in prep_for_dist
    self.req_to_install.run_egg_info()
  File "/usr/local/lib/python3.6/site-packages/pipenv/patched/pip/req/req_install.py", line 438, in run_egg_info
    command_desc='python setup.py egg_info')
  File "/usr/local/lib/python3.6/site-packages/pipenv/patched/pip/utils/__init__.py", line 707, in call_subprocess
    % (command_desc, proc.returncode, cwd))
pip.exceptions.InstallationError: Command "python setup.py egg_info" failed with error code 1 in /var/folders/hh/dtmlsy8960bbrfb768w4pyf80000gp/T/tmpo8mkpwglbuild/suds/`. 

Issue Analytics

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

github_iconTop GitHub Comments

1reaction
JulienPalardcommented, Mar 6, 2018

Why is this issue closed?

0reactions
techalchemycommented, Mar 23, 2018

Because we don’t have enough information to troubleshoot, can’t reproduce, and even though I’ve said I need your pipfile it has not been forthcoming. Do you need help/have an issue/want to provide additional details?

Read more comments on GitHub >

github_iconTop Results From Across the Web

Python 3 - Pipenv Can't Install Getting Error - Stack Overflow
I am new to python and trying to install dependencies. I understand that pipenv install installs Pipfile.lock which lets me install my ...
Read more >
Frequently Encountered Pipenv Problems - Read the Docs
This is usually a result of mixing Pipenv with system packages. We strongly recommend installing Pipenv in an isolated environment.
Read more >
Pipenv & Virtual Environments - Python Packaging Authority
This tutorial walks you through installing and using Python packages. It will show you how to install and use the necessary tools and...
Read more >
How To Install pipenv Tool on Windows - Python Tutorial
Before installing the pipenv tool, you need to have Python and pip installed on your computer. First, open the Command Prompt or Windows...
Read more >
pipenv Documentation - Read the Docs
CONTENTS. 1 Install Pipenv Today! 3. 2 Pipenv Features ... pip install --user pipenv ... However, note that according to PEP 440 ,...
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