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 while meetig all requirements #13

Closed
jsbaan opened this issue Oct 25, 2016 · 4 comments
Closed

Import error while meetig all requirements #13

jsbaan opened this issue Oct 25, 2016 · 4 comments

Comments

@jsbaan
Copy link

jsbaan commented Oct 25, 2016

When trying to import this package in python 2.7 I keep getting the same error:

>>> import pyemd
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "build/bdist.linux-x86_64/egg/pyemd/__init__.py", line 63, in <module>
  File "build/bdist.linux-x86_64/egg/pyemd/emd.py", line 7, in <module>
  File "build/bdist.linux-x86_64/egg/pyemd/emd.py", line 6, in __bootstrap__
ImportError: /home/joris/.cache/Python-Eggs/pyemd-0.3.0-py2.7-linux-x86_64.egg-tmp/pyemd/emd.so: undefined symbol: _ZTINSt8ios_base7failureB5cxx11E

I can't seem to fix this, have tried reinstalling, installing using setup.py, dowloading all requirements (numpy, scipy, cython, g++/gcc, everything in requirements.txt, everything else I could think of) but nothing seems to work. What could cause this error?

@wmayner
Copy link
Owner

wmayner commented Oct 25, 2016

I'm afraid I can't help much with this, since only Python 3 is officially supported.

That said, I did try to reproduce this and couldn't. It installed successfully into a new Python 2.7 environment on both OS X and Linux.

Try using a fresh, empty virtual environment with pip and setuptools updated to the latest version before running pip install pyemd.

@jsbaan
Copy link
Author

jsbaan commented Oct 26, 2016

I finally found the cause; it was due my use of anaconda. Once I removed anaconda and installed python 2.7 it worked perfectly. Thanks for the help!

@jsbaan jsbaan closed this as completed Oct 26, 2016
@waterbroch
Copy link

Hi, have you solved this problems? This problems have troubled me too and I need to use the anaconda environment

@wmayner
Copy link
Owner

wmayner commented Apr 26, 2017

Please refer to the contribution guidelines. If you still have a problem, please open a new issue and provide some information.

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