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.

Command "python setup.py egg_info" failed with error code 1

See original GitHub issue

A minimal Pipfile now fails to lock with pipenv==11.0.2 installed via Homebrew.

Describe your environment
  1. macOS
  2. Python version: Python 3.6.4
  3. Pipenv version: pipenv, version 11.0.2
Expected result

Pipfile.lock is generated after running pipenv install.

Actual result

pip.exceptions.InstallationError: Command “python setup.py egg_info” failed with error code 1

Steps to replicate

Using this Pipifile in an otherwise empty directory:

[[source]]

url = "https://pypi.python.org/simple"
verify_ssl = true
name = "pypi"

[requires]

python_version = "3"

[dev-packages]

sniffer = "*"
MacFSEvents = {version = "*", sys_platform = "== 'darwin'"}
$ pipenv install
Pipfile.lock not found, creating…
Locking [dev-packages] dependencies…
nv/patched/piptools/resolver.py", line 279, in _iter_dependencies
    for dependency in self.repository.get_dependencies(ireq):
  File "/usr/local/Cellar/pipenv/11.0.2/libexec/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/Cellar/pipenv/11.0.2/libexec/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/Cellar/pipenv/11.0.2/libexec/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/Cellar/pipenv/11.0.2/libexec/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/Cellar/pipenv/11.0.2/libexec/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/Cellar/pipenv/11.0.2/libexec/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/h1/2b6gts3x37zcnj5khyv8y5180000gn/T/tmp0jkxg5jebuild/pync/

At a minimum, I would expect more debugging information to be displayed.

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Comments:13 (8 by maintainers)

github_iconTop GitHub Comments

2reactions
kennethreitzcommented, Mar 7, 2018

i’ll work on fixing it

1reaction
jtratnercommented, Mar 7, 2018

we totally reworked all that code (well, I did) recently.

Yeah I figured 😃 if you end up with time to poke at this - awesome! - otherwise when I find time I’ll try to work with a failing setup.py and get it to dump debug output

Read more comments on GitHub >

github_iconTop Results From Across the Web

How to Fix 'Python Setup.py egg_info' Failed with Error Code 1
One major cause of the command "python setup.py egg_info" failing with error code 1 is due to the missing ez_setup module in your...
Read more >
"pip install unroll": "python setup.py egg_info" failed with error ...
Error code 1 is defined in errno.h and means Operation not permitted . About your error. Your setuptools do not appear to be...
Read more >
Python Setup.py egg_info Failed with Error Code 1? [Fixed]
What causes the python setup.py egg_info failed with error code 1? According to user reports, the error often occurs when your pip or...
Read more >
'Command "python setup.py egg_info" failed with error code 1 ...
The error code 1 is defined as Operation not permitted in python standard errno system symbols. This issue is mostly caused when your...
Read more >
Command "python setup.py egg_info" failed with error code 1 ...
Command "python setup.py egg_info" failed with error code 1 in C:\Users\sanja\AppData\Local\Temp\pip-build-ppc44asr\googleapis-common-protos\ #3884.
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