You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hello, I'm upgrading the python version we use from 3.9 to 3.11. When trying to install python-snappy with pip it fails:
(venv_3_11) dave@Ubuntu22:~$ pip install python-snappy
Collecting python-snappy
Downloading python-snappy-0.6.1.tar.gz (24 kB)
Installing build dependencies ... done
Getting requirements to build wheel ... done
Preparing metadata (pyproject.toml) ... done
Building wheels for collected packages: python-snappy
Building wheel for python-snappy (pyproject.toml) ... error
error: subprocess-exited-with-error
× Building wheel for python-snappy (pyproject.toml) did not run successfully.
│ exit code: 1
╰─> [27 lines of output]
/tmp/pip-build-env-b4u23f5m/overlay/lib/python3.11/site-packages/setuptools/_distutils/dist.py:265: UserWarning: Unknown distribution option: 'cffi_modules'
warnings.warn(msg)
running bdist_wheel
running build
running build_py
creating build
creating build/lib.linux-x86_64-cpython-311
creating build/lib.linux-x86_64-cpython-311/snappy
copying src/snappy/snappy_formats.py -> build/lib.linux-x86_64-cpython-311/snappy
copying src/snappy/snappy.py -> build/lib.linux-x86_64-cpython-311/snappy
copying src/snappy/snappy_cffi_builder.py -> build/lib.linux-x86_64-cpython-311/snappy
copying src/snappy/__main__.py -> build/lib.linux-x86_64-cpython-311/snappy
copying src/snappy/__init__.py -> build/lib.linux-x86_64-cpython-311/snappy
copying src/snappy/hadoop_snappy.py -> build/lib.linux-x86_64-cpython-311/snappy
copying src/snappy/snappy_cffi.py -> build/lib.linux-x86_64-cpython-311/snappy
running build_ext
building 'snappy._snappy' extension
creating build/temp.linux-x86_64-cpython-311
creating build/temp.linux-x86_64-cpython-311/src
creating build/temp.linux-x86_64-cpython-311/src/snappy
x86_64-linux-gnu-gcc -Wsign-compare -DNDEBUG -g -fwrapv -O2 -Wall -g -fstack-protector-strong -Wformat -Werror=format-security -g -fwrapv -O2 -fPIC -I/home/dave/venv_3_11/include -I/usr/include/python3.11 -c src/snappy/crc32c.c -o build/temp.linux-x86_64-cpython-311/src/snappy/crc32c.o
x86_64-linux-gnu-gcc -Wsign-compare -DNDEBUG -g -fwrapv -O2 -Wall -g -fstack-protector-strong -Wformat -Werror=format-security -g -fwrapv -O2 -fPIC -I/home/dave/venv_3_11/include -I/usr/include/python3.11 -c src/snappy/snappymodule.cc -o build/temp.linux-x86_64-cpython-311/src/snappy/snappymodule.o
src/snappy/snappymodule.cc:33:10: fatal error: snappy-c.h: No such file or directory
33 | #include <snappy-c.h>
| ^~~~~~~~~~~~
compilation terminated.
error: command '/usr/bin/x86_64-linux-gnu-gcc' failed with exit code 1
[end of output]
note: This error originates from a subprocess, and is likely not a problem with pip.
ERROR: Failed building wheel for python-snappy
Failed to build python-snappy
ERROR: Could not build wheels for python-snappy, which is required to install pyproject.toml-based projects
After running: sudo apt install libsnappy-dev
python-snappy installs fine. It seems to be the intention, however, to remove libsnappy-dev from reading this PR: 130. Is this right?
The text was updated successfully, but these errors were encountered:
Hello, I'm upgrading the python version we use from 3.9 to 3.11. When trying to install python-snappy with pip it fails:
After running:
sudo apt install libsnappy-dev
python-snappy installs fine. It seems to be the intention, however, to remove libsnappy-dev from reading this PR: 130. Is this right?
The text was updated successfully, but these errors were encountered: