Opened 19 months ago

Last modified 19 months ago

#59362 new defect

py27-setuptools_scm: your setuptools is too old (<12)

Reported by: ParityError Owned by:
Priority: Normal Milestone:
Component: ports Version:
Keywords: Cc: jmroot (Joshua Root), stromnov (Andrew Stromnov)
Port: py-setuptools_scm

Description (last modified by ParityError)

I'm getting an error with Python 2.7.16 when trying to execute:

$ python install

your setuptools is too old (<12)
setuptools_scm functionality is degraded
Traceback (most recent call last):
  File "", line 63, in <module>
  File "/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/setuptools/", line 145, in setup
    return distutils.core.setup(**attrs)
  File "/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/distutils/", line 111, in setup
    _setup_distribution = dist = klass(attrs)
  File "/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/setuptools/", line 447, in __init__
    k: v for k, v in attrs.items()
  File "/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/distutils/", line 287, in __init__
  File "/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/setuptools/", line 735, in finalize_options
    ep.load()(self,, value)
  File "build/bdist.macosx-10.10-intel/egg/setuptools_scm/", line 19, in version_keyword
  File "build/bdist.macosx-10.10-intel/egg/setuptools_scm/", line 102, in get_version
  File "build/bdist.macosx-10.10-intel/egg/setuptools_scm/", line 80, in _do_parse
LookupError: setuptools-scm was unable to detect version for '/Users/Foorbar/Project/Package'.

Make sure you're not using GitHub's tarballs (or similar ones), as those don't contain the necessary metadata. Use PyPI's tarballs instead.

For example, if you're using pip, instead of use git+

I tried uninstalling and re-installing py27-setuptools and no luck, same thing.

$ port installed | grep setup
  py27-setuptools @41.1.0_0
  py27-setuptools @41.4.0_0 (active)

If you need more info let me know.

MacOS: 10.13.6 (17G8037)

Change History (2)

comment:1 Changed 19 months ago by ParityError

Description: modified (diff)

comment:2 Changed 19 months ago by jmroot (Joshua Root)

Cc: jmroot stromnov added
Keywords: python 2.7 setuptools removed
Port: py-setuptools_scm added
Priority: HighNormal
Summary: Python: your setuptools is too old (<12)py27-setuptools_scm: your setuptools is too old (<12)

This certainly doesn't happen with every You'll need to show what yours is doing. Taking my best guess as to which port the error is coming from for now.

Note: See TracTickets for help on using tickets.