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.

setuptools_scm.version.SetuptoolsOutdatedWarning: your setuptools is too old

See original GitHub issue

Hi there!

We’ve seen the following reported in Molecule (over in https://github.com/ansible/molecule/issues/1859#issue-423669576):

$ pip install --user molecule
[...]
Collecting testinfra==1.19.0 (from molecule==2.20)
  Using cached https://files.pythonhosted.org/packages/2b/96/3c0eb74894acf3e026e437ee1b1161a200adb9c9a189c36bc4a92ed2db79/testinfra-1.19.0.tar.gz
    Complete output from command python setup.py egg_info:
    Traceback (most recent call last):
      File "<string>", line 1, in <module>
      File "/tmp/pip-build-asndpD/testinfra/setup.py", line 59, in <module>
        'six>=1.4',
      File "/usr/lib64/python2.7/distutils/core.py", line 112, in setup
        _setup_distribution = dist = klass(attrs)
      File "/usr/lib/python2.7/site-packages/setuptools/dist.py", line 269, in __init__
        _Distribution.__init__(self,attrs)
      File "/usr/lib64/python2.7/distutils/dist.py", line 287, in __init__
        self.finalize_options()
      File "/usr/lib/python2.7/site-packages/setuptools/dist.py", line 302, in finalize_options
        ep.load()(self, ep.name, value)
      File "/tmp/pip-build-asndpD/testinfra/setuptools_scm-3.2.0-py2.7.egg/setuptools_scm/integration.py", line 10, in version_keyword
      File "/tmp/pip-build-asndpD/testinfra/setuptools_scm-3.2.0-py2.7.egg/setuptools_scm/version.py", line 66, in _warn_if_setuptools_outdated
    setuptools_scm.version.SetuptoolsOutdatedWarning: your setuptools is too old (<12)

The comment in https://github.com/ansible/molecule/issues/1859#issuecomment-475332782 (slightly irate but well meaning, hope you understand 😃) that argued for a fix over here in testinfra. It hinted at a solution where we could avoid setuptools being involved in the install process completely (I defer to @webknjaz at what that solution looks like).

If we’re coming to an agreement, I have some time to commit for the fix.

Thanks for the good work here.

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Reactions:2
  • Comments:8 (7 by maintainers)

github_iconTop GitHub Comments

4reactions
ssbarneacommented, Mar 22, 2019

When read this thread few hours ago I was ready to reply right away but I am glad I didn’t because I was bit “negatively loaded”.

I invite everyone involved in this to take break, let this rest a bit and look again in a couple of days and try to find common grounds, solutions.

Most of us do open-source contributions in our free time, regardless who is employing us. Lets thing about ways of doing things that do not break others workflows. Or at least when this happens by mistake, lets work togheter in finding solutions.

3reactions
philpepcommented, Mar 25, 2019

… creaking door …

I uploaded wheels for testinfra 2.0.0 and 1.19.0 (the version pinned by molecule), which should fix installation of molecule/testinfra bypassing systems shipping old setuptools.

slam

Read more comments on GitHub >

github_iconTop Results From Across the Web

your setuptools is too old (<12) - Stack Overflow
Your version of setuptools is too old. You probably can figure its version number by running this in your virtual environment:
Read more >
setuptools_scm.version.SetuptoolsOutdatedWarning ... - GitHub
SetuptoolsOutdatedWarning : your setuptools is too old (<12) #979 ... first all, I download the packages of setuptools version 31 which I ...
Read more >
59362 (py27-setuptools_scm: your setuptools is too old (<12))
I'm getting an error with Python 2.7.16 when trying to execute: $ python setup.py install your setuptools is too old (<12) setuptools_scm functionality...
Read more >
setuptools-scm - PyPI
This feature requires Setuptools 42 or later, released in Nov, 2019. If your project needs to support build from sdist on older versions...
Read more >
Python: 安装lz4-0.10.1痛苦经历- 技术栈大杂烩 - SegmentFault
No local packages or download links found for setuptools-scm Traceback (most ... SetuptoolsOutdatedWarning: your setuptools is too old (<12) ...
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