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

Ubuntu 16.04 and Anaconda on amd64. ImportError. #14

Closed
penningavery opened this issue Oct 20, 2016 · 5 comments
Closed

Ubuntu 16.04 and Anaconda on amd64. ImportError. #14

penningavery opened this issue Oct 20, 2016 · 5 comments

Comments

@penningavery
Copy link

Hi,

Using Ubuntu 16.04 and Anaconda on amd64 I get an ImportError after attempting to run
python setup.py install
and then (outside the scikit-fmm directory) python -c "import skfmm"

It looks like:

Traceback (most recent call last):
File "", line 1, in
File "build/bdist.linux-x86_64/egg/skfmm/init.py", line 51, in
File "build/bdist.linux-x86_64/egg/skfmm/pfmm.py", line 4, in
File "build/bdist.linux-x86_64/egg/skfmm/cfmm.py", line 7, in
File "build/bdist.linux-x86_64/egg/skfmm/cfmm.py", line 6, in bootstrap
ImportError: /home/bl/.cache/Python-Eggs/scikit_fmm-0.0.9-py2.7-linux-x86_64.egg-tmp/skfmm/cfmm.so: undefined symbol: _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE9_M_createERmm

Any help would be greatly appreciated. Thanks very much.

Best wishes,
cc

@penningavery
Copy link
Author

Hi,

Just to try something different, instead of compiling from source, I used 'pip install scikit-fmm' (again from the anaconda distribution) and got the following ImportError

Traceback (most recent call last):
File "", line 1, in
File "/home/bl/anaconda2/lib/python2.7/site-packages/skfmm/init.py", line 51, in
from .pfmm import distance, travel_time, extension_velocities
File "/home/bl/anaconda2/lib/python2.7/site-packages/skfmm/pfmm.py", line 4, in
from .cfmm import cFastMarcher
ImportError: /home/bl/anaconda2/bin/../lib/libstdc++.so.6: version `GLIBCXX_3.4.21' not found (required by /home/bl/anaconda2/lib/python2.7/site-packages/skfmm/cfmm.so

I have been able to successfully compile from source and get it to run on my systems python installation. However, I need to use numba and the anaconda distribution for the program I'm working on, so hence my concern. Thanks again.

Best wishes,
cc

@penningavery
Copy link
Author

Ah, well. It seems that I just needed to google a bit more. Sorry about the distraction. The key was to run ' conda install libgcc' to update anaconda's libraries. Thanks very much for skfmm, it's very useful.

-cc

@jkfurtney
Copy link
Member

Hi, Thanks for the note about this. I have not seen these errors before so thanks for describing and solving the problem. I have been meaning to make a conda package for scikit-fmm. There was a conda recipe here: https://binstar.org/jmargeta/scikit-fmm but this link is broken now.

@d-chambers
Copy link

I just ran into the same issue and resolved it in the same way. It may be worth putting something about this in the readme?

@jkfurtney
Copy link
Member

Thanks for the note and good idea. I added a note in the README. Thanks

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants