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

MacPorts noreply at macports.org
Wed Dec 1 16:09:14 UTC 2021


#64030: py38-astropy @5.0 fails import
---------------------------+-------------------------
  Reporter:  odysseus9672  |      Owner:  Schamschula
      Type:  defect        |     Status:  assigned
  Priority:  Normal        |  Milestone:
 Component:  ports         |    Version:
Resolution:                |   Keywords:
      Port:  py-astropy    |
---------------------------+-------------------------

Comment (by ul5255):

 we experience the same with python39 and py39-astropy. Installing
 py39-yaml and p39-packaging solves it:

 {{{
 >>> from astropy.table import Table
 Traceback (most recent call last):
   File "<stdin>", line 1, in <module>
   File
 "/opt/local/Library/Frameworks/Python.framework/Versions/3.9/lib/python3.9
 /site-packages/astropy/table/__init__.py", line 67, in <module>
     import astropy.io.ascii.connect
   File
 "/opt/local/Library/Frameworks/Python.framework/Versions/3.9/lib/python3.9
 /site-packages/astropy/io/ascii/__init__.py", line 34, in <module>
     from .ecsv import Ecsv
   File
 "/opt/local/Library/Frameworks/Python.framework/Versions/3.9/lib/python3.9
 /site-packages/astropy/io/ascii/ecsv.py", line 15, in <module>
     from astropy.table import meta, serialize
   File
 "/opt/local/Library/Frameworks/Python.framework/Versions/3.9/lib/python3.9
 /site-packages/astropy/table/meta.py", line 7, in <module>
     import yaml
 ModuleNotFoundError: No module named 'yaml'
 }}}

 and


 {{{
 >>> from astropy.io import fits as pyfits
 Traceback (most recent call last):
   File "<stdin>", line 1, in <module>
   File
 "/opt/local/Library/Frameworks/Python.framework/Versions/3.9/lib/python3.9
 /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.9/lib/python3.9
 /site-packages/astropy/config/__init__.py", line 10, in <module>
     from .configuration import *
   File
 "/opt/local/Library/Frameworks/Python.framework/Versions/3.9/lib/python3.9
 /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.9/lib/python3.9
 /site-packages/astropy/utils/__init__.py", line 17, in <module>
     from .codegen import *  # noqa
   File
 "/opt/local/Library/Frameworks/Python.framework/Versions/3.9/lib/python3.9
 /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.9/lib/python3.9
 /site-packages/astropy/utils/introspection.py", line 12, in <module>
     from packaging.version import Version
 ModuleNotFoundError: No module named 'packaging'
 }}}

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


More information about the macports-tickets mailing list