Skip to content

error in pip install -r requirements.txt #2

@johnfelipe

Description

@johnfelipe
  WARNING: Installing from a newer Wheel-Version (1.1)
    Running setup.py install for python-snappy ... error
    ERROR: Command errored out with exit status 1:
     command: /usr/bin/python3 -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/tmp/pip-install-r1fj0fc5/python-snappy/setup.py'"'"'; __file__='"'"'/tmp/pip-install-r1fj0fc5/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-134jzbiu/install-record.txt --single-version-externally-managed --compile --install-headers /usr/local/include/python3.8/python-snappy
         cwd: /tmp/pip-install-r1fj0fc5/python-snappy/
    Complete output (23 lines):
    running install
    running build
    running build_py
    creating build
    creating build/lib.linux-x86_64-3.8
    creating build/lib.linux-x86_64-3.8/snappy
    copying snappy/snappy_cffi_builder.py -> build/lib.linux-x86_64-3.8/snappy
    copying snappy/__init__.py -> build/lib.linux-x86_64-3.8/snappy
    copying snappy/snappy_cffi.py -> build/lib.linux-x86_64-3.8/snappy
    copying snappy/__main__.py -> build/lib.linux-x86_64-3.8/snappy
    copying snappy/snappy_formats.py -> build/lib.linux-x86_64-3.8/snappy
    copying snappy/hadoop_snappy.py -> build/lib.linux-x86_64-3.8/snappy
    copying snappy/snappy.py -> build/lib.linux-x86_64-3.8/snappy
    running build_ext
    building 'snappy._snappy' extension
    creating build/temp.linux-x86_64-3.8
    creating build/temp.linux-x86_64-3.8/snappy
    x86_64-linux-gnu-gcc -pthread -Wno-unused-result -Wsign-compare -DNDEBUG -g -fwrapv -O2 -Wall -g -fstack-protector-strong -Wformat -Werror=format-security -g -fwrapv -O2 -g -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -fPIC -I/usr/include/python3.8 -c snappy/snappymodule.cc -o build/temp.linux-x86_64-3.8/snappy/snappymodule.o
    snappy/snappymodule.cc:31:10: fatal error: snappy-c.h: No such file or directory
       31 | #include <snappy-c.h>
          |          ^~~~~~~~~~~~
    compilation terminated.
    error: command 'x86_64-linux-gnu-gcc' failed with exit status 1
    ----------------------------------------
ERROR: Command errored out with exit status 1: /usr/bin/python3 -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/tmp/pip-install-r1fj0fc5/python-snappy/setup.py'"'"'; __file__='"'"'/tmp/pip-install-r1fj0fc5/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-134jzbiu/install-record.txt --single-version-externally-managed --compile --install-headers /usr/local/include/python3.8/python-snappy Check the logs for full command output.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions