problems importing astropy.time in astropy 1.3
See original GitHub issueWhen 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:
- Created 7 years ago
- Comments:6 (3 by maintainers)
Top 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 >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
@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:
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! 😃
Done!
cheers
Mike