Opened 3 years ago

Last modified 3 years ago

#64029 closed defect

py37-astropy @5.0 fails import — at Version 1

Reported by: odysseus9672 (Sean Lake) Owned by:
Priority: Normal Milestone:
Component: ports Version:
Keywords: Cc:
Port: py-astropy

Description (last modified by odysseus9672 (Sean Lake))

The recent update to astropy 5.0 for py37-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)

Change History (1)

comment:1 Changed 3 years ago by odysseus9672 (Sean Lake)

Description: modified (diff)
Summary: py38-astropy @5.0 fails importpy37-astropy @5.0 fails import
Note: See TracTickets for help on using tickets.