snap-stanford / snap

Stanford Network Analysis Platform (SNAP) is a general purpose network analysis and graph mining library.
Other
2.16k stars 797 forks source link

image not found #187

Closed wenzhifang closed 3 years ago

wenzhifang commented 4 years ago

Traceback (most recent call last): File "", line 1, in File "/Users/mrfang/Downloads/snap-stanford-5.0.0-5.0-macosx10.14.4-x64-py3.7/snap.py", line 15, in import _snap ImportError: dlopen(/Users/mrfang/Downloads/snap-stanford-5.0.0-5.0-macosx10.14.4-x64-py3.7/_snap.so, 2): Library not loaded: /usr/local/opt/python/Frameworks/Python.framework/Versions/3.7/Python Referenced from: /Users/mrfang/Downloads/snap-stanford-5.0.0-5.0-macosx10.14.4-x64-py3.7/_snap.so Reason: image not found

damicoedoardo commented 4 years ago

import snap Traceback (most recent call last): File "", line 1, in File "/opt/miniconda3/envs/rsys/lib/python3.7/site-packages/snap.py", line 15, in import _snap ImportError: dlopen(/opt/miniconda3/envs/rsys/lib/python3.7/site-packages/_snap.so, 2): Library not loaded: /usr/local/opt/python/Frameworks/Python.framework/Versions/3.7/Python Referenced from: /opt/miniconda3/envs/rsys/lib/python3.7/site-packages/_snap.so Reason: image not found

same here.

Lucaslhm commented 4 years ago

Traceback (most recent call last): File "", line 1, in File "/Users/mrfang/Downloads/snap-stanford-5.0.0-5.0-macosx10.14.4-x64-py3.7/snap.py", line 15, in import _snap ImportError: dlopen(/Users/mrfang/Downloads/snap-stanford-5.0.0-5.0-macosx10.14.4-x64-py3.7/_snap.so, 2): Library not loaded: /usr/local/opt/python/Frameworks/Python.framework/Versions/3.7/Python Referenced from: /Users/mrfang/Downloads/snap-stanford-5.0.0-5.0-macosx10.14.4-x64-py3.7/_snap.so Reason: image not found

Happened here as well.

anbhat87 commented 4 years ago

Same here, anybody able to resolve this issue?

opengit commented 3 years ago

Same problem.

yangjingla commented 3 years ago

same problem...

sgGoel commented 3 years ago

same here, if anyone was able to resolve this please lmk!

roks commented 3 years ago

What is your python version? Where did you obtained it from - brew, conda, python.org, elsewhere? How did you install snap.py - pip, conda, setup.py?

sgGoel commented 3 years ago

Python 3.7.8 (the local version where I've installed snap-stanford). Python was obtained via pyenv, which was obtained via brew I ran pip install snap-stanford in a virtual env (test2) snap-stanford in /Users/swati/.pyenv/versions/3.7.8/envs/test2/lib/python3.7/site-packages (5.0.0) I'm getting the same error regarding _snap.so

finalfire commented 3 years ago

Hello there, I'm getting the same error.

jasonppy commented 3 years ago

Same error. I installed it using pip, my python version is 3.7.4

roks commented 3 years ago

Snap.py 6.0.0 has been released. Please check it out and let me know if there is still a problem. Use pip to install it.

a-n-622 commented 2 years ago

Hey @roks the issue still persists for me. I am using colab and snap, but it ain't working there. In colab, I am using '!pip install snap-stanford' command to install snap. Specifically, I am using 'PlotShortPathDistr' and 'PlotOutDegDistr'. For both of the cases, the '.png' file is missing, while the other two (.plt and .tab) files are being created. Please have a look.

roks commented 2 years ago

Make sure that Gnuplot is installed: http://snap.stanford.edu/snappy/index.html#system