-
Notifications
You must be signed in to change notification settings - Fork 106
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
python setup.py install
doesn't install snappy._snappy_cffi
module
#83
Comments
_snappy_cffi.py
snappy._snappy_cffi
module
snappy._snappy_cffi
modulepython setup.py install
doesn't install snappy._snappy_cffi
module
Is this problem solved?I also found the same problem with python 3.6 |
I was getting a similar error and it turned out the problem was that I needed to |
I also had similar issue with python 3.8.5 on windows. I posted here earlier. |
In summary: it is not expected that python-snappy knows how to install the snappy binary shared object. If installing via source, that binary (and dev/headers) must be available at install time. We now have many binary wheels available, but snappy still needs to be installed at run time. |
Thanks a lot for the reply. It was installed by conda, as shown in the pkg details in the referenced post, but the error was still there. I just found a workaround to solve this temprarily: I downloaded the wheel file of python-snappy from the PyPI website and manually installed it via |
Related: #78, #69
Repro
macOS 10.14.5, in a virtualenv with Python 3.6.9, python-snappy v0.5.4 (commit 602e9c1)
git clone https://github.com/andrix/python-snappy
cd python-snappy
git checkout master
python setup.py build
python setup.py install
Testing in IPython fails with the following error:
Workaround
python setup.py bdist_egg
cd dist
unzip python_snappy-0.5.4-py3.6-macosx-10.14-x86_64.egg
cd snappy
cp _snappy_cffi.abi3.so "${VIRTUAL_ENV}/lib/python3.6/site-packages/snappy/"
After performing the above steps, it is now possible to
import snappy
in a python shell without error.(might also need to copy
_snappy.py
and_snappy.cpython-36m-darwin.so
; not sure)It appears that
python setup.py install
does not install these files.The text was updated successfully, but these errors were encountered: