Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Import error after installation python 3.5 (and 2.7) #1758

Closed
emeraldbullet opened this issue Apr 15, 2017 · 2 comments
Closed

Import error after installation python 3.5 (and 2.7) #1758

emeraldbullet opened this issue Apr 15, 2017 · 2 comments
Labels
duplicate Duplicate of another issue question Questions asked by users. Please use https://discourse.obspy.org for asking new questions

Comments

@emeraldbullet
Copy link

Hello,

I am trying to install OBSPY v 1.03-py35_1 via conda v 4.3.14 on MacOs 10.12.4 w/ updated Xcode (8.3.1) & Command line tools. I set-up environments for both python 3.5 & python 2.7 and cannot get it to work in either. Here are examples of the error:

In the python 3.5 environment after installation/update I run the command:
obspy-runtests

And get this ImportError:
ImportError: dlopen(/Users/(my user name)/anaconda2/envs/py35/lib/python3.5/site-packages/lxml/etree.cpython-35m-darwin.so, 2): Library not loaded: @rpath/libicui18n.56.dylib
Referenced from: /Users/(my user name)/anaconda2/envs/py35/lib/libxslt.1.dylib
Reason: image not found

Using Ipython in the python 3.5 environment I run the command:
from obspy.core import read

And get this ImportError (same as above):
dlopen(/Users/(my user name)/anaconda2/envs/py35/lib/python3.5/site-packages/lxml/etree.cpython-35m-darwin.so, 2): Library not loaded: @rpath/libicui18n.56.dylib
Referenced from: /Users/(my user name)/anaconda2/envs/py35/lib/libxslt.1.dylib
Reason: image not found

Any/all suggestions are welcome. Thank-You!

@QuLogic
Copy link
Member

QuLogic commented Apr 15, 2017

The conda-forge packages were (and still are, IMO) broken. Try conda install 'icu=56.*' 'libxslt=1.1.29=2', and see further discussion in #1677.

@QuLogic QuLogic closed this as completed Apr 15, 2017
@emeraldbullet
Copy link
Author

That worked great, Thanks!!

@QuLogic QuLogic added question Questions asked by users. Please use https://discourse.obspy.org for asking new questions duplicate Duplicate of another issue labels Apr 15, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
duplicate Duplicate of another issue question Questions asked by users. Please use https://discourse.obspy.org for asking new questions
Projects
None yet
Development

No branches or pull requests

2 participants