[MacPorts] #64029: py38-astropy @5.0 fails import

MacPorts noreply at macports.org
Sun Nov 21 16:54:41 UTC 2021


#64029: py38-astropy @5.0 fails import
--------------------------+--------------------
 Reporter:  odysseus9672  |      Owner:  (none)
     Type:  defect        |     Status:  new
 Priority:  Normal        |  Milestone:
Component:  ports         |    Version:
 Keywords:                |       Port:
--------------------------+--------------------
 The recent update to astropy 5.0 for py38-astropy doesn't work. It's
 missing a dependency, perhaps? When I try to use it I get an error.

 This is on MacPorts 2.7.1 with XCode 11.5 on Mac OS X 10.15.7.

 Here's the output:
 {{{
 Traceback (most recent call last):
   File "./Analysis_Pix_v7.py", line 96, in <module>
     import astropy.io.ascii as aptxt
   File
 "/opt/local/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7
 /site-packages/astropy/__init__.py", line 42, in <module>
     from . import config as _config  # noqa: E402
   File
 "/opt/local/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7
 /site-packages/astropy/config/__init__.py", line 10, in <module>
     from .configuration import *
   File
 "/opt/local/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7
 /site-packages/astropy/config/configuration.py", line 24, in <module>
     from astropy.utils import find_current_module, silence
   File
 "/opt/local/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7
 /site-packages/astropy/utils/__init__.py", line 17, in <module>
     from .codegen import *  # noqa
   File
 "/opt/local/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7
 /site-packages/astropy/utils/codegen.py", line 13, in <module>
     from .introspection import find_current_module
   File
 "/opt/local/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7
 /site-packages/astropy/utils/introspection.py", line 11, in <module>
     from importlib import metadata
 ImportError: cannot import name 'metadata' from 'importlib'
 (/opt/local/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/importlib/__init__.py)
 }}}

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


More information about the macports-tickets mailing list