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.

python setup.py install fails with setuptools==20.7.0

See original GitHub issue

Minimum, Complete, Verifiable Example

python 2.7.12 setuptools 20.7.0 (Ubuntu 16.04 apt default version) natsort 5.3.1

Either upgrading setuptools to newer version (39.1.0) or pass version and name variable to setup() in setup.py fixes the problem.

If natsort doesn’t support old version of setuptools, it would be better to note it under https://github.com/SethMMorton/natsort#requirements

See https://stackoverflow.com/help/mcve for explanation.

Error message, Traceback, Desired behavior, Suggestion, Request, or Question

$ sudo python setup.py install
running install
running bdist_egg
running egg_info
writing src/UNKNOWN.egg-info/PKG-INFO
writing top-level names to src/UNKNOWN.egg-info/top_level.txt
writing dependency_links to src/UNKNOWN.egg-info/dependency_links.txt
reading manifest file 'src/UNKNOWN.egg-info/SOURCES.txt'
reading manifest template 'MANIFEST.in'
warning: no previously-included files matching '*.py[cod]' found anywhere in distribution
warning: no previously-included files matching '__pycache__' found anywhere in distribution
warning: no previously-included files matching '*.so' found anywhere in distribution
writing manifest file 'src/UNKNOWN.egg-info/SOURCES.txt'
installing library code to build/bdist.linux-x86_64/egg
running install_lib
running build_py
creating build/bdist.linux-x86_64/egg
creating build/bdist.linux-x86_64/egg/natsort
copying build/lib.linux-x86_64-2.7/natsort/utils.py -> build/bdist.linux-x86_64/egg/natsort
copying build/lib.linux-x86_64-2.7/natsort/unicode_numbers.py -> build/bdist.linux-x86_64/egg/natsort
copying build/lib.linux-x86_64-2.7/natsort/__main__.py -> build/bdist.linux-x86_64/egg/natsort
copying build/lib.linux-x86_64-2.7/natsort/ns_enum.py -> build/bdist.linux-x86_64/egg/natsort
copying build/lib.linux-x86_64-2.7/natsort/__init__.py -> build/bdist.linux-x86_64/egg/natsort
creating build/bdist.linux-x86_64/egg/natsort/compat
copying build/lib.linux-x86_64-2.7/natsort/compat/locale.py -> build/bdist.linux-x86_64/egg/natsort/compat
copying build/lib.linux-x86_64-2.7/natsort/compat/__init__.py -> build/bdist.linux-x86_64/egg/natsort/compat
copying build/lib.linux-x86_64-2.7/natsort/compat/fake_fastnumbers.py -> build/bdist.linux-x86_64/egg/natsort/compat
copying build/lib.linux-x86_64-2.7/natsort/compat/py23.py -> build/bdist.linux-x86_64/egg/natsort/compat
copying build/lib.linux-x86_64-2.7/natsort/compat/fastnumbers.py -> build/bdist.linux-x86_64/egg/natsort/compat
copying build/lib.linux-x86_64-2.7/natsort/compat/pathlib.py -> build/bdist.linux-x86_64/egg/natsort/compat
copying build/lib.linux-x86_64-2.7/natsort/_version.py -> build/bdist.linux-x86_64/egg/natsort
copying build/lib.linux-x86_64-2.7/natsort/natsort.py -> build/bdist.linux-x86_64/egg/natsort
byte-compiling build/bdist.linux-x86_64/egg/natsort/utils.py to utils.pyc
byte-compiling build/bdist.linux-x86_64/egg/natsort/unicode_numbers.py to unicode_numbers.pyc
byte-compiling build/bdist.linux-x86_64/egg/natsort/__main__.py to __main__.pyc
byte-compiling build/bdist.linux-x86_64/egg/natsort/ns_enum.py to ns_enum.pyc
byte-compiling build/bdist.linux-x86_64/egg/natsort/__init__.py to __init__.pyc
byte-compiling build/bdist.linux-x86_64/egg/natsort/compat/locale.py to locale.pyc
byte-compiling build/bdist.linux-x86_64/egg/natsort/compat/__init__.py to __init__.pyc
byte-compiling build/bdist.linux-x86_64/egg/natsort/compat/fake_fastnumbers.py to fake_fastnumbers.pyc
byte-compiling build/bdist.linux-x86_64/egg/natsort/compat/py23.py to py23.pyc
byte-compiling build/bdist.linux-x86_64/egg/natsort/compat/fastnumbers.py to fastnumbers.pyc
byte-compiling build/bdist.linux-x86_64/egg/natsort/compat/pathlib.py to pathlib.pyc
byte-compiling build/bdist.linux-x86_64/egg/natsort/_version.py to _version.pyc
byte-compiling build/bdist.linux-x86_64/egg/natsort/natsort.py to natsort.pyc
creating build/bdist.linux-x86_64/egg/EGG-INFO
copying src/UNKNOWN.egg-info/PKG-INFO -> build/bdist.linux-x86_64/egg/EGG-INFO
copying src/UNKNOWN.egg-info/SOURCES.txt -> build/bdist.linux-x86_64/egg/EGG-INFO
copying src/UNKNOWN.egg-info/dependency_links.txt -> build/bdist.linux-x86_64/egg/EGG-INFO
copying src/UNKNOWN.egg-info/top_level.txt -> build/bdist.linux-x86_64/egg/EGG-INFO
zip_safe flag not set; analyzing archive contents...
creating 'dist/UNKNOWN-0.0.0-py2.7.egg' and adding 'build/bdist.linux-x86_64/egg' to it
removing 'build/bdist.linux-x86_64/egg' (and everything under it)
Processing UNKNOWN-0.0.0-py2.7.egg
Removing /usr/local/lib/python2.7/dist-packages/UNKNOWN-0.0.0-py2.7.egg
Copying UNKNOWN-0.0.0-py2.7.egg to /usr/local/lib/python2.7/dist-packages
UNKNOWN 0.0.0 is already the active version in easy-install.pth

Installed /usr/local/lib/python2.7/dist-packages/UNKNOWN-0.0.0-py2.7.egg
Processing dependencies for UNKNOWN==0.0.0
Finished processing dependencies for UNKNOWN==0.0.0

Issue Analytics

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

github_iconTop GitHub Comments

1reaction
SethMMortoncommented, May 16, 2018

Sounds like a plan. I will fix it tonight when I get home.

0reactions
SethMMortoncommented, May 18, 2018

Included in version 5.3.2.

Read more comments on GitHub >

github_iconTop Results From Across the Web

ERROR: Can not execute `setup.py` since setuptools is not ...
Hi, I am new to python and I am trying to install the email package, but it says "setuptools is not available in...
Read more >
pip installation error - python - Stack Overflow
My machine is on Windows 7, x64 with Anaconda3 installed. ... python setup.py build --compiler=mingw32. python setup.py install.
Read more >
setuptools 7.0 - PyPI
Easily download, build, install, upgrade, and uninstall Python packages.
Read more >
I can't install libraries - Discussions on Python.org
Hello, each time i try to install librabies as matplotlib, i have the following error : “python setup.py egg_info did not run successfully....
Read more >
python setup.py egg_info did not run successfully. - You.com ...
I also had similar problem but after I installed Cmake everything is fine. pip install Cmake. Open side panel. Installing python package 'processing'....
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