Opened 7 years ago

Closed 7 years ago

#53211 closed defect (fixed)

py27-astropy @1.3_0: ImportError for "import astropy.io.ascii"

Reported by: smithsp (Sterling Smith) Owned by: robitaille@…
Priority: Normal Milestone:
Component: ports Version:
Keywords: Cc: Schamschula (Marius Schamschula)
Port: py-astropy

Description

When I try the following in python

import astropy.io.ascii

I get the following exception:

>>> import astropy.io.ascii
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/astropy/io/ascii/__init__.py", line 8, in <module>
    from .core import (InconsistentTableError,
  File "/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/astropy/io/ascii/core.py", line 31, in <module>
    from ...table import Table
  File "/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/astropy/table/__init__.py", line 43, in <module>
    from .column import Column, MaskedColumn
  File "/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/astropy/table/column.py", line 20, in <module>
    from . import groups
  File "/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/astropy/table/groups.py", line 11, in <module>
    from .index import get_index
  File "/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/astropy/table/index.py", line 42, in <module>
    from ..time import Time
  File "/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/astropy/time/__init__.py", line 2, in <module>
    from .formats import *
  File "/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/astropy/time/formats.py", line 15, in <module>
    from .. import _erfa as erfa
  File "/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/astropy/_erfa/__init__.py", line 4, in <module>
    from .core import *
  File "/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/astropy/_erfa/core.py", line 43, in <module>
    from . import _core
ImportError: dlopen(/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/astropy/_erfa/_core.so, 2): Symbol not found: _eraEceq06
  Referenced from: /opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/astropy/_erfa/_core.so
  Expected in: flat namespace
 in /opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/astropy/_erfa/_core.so

Here is what I have installed:

~ 3 : port installed erfa
The following ports are currently installed:
  erfa @1.1.1_0
  erfa @1.2.0_0 (active)
~ 4 : port installed py27-astropy
The following ports are currently installed:
  py27-astropy @1.1.1_2
  py27-astropy @1.2_4
  py27-astropy @1.3_0 (active)

I searched around and didn't see anything obvious. A few hours ago, I did a port upgrade outdated, as it was working before that.

Change History (5)

comment:1 Changed 7 years ago by ryandesign (Ryan Carsten Schmidt)

Cc: robitaille@… removed
Owner: set to robitaille@…
Port: py-astropy added; astropy removed
Status: newassigned
Summary: ImportError for "import astropy.io.ascii"py27-astropy @1.3_0: ImportError for "import astropy.io.ascii"

comment:2 Changed 7 years ago by Schamschula (Marius Schamschula)

erfa has been updated to version 1.3.0. This should fix this issue.

See: https://github.com/macports/macports-ports/commit/62f75861b05d93a7455ba382004e40f411302232

comment:3 Changed 7 years ago by Schamschula (Marius Schamschula)

Cc: Schamschula added

comment:4 Changed 7 years ago by smithsp (Sterling Smith)

I can confirm that the upgrade to erfa to 1.3.0 solved my import problem and recommend closing this ticket.

comment:5 Changed 7 years ago by Schamschula (Marius Schamschula)

Resolution: fixed
Status: assignedclosed
Note: See TracTickets for help on using tickets.