[MacPorts] #67872: py-numpy @1.24.1: port install -vst fails with AttributeError: module 'tomli' has no attribute 'TOMLDecodeError'

MacPorts noreply at macports.org
Sun Jul 30 23:06:26 UTC 2023


#67872: py-numpy @1.24.1: port install -vst fails with AttributeError: module
'tomli' has no attribute 'TOMLDecodeError'
-------------------------+----------------------
 Reporter:  macportsraf  |      Owner:  (none)
     Type:  defect       |     Status:  new
 Priority:  Normal       |  Milestone:
Component:  ports        |    Version:  2.8.1
 Keywords:               |       Port:  py-numpy
-------------------------+----------------------
 While testing port install -vst py-photomosaic the following error
 occurred:

 {{{
 :info:build Traceback (most recent call last):
 :info:build   File
 "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports
 .org_macports_release_tarballs_ports_python_py-
 numpy/py310-numpy/work/numpy-1.24.1/versioneer.py", line 379, in
 get_config_from_root
 :info:build     pp = tomli.load(fobj)
 :info:build AttributeError: module 'tomli' has no attribute 'load'
 :info:build During handling of the above exception, another exception
 occurred:
 :info:build Traceback (most recent call last):
 :info:build   File
 "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports
 .org_macports_release_tarballs_ports_python_py-
 numpy/py310-numpy/work/numpy-1.24.1/setup.py", line 35, in <module>
 :info:build     FULLVERSION = versioneer.get_version()
 :info:build   File
 "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports
 .org_macports_release_tarballs_ports_python_py-
 numpy/py310-numpy/work/numpy-1.24.1/versioneer.py", line 1791, in
 get_version
 :info:build     return get_versions()["version"]
 :info:build   File
 "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports
 .org_macports_release_tarballs_ports_python_py-
 numpy/py310-numpy/work/numpy-1.24.1/versioneer.py", line 1723, in
 get_versions
 :info:build     cfg = get_config_from_root(root)
 :info:build   File
 "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports
 .org_macports_release_tarballs_ports_python_py-
 numpy/py310-numpy/work/numpy-1.24.1/versioneer.py", line 381, in
 get_config_from_root
 :info:build     except (tomli.TOMLDecodeError, KeyError):
 :info:build AttributeError: module 'tomli' has no attribute
 'TOMLDecodeError'
 }}}

 Installing without -vst works.

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


More information about the macports-tickets mailing list