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

Unable to import snap #117

Open
vaastav opened this issue Jan 28, 2020 · 1 comment
Open

Unable to import snap #117

vaastav opened this issue Jan 28, 2020 · 1 comment

Comments

@vaastav
Copy link

vaastav commented Jan 28, 2020

I followed the installation instructions but I am unable to import snap. I get the following Import Error:

Traceback (most recent call last):
File "", line 1, in
File "swig/snap.py", line 32, in
_snap = swig_import_helper()
File "swig/snap.py", line 28, in swig_import_helper
_mod = imp.load_module('_snap', fp, pathname, description)
File "/home/vaastav/anaconda3/lib/python3.6/imp.py", line 243, in load_module
return load_dynamic(name, filename, file)
File "/home/vaastav/anaconda3/lib/python3.6/imp.py", line 343, in load_dynamic
return _load(spec)
ImportError: swig/_snap.so: undefined symbol: PyInstance_Type

@billlyzhaoyh
Copy link

I am encountering a similar error here in my anaconda environment:

import snap
Traceback (most recent call last):
File "", line 1, in
File "/Users/billyzhaoyh/anaconda/envs/aihack/lib/python3.7/site-packages/snap_stanford-5.0.0_dev_macosx10.14.6_x64_py3.7-py3.7.egg/snap.py", line 15, in
import _snap
ImportError: dlopen(/Users/billyzhaoyh/.local/lib/python3.7/site-packages/_snap.so, 2): Symbol not found: _PyBytes_AsString
Referenced from: /Users/billyzhaoyh/.local/lib/python3.7/site-packages/_snap.so
Expected in: /System/Library/Frameworks/Python.framework/Versions/2.7/Python
in /Users/billyzhaoyh/.local/lib/python3.7/site-packages/_snap.so

for some reason, the snap address is pointing to my python2.7 address

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

2 participants