pypa / pypa/setuptools

RuntimeError: maximum recursion depth exceeded in cmp

Open
#1,027 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Needs Triage
Dominant language
Python
Stars
2.9k
Forks
1.4k
Avg merge
1d 1h
Merged PRs (30d)
1

Description

Installed /home/zashraf/venvs/cuckoo-development/lib/python2.7/site-packages/enum34-1.1.6-py2.7.egg
Searching for setuptools>=11.3
Reading https://pypi.python.org/simple/setuptools/
Best match: setuptools 35.0.2
Downloading https://pypi.python.org/packages/88/13/7d560b75334a8e4b4903f537b7e5a1ad9f1a2f1216e2587aaaf91b38c991/setuptools-35.0.2.zip#md5=c368b4970d3ad3eab5afe4ef4dbe2437
Processing setuptools-35.0.2.zip
Writing /tmp/easy_install-GiYcgr/setuptools-35.0.2/setup.cfg
Running setuptools-35.0.2/setup.py -q bdist_egg --dist-dir /tmp/easy_install-GiYcgr/setuptools-35.0.2/egg-dist-tmp-MwQQz1
^[[31m
The following error has occurred while trying to install Cuckoo!
^[[0m
Traceback (most recent call last):
  File "setup.py", line 98, in do_setup
    setuptools.setup(**kwargs)
  File "/usr/lib/python2.7/distutils/core.py", line 151, in setup
    dist.run_commands()
  File "/usr/lib/python2.7/distutils/dist.py", line 953, in run_commands
    self.run_command(cmd)
  File "/usr/lib/python2.7/distutils/dist.py", line 972, in run_command
    cmd_obj.run()

...
File "/home/zashraf/venvs/cuckoo-development/local/lib/python2.7/site-packages/pkg_resources.py", line 1477, in build_zipmanifest
    zfile = zipfile.ZipFile(path)
  File "/usr/lib/python2.7/zipfile.py", line 770, in __init__
    self._RealGetContents()
  File "/usr/lib/python2.7/zipfile.py", line 807, in _RealGetContents
    endrec = _EndRecData(fp)
  File "/usr/lib/python2.7/zipfile.py", line 231, in _EndRecData
    return _EndRecData64(fpin, -sizeEndCentDir, endrec)
  File "/usr/lib/python2.7/zipfile.py", line 173, in _EndRecData64
    if sig != stringEndArchive64Locator:
RuntimeError: maximum recursion depth exceeded in cmp

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Reproduce the Cuckoo installation with the shown Python 2.7 environment, starting at setup.py line 98 and following the traceback through pkg_resources.py line 1477 and zipfile.py. Determine why processing setuptools reaches the recursion error, then verify that installation completes without the reported RuntimeError.

Written by the indexing model from the issue text.

Assessment

Tech stack
python
Domain
build-system
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.