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

MacPorts noreply at macports.org
Thu Aug 17 01:38:53 UTC 2023


#67872: py-numpy @1.24.1: port install -vst fails with AttributeError: module
'tomli' has no attribute 'TOMLDecodeError'
--------------------------+-----------------------
  Reporter:  macportsraf  |      Owner:  michaelld
      Type:  defect       |     Status:  assigned
  Priority:  Normal       |  Milestone:
 Component:  ports        |    Version:  2.8.1
Resolution:               |   Keywords:
      Port:  py-numpy     |
--------------------------+-----------------------

Comment (by reneeotten):

 There is code in the file {{{versioneer.py}}} that reads:
 {{{
 try:
     import tomli
     have_tomli = True
 except ImportError:
     have_tomli = False
 }}}

 so it appears to be fine not to have {{{tomli}}} installed.

 So this looks like an more commonly observed issue with trace-mode, where
 doing {{{import <module>}}} works in trace-mode, but then it fails when
 that module is actually accessed in the actual code. There have been more
 reports of this, one of them is [#65109]; there are others where @jmroot
 responded to but I cannot find those at the moment.

 AFAIK there is nothing to fix here in the {{{py-numpy}}} port; if
 anything, trace-mode in {{{base}}} has been fixed to resolve these issues.

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


More information about the macports-tickets mailing list