View Issue Details

IDProjectCategoryView StatusLast Update
0017607CentOS-8yumpublic2020-07-20 18:20
Reportervaibhav.rbs@gmail.com 
PriorityimmediateSeverityminorReproducibilityalways
Status newResolutionopen 
Product Version8.2.2004 
Target VersionFixed in Version 
Summary0017607: python-snappy installation is failing CentOS8
DescriptionI am using CentOS8

sh-4.4# cat /etc/centos-release
CentOS Linux release 8.2.2004 (Core)

when I am trying to pip3 install python-snappy AFTER I install required dependencies

yum install python3
yum install gcc
yum install gcc-c++
yum install snappy-devel
yum install python3-devel


I get following the error.
```
sh-4.4# pip3 install python-snappy
WARNING: pip is being invoked by an old script wrapper. This will fail in a future version of pip.
Please see https://github.com/pypa/pip/issues/5599 for advice on fixing the underlying issue.
To avoid this problem you can invoke Python with '-m pip' instead of running pip directly.
Collecting python-snappy
  Using cached python-snappy-0.5.4.tar.gz (21 kB)
Building wheels for collected packages: python-snappy
  Building wheel for python-snappy (setup.py) ... error
  ERROR: Command errored out with exit status 1:
   command: /usr/bin/python3.6 -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/tmp/pip-install-bs23qfbi/python-snappy/setup.py'"'"'; __file__='"'"'/tmp/pip-install-bs23qfbi/python-snappy/setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(__file__);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' bdist_wheel -d /tmp/pip-wheel-zx32rlup
       cwd: /tmp/pip-install-bs23qfbi/python-snappy/
  Complete output (23 lines):
  running bdist_wheel
  running build
  running build_py
  creating build
  creating build/lib.linux-x86_64-3.6
  creating build/lib.linux-x86_64-3.6/snappy
  copying snappy/hadoop_snappy.py -> build/lib.linux-x86_64-3.6/snappy
  copying snappy/snappy_cffi.py -> build/lib.linux-x86_64-3.6/snappy
  copying snappy/snappy_cffi_builder.py -> build/lib.linux-x86_64-3.6/snappy
  copying snappy/__main__.py -> build/lib.linux-x86_64-3.6/snappy
  copying snappy/snappy_formats.py -> build/lib.linux-x86_64-3.6/snappy
  copying snappy/snappy.py -> build/lib.linux-x86_64-3.6/snappy
  copying snappy/__init__.py -> build/lib.linux-x86_64-3.6/snappy
  running build_ext
  building 'snappy._snappy' extension
  creating build/temp.linux-x86_64-3.6
  creating build/temp.linux-x86_64-3.6/snappy
  gcc -pthread -Wno-unused-result -Wsign-compare -DDYNAMIC_ANNOTATIONS_ENABLED=1 -DNDEBUG -O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -fexceptions -fstack-protector-strong -grecord-gcc-switches -m64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -D_GNU_SOURCE -fPIC -fwrapv -fPIC -I/usr/include/python3.6m -c snappy/snappymodule.cc -o build/temp.linux-x86_64-3.6/snappy/snappymodule.o
  snappy/snappymodule.cc:31:10: fatal error: snappy-c.h: No such file or directory
   #include <snappy-c.h>
            ^~~~~~~~~~~~
  compilation terminated.
  error: command 'gcc' failed with exit status 1
  ----------------------------------------
  ERROR: Failed building wheel for python-snappy
  Running setup.py clean for python-snappy
Failed to build python-snappy
Installing collected packages: python-snappy
    Running setup.py install for python-snappy ... error
    ERROR: Command errored out with exit status 1:
     command: /usr/bin/python3.6 -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/tmp/pip-install-bs23qfbi/python-snappy/setup.py'"'"'; __file__='"'"'/tmp/pip-install-bs23qfbi/python-snappy/setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(__file__);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' install --record /tmp/pip-record-q8930ynf/install-record.txt --single-version-externally-managed --compile --install-headers /usr/local/include/python3.6m/python-snappy
         cwd: /tmp/pip-install-bs23qfbi/python-snappy/
    Complete output (23 lines):
    running install
    running build
    running build_py
    creating build
    creating build/lib.linux-x86_64-3.6
    creating build/lib.linux-x86_64-3.6/snappy
    copying snappy/hadoop_snappy.py -> build/lib.linux-x86_64-3.6/snappy
    copying snappy/snappy_cffi.py -> build/lib.linux-x86_64-3.6/snappy
    copying snappy/snappy_cffi_builder.py -> build/lib.linux-x86_64-3.6/snappy
    copying snappy/__main__.py -> build/lib.linux-x86_64-3.6/snappy
    copying snappy/snappy_formats.py -> build/lib.linux-x86_64-3.6/snappy
    copying snappy/snappy.py -> build/lib.linux-x86_64-3.6/snappy
    copying snappy/__init__.py -> build/lib.linux-x86_64-3.6/snappy
    running build_ext
    building 'snappy._snappy' extension
    creating build/temp.linux-x86_64-3.6
    creating build/temp.linux-x86_64-3.6/snappy
    gcc -pthread -Wno-unused-result -Wsign-compare -DDYNAMIC_ANNOTATIONS_ENABLED=1 -DNDEBUG -O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -fexceptions -fstack-protector-strong -grecord-gcc-switches -m64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -D_GNU_SOURCE -fPIC -fwrapv -fPIC -I/usr/include/python3.6m -c snappy/snappymodule.cc -o build/temp.linux-x86_64-3.6/snappy/snappymodule.o
    snappy/snappymodule.cc:31:10: fatal error: snappy-c.h: No such file or directory
     #include <snappy-c.h>
              ^~~~~~~~~~~~
    compilation terminated.
    error: command 'gcc' failed with exit status 1
    ----------------------------------------
ERROR: Command errored out with exit status 1: /usr/bin/python3.6 -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/tmp/pip-install-bs23qfbi/python-snappy/setup.py'"'"'; __file__='"'"'/tmp/pip-install-bs23qfbi/python-snappy/setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(__file__);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' install --record /tmp/pip-record-q8930ynf/install-record.txt --single-version-externally-managed --compile --install-headers /usr/local/include/python3.6m/python-snappy Check the logs for full command output.
```

