snap-python
snap-python copied to clipboard
Unable to import snap
I followed the installation instructions but I am unable to import snap. I get the following Import Error:
Traceback (most recent call last):
File "
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