[MacPorts] #69534: py39-setuptools @69.2.0: AttributeError: module 'importlib_metadata' has no attribute 'MetadataPathFinder'

MacPorts noreply at macports.org
Mon Mar 18 14:18:26 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
Resolution:                   |   Keywords:
      Port:  py39-setuptools  |
------------------------------+----------------------

Comment (by ryandesign):

 Since this used to work, I wanted to try downgrading py-setuptools to
 69.0.3. It doesn't build; it has the same error:

 {{{
 :debug:build system:  cd
 "/opt/local/var/macports/build/_private_tmp/py39-setuptools/work/setuptools-69.0.3"
 &&
 /opt/local/Library/Frameworks/Python.framework/Versions/3.9/bin/python3.9
 -m build --no-isolation --wheel --outdir
 /opt/local/var/macports/build/_private_tmp/py39-setuptools/work --skip-
 dependency-check
 :info:build * Building wheel...
 :info:build Traceback (most recent call last):
 :info:build   File "/opt/local/share/py-bootstrap-
 modules/pep517/in_process/_in_process.py", line 351, in <module>
 :info:build     main()
 :info:build   File "/opt/local/share/py-bootstrap-
 modules/pep517/in_process/_in_process.py", line 333, in main
 :info:build     json_out['return_val'] = hook(**hook_input['kwargs'])
 :info:build   File "/opt/local/share/py-bootstrap-
 modules/pep517/in_process/_in_process.py", line 249, in build_wheel
 :info:build     return _build_backend().build_wheel(wheel_directory,
 config_settings,
 :info:build   File "/opt/local/share/py-bootstrap-
 modules/pep517/in_process/_in_process.py", line 77, in _build_backend
 :info:build     obj = import_module(mod_path)
 :info:build   File
 "/opt/local/Library/Frameworks/Python.framework/Versions/3.9/lib/python3.9/importlib/__init__.py",
 line 127, in import_module
 :info:build     return _bootstrap._gcd_import(name[level:], package,
 level)
 :info:build   File "<frozen importlib._bootstrap>", line 1030, in
 _gcd_import
 :info:build   File "<frozen importlib._bootstrap>", line 1007, in
 _find_and_load
 :info:build   File "<frozen importlib._bootstrap>", line 972, in
 _find_and_load_unlocked
 :info:build   File "<frozen importlib._bootstrap>", line 228, in
 _call_with_frames_removed
 :info:build   File "<frozen importlib._bootstrap>", line 1030, in
 _gcd_import
 :info:build   File "<frozen importlib._bootstrap>", line 1007, in
 _find_and_load
 :info:build   File "<frozen importlib._bootstrap>", line 986, in
 _find_and_load_unlocked
 :info:build   File "<frozen importlib._bootstrap>", line 680, in
 _load_unlocked
 :info:build   File "<frozen importlib._bootstrap_external>", line 850, in
 exec_module
 :info:build   File "<frozen importlib._bootstrap>", line 228, in
 _call_with_frames_removed
 :info:build   File
 "/opt/local/var/macports/build/_private_tmp/py39-setuptools/work/setuptools-69.0.3/setuptools/__init__.py",
 line 13, in <module>
 :info:build     from . import version as _version_module
 :info:build   File
 "/opt/local/var/macports/build/_private_tmp/py39-setuptools/work/setuptools-69.0.3/setuptools/version.py",
 line 1, in <module>
 :info:build     from ._importlib import metadata
 :info:build   File
 "/opt/local/var/macports/build/_private_tmp/py39-setuptools/work/setuptools-69.0.3/setuptools/_importlib.py",
 line 43, in <module>
 :info:build     disable_importlib_metadata_finder(metadata)
 :info:build   File
 "/opt/local/var/macports/build/_private_tmp/py39-setuptools/work/setuptools-69.0.3/setuptools/_importlib.py",
 line 31, in disable_importlib_metadata_finder
 :info:build     to_remove = [
 :info:build   File
 "/opt/local/var/macports/build/_private_tmp/py39-setuptools/work/setuptools-69.0.3/setuptools/_importlib.py",
 line 34, in <listcomp>
 :info:build     if isinstance(ob, importlib_metadata.MetadataPathFinder)
 :info:build AttributeError: module 'importlib_metadata' has no attribute
 'MetadataPathFinder'
 :info:build ERROR Backend subprocess exited when trying to invoke
 build_wheel
 }}}

-- 
Ticket URL: <https://trac.macports.org/ticket/69534#comment:1>
MacPorts <https://www.macports.org/>
Ports system for macOS


More information about the macports-tickets mailing list