Opened 3 years ago

Closed 3 years ago

#63315 closed defect (fixed)

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'.

Reported by: mf2k (Frank Schima) Owned by: petrrr
Priority: Normal Milestone:
Component: ports Version: 2.7.99
Keywords: Cc:
Port: py-cartopy

Description

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

Attachments (1)

main.log (202.1 KB) - added by mf2k (Frank Schima) 3 years ago.

Download all attachments as: .zip

Change History (4)

Changed 3 years ago by mf2k (Frank Schima)

Attachment: main.log added

comment:1 Changed 3 years ago by reneeotten (Renee Otten)

see also https://trac.macports.org/ticket/63098#comment:7, it looks like a dependency on py-setuptools_scm_git_archive is needed. Frank feel free to try and commit the change if that works for you ;)

comment:2 Changed 3 years ago by mf2k (Frank Schima)

I confirmed that fixes the issue.

comment:3 Changed 3 years ago by mf2k (Frank Schima)

Resolution: fixed
Status: assignedclosed

In 2b0563277aec2a80dc9cbe2d6c0a659151d45538/macports-ports (master):

py-cartopy: Add missing dependency on py-setuptools_scm_git_archive

Fixes: #63315

Note: See TracTickets for help on using tickets.