[MacPorts] #63315: py39-cartopy: LookupError: setuptools-scm was unable to detect version for '/opt/local/var/macports/build/_opt_mports_macports-ports_python_py-cartopy/py39-cartopy/work/cartopy-0.19.0.post1'.

MacPorts noreply at macports.org
Thu Jul 29 17:26:41 UTC 2021


#63315: py39-cartopy: LookupError: setuptools-scm was unable to detect version for
'/opt/local/var/macports/build/_opt_mports_macports-ports_python_py-
cartopy/py39-cartopy/work/cartopy-0.19.0.post1'.
--------------------+------------------------
 Reporter:  mf2k    |      Owner:  petrrr
     Type:  defect  |     Status:  assigned
 Priority:  Normal  |  Milestone:
Component:  ports   |    Version:  2.7.99
 Keywords:          |       Port:  py-cartopy
--------------------+------------------------
 I cannot build py39-cartopy on macOS 11.5. Xcode 12.5.1.

 Error appears to be:
 {{{
 :info:build Executing:  cd "/opt/local/var/macports/build
 /_opt_mports_macports-ports_python_py-
 cartopy/py39-cartopy/work/cartopy-0.19.0.post1" &&
 /opt/local/Library/Frameworks/Python.framework/Versions/3.9/bin/python3.9
 setup.py --no-user-cfg build -j12
 :debug:build system:  cd "/opt/local/var/macports/build
 /_opt_mports_macports-ports_python_py-
 cartopy/py39-cartopy/work/cartopy-0.19.0.post1" &&
 /opt/local/Library/Frameworks/Python.framework/Versions/3.9/bin/python3.9
 setup.py --no-user-cfg build -j12
 :info:build Traceback (most recent call last):
 :info:build   File "/opt/local/var/macports/build/_opt_mports_macports-
 ports_python_py-cartopy/py39-cartopy/work/cartopy-0.19.0.post1/setup.py",
 line 357, in <module>
 :info:build     setup(
 :info:build   File
 "/opt/local/Library/Frameworks/Python.framework/Versions/3.9/lib/python3.9
 /site-packages/setuptools/__init__.py", line 153, in setup
 :info:build     return distutils.core.setup(**attrs)
 :info:build   File
 "/opt/local/Library/Frameworks/Python.framework/Versions/3.9/lib/python3.9/distutils/core.py",
 line 108, in setup
 :info:build     _setup_distribution = dist = klass(attrs)
 :info:build   File
 "/opt/local/Library/Frameworks/Python.framework/Versions/3.9/lib/python3.9
 /site-packages/setuptools/dist.py", line 455, in __init__
 :info:build     _Distribution.__init__(self, {
 :info:build   File
 "/opt/local/Library/Frameworks/Python.framework/Versions/3.9/lib/python3.9/distutils/dist.py",
 line 292, in __init__
 :info:build     self.finalize_options()
 :info:build   File
 "/opt/local/Library/Frameworks/Python.framework/Versions/3.9/lib/python3.9
 /site-packages/setuptools/dist.py", line 807, in finalize_options
 :info:build     ep(self)
 :info:build   File
 "/opt/local/Library/Frameworks/Python.framework/Versions/3.9/lib/python3.9
 /site-packages/setuptools/dist.py", line 814, in _finalize_setup_keywords
 :info:build     ep.load()(self, ep.name, value)
 :info:build   File
 "/opt/local/Library/Frameworks/Python.framework/Versions/3.9/lib/python3.9
 /site-packages/setuptools_scm/integration.py", line 24, in version_keyword
 :info:build     dist.metadata.version = _get_version(config)
 :info:build   File
 "/opt/local/Library/Frameworks/Python.framework/Versions/3.9/lib/python3.9
 /site-packages/setuptools_scm/__init__.py", line 173, in _get_version
 :info:build     parsed_version = _do_parse(config)
 :info:build   File
 "/opt/local/Library/Frameworks/Python.framework/Versions/3.9/lib/python3.9
 /site-packages/setuptools_scm/__init__.py", line 134, in _do_parse
 :info:build     raise LookupError(
 :info:build LookupError: setuptools-scm was unable to detect version for
 '/opt/local/var/macports/build/_opt_mports_macports-ports_python_py-
 cartopy/py39-cartopy/work/cartopy-0.19.0.post1'.
 :info:build Make sure you're either building from a fully intact git
 repository or PyPI tarballs. Most other sources (such as GitHub's
 tarballs, a git checkout without the .git folder) don't contain the
 necessary metadata and will not work.
 :info:build For example, if you're using pip, instead of
 https://github.com/user/proj/archive/master.zip use
 git+https://github.com/user/proj.git#egg=proj
 :info:build Command failed:  cd "/opt/local/var/macports/build
 /_opt_mports_macports-ports_python_py-
 cartopy/py39-cartopy/work/cartopy-0.19.0.post1" &&
 /opt/local/Library/Frameworks/Python.framework/Versions/3.9/bin/python3.9
 setup.py --no-user-cfg build -j12
 :info:build Exit code: 1
 :error:build Failed to build py39-cartopy: command execution failed
 }}}

-- 
Ticket URL: <https://trac.macports.org/ticket/63315>
MacPorts <https://www.macports.org/>
Ports system for macOS


More information about the macports-tickets mailing list