however when I try to pip3 install python-snappy on CentOS7 after I install same dependencies installation works fine


yum install python3
yum install gcc
yum install gcc-c++
yum install snappy-devel
yum install python3-devel
pip3 install python-snappy


can you please let me know how can I install python-snappy on CentOS8 ?
Steps To ReproduceCentOS8
yum install python3
yum install gcc
yum install gcc-c++
yum install snappy-devel
yum install python3-devel
pip3 install python-snappy
Fails with logs shown up above
TagsNo tags attached.

Activities

vaibhav.rbs@gmail.com

vaibhav.rbs@gmail.com

2020-07-20 18:20

reporter   ~0037385

also snappy-devel is missing CentOS Linux release 8.2.2004 (Core)

sh-4.4# yum install snappy-devel
Last metadata expiration check: 1 day, 1:18:19 ago on Sun Jul 19 16:59:25 2020.
No match for argument: snappy-devel

v/s

 
sh-4.2# cat /etc/centos-release
CentOS Linux release 7.0.1406 (Core)

sh-4.2# yum install snappy-devel
Loaded plugins: fastestmirror
Loading mirror speeds from cached hostfile
 * base: ftpmirror.your.org
 * epel: mirrors.kernel.org
 * extras: mirror.phx1.us.spryservers.net
 * updates: centos.host-engine.com
Package snappy-devel-1.1.0-3.el7.x86_64 already installed and latest version
Nothing to do

Issue History

Date Modified Username Field Change
2020-07-20 18:10 vaibhav.rbs@gmail.com New Issue
2020-07-20 18:20 vaibhav.rbs@gmail.com Note Added: 0037385