python-igraph icon indicating copy to clipboard operation
python-igraph copied to clipboard

Install Error

Open sulantha2006 opened this issue 10 years ago • 10 comments

HI I am trying to install igraph on anaconda python3.5 However, install completes fully. But I get a import error.

I did install first using pip and then using source 'python setup.py install'

Both times I get this error

File "/home/sulantha/anaconda3/lib/python3.5/site-packages/python_igraph-0.7.0-py3.5-linux-x86_64.egg/igraph/init.py", line 34, in from igraph._igraph import * ImportError: /home/sulantha/anaconda3/lib/python3.5/site-packages/python_igraph-0.7.0-py3.5-linux-x86_64.egg/igraph/_igraph.cpython-35m-x86_64-linux-gnu.so: undefined symbol: _ZdlPvm

sulantha2006 avatar Oct 12 '16 23:10 sulantha2006

Installation works just fine for me with Anaconda Python 3.5. You probably have an older version of python-igraph lying around on your machine; apparently the version number of python-igraph in your site-packages folder is 0.7.0, while the current version is 0.7.1-post6.

Try deleting /home/sulantha/anaconda3/lib/python3.5/site-packages/python_igraph-0.7.0-py3.5-linux-x86_64.egg/ and then reinstall using pip. Installation with pip should work fine.

ntamas avatar Oct 13 '16 11:10 ntamas

Hi, I removed the dir (/home/sulantha/anaconda3/lib/python3.5/site-packages/python_igraph-0.7.0-py3.5-linux-x86_64.egg/) and installed with pip. Successfully installed python-igraph-0.7.1.post6 But I still get this error. ImportError: /home/sulantha/anaconda3/lib/python3.5/site-packages/igraph/_igraph.cpython-35m-x86_64-linux-gnu.so: undefined symbol: _ZdlPvm Any idea? S

On Oct 13, 2016, at 7:37 AM, Tamás Nepusz [email protected] wrote:

Installation works just fine for me with Anaconda Python 3.5. You probably have an older version of python-igraph lying around on your machine; apparently the version number of python-igraph in your site-packages folder is 0.7.0, while the current version is 0.7.1-post6.

Try deleting /home/sulantha/anaconda3/lib/python3.5/site-packages/python_igraph-0.7.0-py3.5-linux-x86_64.egg/ and then reinstall using pip. Installation with pip should work fine.

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/igraph/python-igraph/issues/99#issuecomment-253489119, or mute the thread https://github.com/notifications/unsubscribe-auth/AA-V93ahBvGceFGUxbLbqSyGWtyUOZ2lks5qzhgXgaJpZM4KVUOW.

sulantha2006 avatar Oct 13 '16 12:10 sulantha2006

No idea, sorry, it works just fine for me. It is either something specific to your machine or to Anaconda Python on your particular platform. Try asking around on the support channels of Anaconda Python - maybe they have some ideas.

ntamas avatar Oct 14 '16 12:10 ntamas

Did you solve this problem? I have this too... Running Anaconda 4.2 with python 3.5 and igraph 0.7.1.post6 on ubuntu 16.04

shainova avatar Dec 16 '16 21:12 shainova

Maby Related: I can't make python-igraph work with Anaconda 4.3.1 and Python 3.6.0 under 64-bit windows. I can't even install it - neither with standard pip install nor from wheel.

hajef avatar May 23 '17 12:05 hajef

Others have reported that these packages work on Anaconda Python.

ntamas avatar May 23 '17 15:05 ntamas

I get an unsatisfiableError beacause my python 3.6* does not match the required python 2.7* :/

hajef avatar May 24 '17 07:05 hajef

I think I know what causes it, but don't have a workaround yet.

_ZdlPvm is a symbol in the C++ standard library, libstdc++ -- but it seems to be something new and only present in the more recent versions of it. When python-igraph is installed, it is compiled against your system's libstdc++ When we try to import igraph, the version of libstdc++ which comes with anaconda is loaded instead. And while the system's version of libstdc++ (libstdc++.so.6.0.24 in my case) does export _ZdlPvm, the version that comes with Anaconda (libstdc++.so.6.0.19) does not.

We need some way to make the same version of the library to be used during compilation and run-time -- but I'm not sure how to achieve that yet.

anton-molyboha avatar Aug 19 '17 05:08 anton-molyboha

It seems like other packages are suffering from the same issue; e.g.: https://github.com/Theano/Theano/issues/5845

ntamas avatar Aug 21 '17 11:08 ntamas

Same issue. conda install libgcc solve for me!

schumannc avatar Mar 10 '18 16:03 schumannc