Opened 3 years ago

Closed 3 years ago

#63769 closed defect (fixed)

Unable to Upgrade py37-setuptools on Lion -- ModuleNotFoundError: No module named 'importlib_metadata'

Reported by: RobK88 Owned by: jmroot (Joshua Root)
Priority: Normal Milestone:
Component: ports Version: 2.7.1
Keywords: Cc:
Port: py-setuptools py-bootstrap-modules

Description

I am unable to build py37-setuptools on Lion.

ModuleNotFoundError: No module named 'importlib_metadata'

bash-3.2$ sudo port clean py37-setuptools
--->  Cleaning py37-setuptools
bash-3.2$ sudo port -v upgrade  py37-setuptools
--->  Computing dependencies for py37-setuptools.
--->  Fetching distfiles for py37-setuptools
--->  Verifying checksums for py37-setuptools
--->  Checksumming setuptools-58.4.0.tar.gz
--->  Extracting py37-setuptools
--->  Extracting setuptools-58.4.0.tar.gz
Executing:  cd "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_python_py-setuptools/py37-setuptools/work" && /usr/bin/gzip -dc '/opt/local/var/macports/distfiles/py-setuptools/setuptools-58.4.0.tar.gz' | /usr/bin/gnutar --no-same-owner -xf - 
--->  Configuring py37-setuptools
--->  Building py37-setuptools
Executing:  cd "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_python_py-setuptools/py37-setuptools/work/setuptools-58.4.0" && /opt/local/Library/Frameworks/Python.framework/Versions/3.7/bin/python3.7 -m build --wheel --no-isolation --outdir /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_python_py-setuptools/py37-setuptools/work --skip-dependency-check 
Traceback (most recent call last):
  File "/opt/local/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/runpy.py", line 193, in _run_module_as_main
    "__main__", mod_spec)
  File "/opt/local/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/runpy.py", line 85, in _run_code
    exec(code, run_globals)
  File "/opt/local/share/py-bootstrap-modules/build/__main__.py", line 21, in <module>
    from build.env import IsolatedEnvBuilder
  File "/opt/local/share/py-bootstrap-modules/build/env.py", line 22, in <module>
    import importlib_metadata as metadata
ModuleNotFoundError: No module named 'importlib_metadata'
Command failed:  cd "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_python_py-setuptools/py37-setuptools/work/setuptools-58.4.0" && /opt/local/Library/Frameworks/Python.framework/Versions/3.7/bin/python3.7 -m build --wheel --no-isolation --outdir /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_python_py-setuptools/py37-setuptools/work --skip-dependency-check 
Exit code: 1
Error: Failed to build py37-setuptools: command execution failed
Error: See /opt/local/var/macports/logs/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_python_py-setuptools/py37-setuptools/main.log for details.
Error: Follow https://guide.macports.org/#project.tickets if you believe there is a bug.
bash-3.2$

Change History (2)

comment:1 Changed 3 years ago by jmroot (Joshua Root)

Cc: jmr@… removed
Keywords: lion removed
Owner: set to jmroot
Port: py-setuptools added; py37-setuptools removed
Status: newaccepted

comment:2 Changed 3 years ago by jmroot (Joshua Root)

Port: py-bootstrap-modules added
Resolution: fixed
Status: acceptedclosed
Note: See TracTickets for help on using tickets.