[MacPorts] #69534: py39-setuptools @69.2.0: AttributeError: module 'importlib_metadata' has no attribute 'MetadataPathFinder'
MacPorts
noreply at macports.org
Mon Mar 18 14:13:44 UTC 2024
#69534: py39-setuptools @69.2.0: AttributeError: module 'importlib_metadata' has no
attribute 'MetadataPathFinder'
------------------------+-----------------------------
Reporter: ryandesign | Owner: jmroot
Type: defect | Status: assigned
Priority: Normal | Milestone:
Component: ports | Version: 2.9.1
Keywords: | Port: py39-setuptools
------------------------+-----------------------------
py310-libxml2 and later build fine but py39-libxml2 and earlier are
failing to build:
{{{
DEBUG: system: cd
"/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports
.org_macports_release_tarballs_ports_python_py-
libxml2/py39-libxml2/work/libxml2-2.12.5/python" &&
/opt/local/Library/Frameworks/Python.framework/Versions/3.9/bin/python3.9
setup.py --no-user-cfg build -j8
Traceback (most recent call last):
File
"/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports
.org_macports_release_tarballs_ports_python_py-
libxml2/py39-libxml2/work/libxml2-2.12.5/python/setup.py", line 8, in
<module>
from setuptools import setup, Extension
File
"/opt/local/Library/Frameworks/Python.framework/Versions/3.9/lib/python3.9
/site-packages/setuptools/__init__.py", line 14, in <module>
from . import version as _version_module
File
"/opt/local/Library/Frameworks/Python.framework/Versions/3.9/lib/python3.9
/site-packages/setuptools/version.py", line 1, in <module>
from ._importlib import metadata
File
"/opt/local/Library/Frameworks/Python.framework/Versions/3.9/lib/python3.9
/site-packages/setuptools/_importlib.py", line 43, in <module>
disable_importlib_metadata_finder(metadata)
File
"/opt/local/Library/Frameworks/Python.framework/Versions/3.9/lib/python3.9
/site-packages/setuptools/_importlib.py", line 31, in
disable_importlib_metadata_finder
to_remove = [
File
"/opt/local/Library/Frameworks/Python.framework/Versions/3.9/lib/python3.9
/site-packages/setuptools/_importlib.py", line 34, in <listcomp>
if isinstance(ob, importlib_metadata.MetadataPathFinder)
AttributeError: module 'importlib_metadata' has no attribute
'MetadataPathFinder'
}}}
All that py-libxml2 is trying to is use its setup.py file. This
`importlib_metadata` requirement is not mentioned anywhere in libxml2, so
I think this is a py-setuptools bug?
--
Ticket URL: <https://trac.macports.org/ticket/69534>
MacPorts <https://www.macports.org/>
Ports system for macOS
More information about the macports-tickets
mailing list