question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

problems importing astropy.time in astropy 1.3

See original GitHub issue

When I try to import astropy.time in astropy I get the following error

dlopen(/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/astropy/_erfa/_core.so, 2): Symbol not found: _eraEceq06

which seems to be a problem with _erfa/_core.so

does anyone else have this problem? Anyone know how to solve it? I tried uninstalling and re-installing both erfa and astropy but that didn’t help

I’m using mac OS 10.11.6, astropy version 1.3.0; python 2.7, macports 2.3.5

I downgraded to astropy 1.2 (the previous version) and do not have this problem

full import error is below

thanks

Mike

In [1]: import astropy.time
---------------------------------------------------------------------------
ImportError                               Traceback (most recent call last)
<ipython-input-1-388419f2a22a> in <module>()
----> 1 import astropy.time

/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/astropy/time/__init__.py in <module>()
    1 # Licensed under a 3-clause BSD style license - see LICENSE.rst
----> 2 from .formats import *
    3 from .core import *

/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/astropy/time/formats.py in <module>()
   13
   14 from .. import units as u
---> 15 from .. import _erfa as erfa
   16 from ..extern import six
   17 from ..extern.six.moves import zip

/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/astropy/_erfa/__init__.py in <module>()
    2 try:
    3     # The ERFA wrappers are not guaranteed available at setup time
----> 4     from .core import *
    5 except ImportError:
    6     if not _ASTROPY_SETUP_:

/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/astropy/_erfa/core.py in <module>()
   41
   42 import numpy
---> 43 from . import _core
   44
   45 # TODO: remove the above variable and the code using it and make_outputs_scalar

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

Issue Analytics

  • State:closed
  • Created 7 years ago
  • Comments:6 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
cdeilcommented, Jan 8, 2017

@mfacorcoran - That was a problem I introduced in Macports when I updated Astropy to 1.3, but forgot to update Erfa to 1.3 (10 days ago, see https://github.com/macports/macports-ports/pull/131). Apologies! It was fixed in https://github.com/macports/macports-ports/pull/133 six days ago.

Can you please try to update, the issue should be resolved now.

I always use these commands:

sudo port selfupdate
port outdated
sudo port -p upgrade outdated

Also – Python 3.6 is out and many packages are already available. If you don’t have to stick with Python 2.7, give it a try! 😃

sudo port install py36-astropy
0reactions
mfacorcorancommented, Jan 9, 2017

Done!

cheers

Mike

On Jan 9, 2017, at 7:05 AM, Christoph Deil notifications@github.com wrote:

@mfacorcoran - Great. Can you close this GH issue or is there something left to do?

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub, or mute the thread.

Read more comments on GitHub >

github_iconTop Results From Across the Web

import astropy.io.fits fails · Issue #5878 - GitHub
It is using a cached download of Astropy, which is not very informational. Try do pip uninstall astropy several times until it complains...
Read more >
Time and Dates (astropy.time) — Astropy v5.2
The Time object maintains an internal representation of time as a pair of double precision numbers expressing Julian days. The sum of the...
Read more >
[AstroPy] TIme.now() problem - Python mailing list
Hi Rick You've two options; either pass the longitude to the sidereal_time call, e.g from astropy.time import Time from astropy import units ...
Read more >
Time and Dates (astropy.time) — Astropy v1.2.dev14793
The astropy.time package provides functionality for manipulating times and dates. Specific emphasis is placed on supporting time scales (e.g. UTC, TAI, UT1, TDB) ......
Read more >
53203 (py-astropy @1.3: Symbol not found: _eraEceq06)
import astropy >>> astropy.test() Traceback (most recent call last): ... /astropy/table/index.py", line 42, in <module> from ..time import ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found