byt3bl33d3r/SprayingToolkit

An error occurred while installing brotlipy==0.7.0! Will try again.

ttinkr opened this issue · 1 comments

Anybody has the same troubles installing the toolkit?
When i cd to the SprayingToolkit directory and do a pipenv install I get:

pipenv install                                             ✔    130  13:15:19 
Installing dependencies from Pipfile.lock (7c127f)…
An error occurred while installing brotlipy==0.7.0! Will try again.
  🐍   ▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉ 41/41 — 00:00:46
Installing initially–failed dependencies…
Collecting brotlipy==0.7.0 ▉▉▉▉▉▉▉▉▉▉ 0/1 — 00:00:00
  Using cached https://files.pythonhosted.org/packages/d9/91/bc79b88590e4f662bd40a55a2b6beb0f15da4726732efec5aa5a3763d856/brotlipy-0.7.0.tar.gz
Building wheels for collected packages: brotlipy
  Running setup.py bdist_wheel for brotlipy: started
  Running setup.py bdist_wheel for brotlipy: finished with status 'error'
  Complete output from command /root/.local/share/virtualenvs/SprayingToolkit-OCb3TDaP/bin/python3.7m -u -c "import setuptools, tokenize;__file__='/tmp/pip-install-3neh2n4c/brotlipy/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-satii7nn --python-tag cp37:
  running bdist_wheel
  running build
  running build_py
  creating build
  creating build/lib.linux-x86_64-3.7
  creating build/lib.linux-x86_64-3.7/brotli
  copying src/brotli/build.py -> build/lib.linux-x86_64-3.7/brotli
  copying src/brotli/__init__.py -> build/lib.linux-x86_64-3.7/brotli
  copying src/brotli/brotli.py -> build/lib.linux-x86_64-3.7/brotli
  warning: build_py: byte-compiling is disabled, skipping.
  
  running build_clib
  building 'libbrotli' library
  creating build/temp.linux-x86_64-3.7
  creating build/temp.linux-x86_64-3.7/libbrotli
  creating build/temp.linux-x86_64-3.7/libbrotli/common
  creating build/temp.linux-x86_64-3.7/libbrotli/dec
  creating build/temp.linux-x86_64-3.7/libbrotli/enc
  x86_64-linux-gnu-gcc -pthread -DNDEBUG -g -fwrapv -O2 -Wall -g -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -fPIC -Ilibbrotli/include -Ilibbrotli/ -Isrc/brotli -c libbrotli/common/dictionary.c -o build/temp.linux-x86_64-3.7/libbrotli/common/dictionary.o
  x86_64-linux-gnu-gcc -pthread -DNDEBUG -g -fwrapv -O2 -Wall -g -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -fPIC -Ilibbrotli/include -Ilibbrotli/ -Isrc/brotli -c libbrotli/dec/huffman.c -o build/temp.linux-x86_64-3.7/libbrotli/dec/huffman.o
  x86_64-linux-gnu-gcc -pthread -DNDEBUG -g -fwrapv -O2 -Wall -g -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -fPIC -Ilibbrotli/include -Ilibbrotli/ -Isrc/brotli -c libbrotli/dec/bit_reader.c -o build/temp.linux-x86_64-3.7/libbrotli/dec/bit_reader.o
  x86_64-linux-gnu-gcc -pthread -DNDEBUG -g -fwrapv -O2 -Wall -g -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -fPIC -Ilibbrotli/include -Ilibbrotli/ -Isrc/brotli -c libbrotli/dec/decode.c -o build/temp.linux-x86_64-3.7/libbrotli/dec/decode.o
  x86_64-linux-gnu-gcc -pthread -DNDEBUG -g -fwrapv -O2 -Wall -g -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -fPIC -Ilibbrotli/include -Ilibbrotli/ -Isrc/brotli -c libbrotli/dec/state.c -o build/temp.linux-x86_64-3.7/libbrotli/dec/state.o
  x86_64-linux-gnu-gcc -pthread -DNDEBUG -g -fwrapv -O2 -Wall -g -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -fPIC -Ilibbrotli/include -Ilibbrotli/ -Isrc/brotli -c libbrotli/enc/backward_references.c -o build/temp.linux-x86_64-3.7/libbrotli/enc/backward_references.o
  x86_64-linux-gnu-gcc -pthread -DNDEBUG -g -fwrapv -O2 -Wall -g -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -fPIC -Ilibbrotli/include -Ilibbrotli/ -Isrc/brotli -c libbrotli/enc/backward_references_hq.c -o build/temp.linux-x86_64-3.7/libbrotli/enc/backward_references_hq.o
  x86_64-linux-gnu-gcc -pthread -DNDEBUG -g -fwrapv -O2 -Wall -g -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -fPIC -Ilibbrotli/include -Ilibbrotli/ -Isrc/brotli -c libbrotli/enc/bit_cost.c -o build/temp.linux-x86_64-3.7/libbrotli/enc/bit_cost.o
  x86_64-linux-gnu-gcc -pthread -DNDEBUG -g -fwrapv -O2 -Wall -g -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -fPIC -Ilibbrotli/include -Ilibbrotli/ -Isrc/brotli -c libbrotli/enc/block_splitter.c -o build/temp.linux-x86_64-3.7/libbrotli/enc/block_splitter.o
  In file included from libbrotli/enc/./block_splitter.h:14,
                   from libbrotli/enc/block_splitter.c:9:
  libbrotli/enc/./block_splitter_inc.h: In function ‘SplitByteVectorLiteral’:
  libbrotli/enc/./block_splitter_inc.h:403:61: warning: ‘*’ in boolean context, suggest ‘&&’ instead [-Wint-in-bool-context]
       double* insert_cost = BROTLI_ALLOC(m, double, data_size * num_histograms);
  libbrotli/enc/././memory.h:43:5: note: in definition of macro ‘BROTLI_ALLOC’
     ((N) ? ((T*)BrotliAllocate((M), (N) * sizeof(T))) : NULL)
       ^
  libbrotli/enc/./block_splitter_inc.h:405:62: warning: ‘*’ in boolean context, suggest ‘&&’ instead [-Wint-in-bool-context]
       uint8_t* switch_signal = BROTLI_ALLOC(m, uint8_t, length * bitmaplen);
  libbrotli/enc/././memory.h:43:5: note: in definition of macro ‘BROTLI_ALLOC’
     ((N) ? ((T*)BrotliAllocate((M), (N) * sizeof(T))) : NULL)
       ^
  libbrotli/enc/./block_splitter_inc.h: In function ‘SplitByteVectorCommand’:
  libbrotli/enc/./block_splitter_inc.h:403:61: warning: ‘*’ in boolean context, suggest ‘&&’ instead [-Wint-in-bool-context]
       double* insert_cost = BROTLI_ALLOC(m, double, data_size * num_histograms);
  libbrotli/enc/././memory.h:43:5: note: in definition of macro ‘BROTLI_ALLOC’
     ((N) ? ((T*)BrotliAllocate((M), (N) * sizeof(T))) : NULL)
       ^
  libbrotli/enc/./block_splitter_inc.h:405:62: warning: ‘*’ in boolean context, suggest ‘&&’ instead [-Wint-in-bool-context]
       uint8_t* switch_signal = BROTLI_ALLOC(m, uint8_t, length * bitmaplen);
  libbrotli/enc/././memory.h:43:5: note: in definition of macro ‘BROTLI_ALLOC’
     ((N) ? ((T*)BrotliAllocate((M), (N) * sizeof(T))) : NULL)
       ^
  libbrotli/enc/./block_splitter_inc.h: In function ‘SplitByteVectorDistance’:
  libbrotli/enc/./block_splitter_inc.h:403:61: warning: ‘*’ in boolean context, suggest ‘&&’ instead [-Wint-in-bool-context]
       double* insert_cost = BROTLI_ALLOC(m, double, data_size * num_histograms);
  libbrotli/enc/././memory.h:43:5: note: in definition of macro ‘BROTLI_ALLOC’
     ((N) ? ((T*)BrotliAllocate((M), (N) * sizeof(T))) : NULL)
       ^
  libbrotli/enc/./block_splitter_inc.h:405:62: warning: ‘*’ in boolean context, suggest ‘&&’ instead [-Wint-in-bool-context]
       uint8_t* switch_signal = BROTLI_ALLOC(m, uint8_t, length * bitmaplen);
  libbrotli/enc/././memory.h:43:5: note: in definition of macro ‘BROTLI_ALLOC’
     ((N) ? ((T*)BrotliAllocate((M), (N) * sizeof(T))) : NULL)
       ^
  x86_64-linux-gnu-gcc -pthread -DNDEBUG -g -fwrapv -O2 -Wall -g -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -fPIC -Ilibbrotli/include -Ilibbrotli/ -Isrc/brotli -c libbrotli/enc/histogram.c -o build/temp.linux-x86_64-3.7/libbrotli/enc/histogram.o
  x86_64-linux-gnu-gcc -pthread -DNDEBUG -g -fwrapv -O2 -Wall -g -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -fPIC -Ilibbrotli/include -Ilibbrotli/ -Isrc/brotli -c libbrotli/enc/memory.c -o build/temp.linux-x86_64-3.7/libbrotli/enc/memory.o
  x86_64-linux-gnu-gcc -pthread -DNDEBUG -g -fwrapv -O2 -Wall -g -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -fPIC -Ilibbrotli/include -Ilibbrotli/ -Isrc/brotli -c libbrotli/enc/literal_cost.c -o build/temp.linux-x86_64-3.7/libbrotli/enc/literal_cost.o
  x86_64-linux-gnu-gcc -pthread -DNDEBUG -g -fwrapv -O2 -Wall -g -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -fPIC -Ilibbrotli/include -Ilibbrotli/ -Isrc/brotli -c libbrotli/enc/brotli_bit_stream.c -o build/temp.linux-x86_64-3.7/libbrotli/enc/brotli_bit_stream.o
  x86_64-linux-gnu-gcc -pthread -DNDEBUG -g -fwrapv -O2 -Wall -g -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -fPIC -Ilibbrotli/include -Ilibbrotli/ -Isrc/brotli -c libbrotli/enc/compress_fragment_two_pass.c -o build/temp.linux-x86_64-3.7/libbrotli/enc/compress_fragment_two_pass.o
  x86_64-linux-gnu-gcc -pthread -DNDEBUG -g -fwrapv -O2 -Wall -g -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -fPIC -Ilibbrotli/include -Ilibbrotli/ -Isrc/brotli -c libbrotli/enc/compress_fragment.c -o build/temp.linux-x86_64-3.7/libbrotli/enc/compress_fragment.o
  x86_64-linux-gnu-gcc -pthread -DNDEBUG -g -fwrapv -O2 -Wall -g -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -fPIC -Ilibbrotli/include -Ilibbrotli/ -Isrc/brotli -c libbrotli/enc/cluster.c -o build/temp.linux-x86_64-3.7/libbrotli/enc/cluster.o
  x86_64-linux-gnu-gcc -pthread -DNDEBUG -g -fwrapv -O2 -Wall -g -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -fPIC -Ilibbrotli/include -Ilibbrotli/ -Isrc/brotli -c libbrotli/enc/utf8_util.c -o build/temp.linux-x86_64-3.7/libbrotli/enc/utf8_util.o
  x86_64-linux-gnu-gcc -pthread -DNDEBUG -g -fwrapv -O2 -Wall -g -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -fPIC -Ilibbrotli/include -Ilibbrotli/ -Isrc/brotli -c libbrotli/enc/encode.c -o build/temp.linux-x86_64-3.7/libbrotli/enc/encode.o
  x86_64-linux-gnu-gcc -pthread -DNDEBUG -g -fwrapv -O2 -Wall -g -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -fPIC -Ilibbrotli/include -Ilibbrotli/ -Isrc/brotli -c libbrotli/enc/metablock.c -o build/temp.linux-x86_64-3.7/libbrotli/enc/metablock.o
  In file included from libbrotli/enc/././block_splitter.h:14,
                   from libbrotli/enc/./metablock.h:14,
                   from libbrotli/enc/metablock.c:10:
  libbrotli/enc/metablock.c: In function ‘ContextBlockSplitterFinishBlock’:
  libbrotli/enc/metablock.c:279:45: warning: ‘*’ in boolean context, suggest ‘&&’ instead [-Wint-in-bool-context]
           BROTLI_ALLOC(m, HistogramLiteral, 2 * num_contexts);
  libbrotli/enc/./././memory.h:43:5: note: in definition of macro ‘BROTLI_ALLOC’
     ((N) ? ((T*)BrotliAllocate((M), (N) * sizeof(T))) : NULL)
       ^
  x86_64-linux-gnu-gcc -pthread -DNDEBUG -g -fwrapv -O2 -Wall -g -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -fPIC -Ilibbrotli/include -Ilibbrotli/ -Isrc/brotli -c libbrotli/enc/static_dict.c -o build/temp.linux-x86_64-3.7/libbrotli/enc/static_dict.o
  x86_64-linux-gnu-gcc -pthread -DNDEBUG -g -fwrapv -O2 -Wall -g -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -fPIC -Ilibbrotli/include -Ilibbrotli/ -Isrc/brotli -c libbrotli/enc/dictionary_hash.c -o build/temp.linux-x86_64-3.7/libbrotli/enc/dictionary_hash.o
  x86_64-linux-gnu-gcc -pthread -DNDEBUG -g -fwrapv -O2 -Wall -g -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -fPIC -Ilibbrotli/include -Ilibbrotli/ -Isrc/brotli -c libbrotli/enc/entropy_encode.c -o build/temp.linux-x86_64-3.7/libbrotli/enc/entropy_encode.o
  x86_64-linux-gnu-gcc-ar rcs build/temp.linux-x86_64-3.7/liblibbrotli.a build/temp.linux-x86_64-3.7/libbrotli/common/dictionary.o build/temp.linux-x86_64-3.7/libbrotli/dec/huffman.o build/temp.linux-x86_64-3.7/libbrotli/dec/bit_reader.o build/temp.linux-x86_64-3.7/libbrotli/dec/decode.o build/temp.linux-x86_64-3.7/libbrotli/dec/state.o build/temp.linux-x86_64-3.7/libbrotli/enc/backward_references.o build/temp.linux-x86_64-3.7/libbrotli/enc/backward_references_hq.o build/temp.linux-x86_64-3.7/libbrotli/enc/bit_cost.o build/temp.linux-x86_64-3.7/libbrotli/enc/block_splitter.o build/temp.linux-x86_64-3.7/libbrotli/enc/histogram.o build/temp.linux-x86_64-3.7/libbrotli/enc/memory.o build/temp.linux-x86_64-3.7/libbrotli/enc/literal_cost.o build/temp.linux-x86_64-3.7/libbrotli/enc/brotli_bit_stream.o build/temp.linux-x86_64-3.7/libbrotli/enc/compress_fragment_two_pass.o build/temp.linux-x86_64-3.7/libbrotli/enc/compress_fragment.o build/temp.linux-x86_64-3.7/libbrotli/enc/cluster.o build/temp.linux-x86_64-3.7/libbrotli/enc/utf8_util.o build/temp.linux-x86_64-3.7/libbrotli/enc/encode.o build/temp.linux-x86_64-3.7/libbrotli/enc/metablock.o build/temp.linux-x86_64-3.7/libbrotli/enc/static_dict.o build/temp.linux-x86_64-3.7/libbrotli/enc/dictionary_hash.o build/temp.linux-x86_64-3.7/libbrotli/enc/entropy_encode.o
  running build_ext
  generating cffi module 'build/temp.linux-x86_64-3.7/_brotli.c'
  building '_brotli' extension
  creating build/temp.linux-x86_64-3.7/build
  creating build/temp.linux-x86_64-3.7/build/temp.linux-x86_64-3.7
  x86_64-linux-gnu-gcc -pthread -DNDEBUG -g -fwrapv -O2 -Wall -g -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -fPIC -Ilibbrotli -Ilibbrotli/include -I/usr/include/python3.7m -I/root/.local/share/virtualenvs/SprayingToolkit-OCb3TDaP/include/python3.7m -c build/temp.linux-x86_64-3.7/_brotli.c -o build/temp.linux-x86_64-3.7/build/temp.linux-x86_64-3.7/_brotli.o
  build/temp.linux-x86_64-3.7/_brotli.c:22:12: fatal error: pyconfig.h: No such file or directory
   #  include <pyconfig.h>
              ^~~~~~~~~~~~
  compilation terminated.
  error: command 'x86_64-linux-gnu-gcc' failed with exit status 1
  
  ----------------------------------------
  Running setup.py clean for brotlipy
Failed to build brotlipy
Installing collected packages: brotlipy
  Running setup.py install for brotlipy: started
    Running setup.py install for brotlipy: finished with status 'error'
    Complete output from command /root/.local/share/virtualenvs/SprayingToolkit-OCb3TDaP/bin/python3.7m -u -c "import setuptools, tokenize;__file__='/tmp/pip-install-3neh2n4c/brotlipy/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-apnag4z3/install-record.txt --single-version-externally-managed --compile --install-headers /root/.local/share/virtualenvs/SprayingToolkit-OCb3TDaP/include/site/python3.7/brotlipy:
    running install
    running build
    running build_py
    creating build
    creating build/lib.linux-x86_64-3.7
    creating build/lib.linux-x86_64-3.7/brotli
    copying src/brotli/build.py -> build/lib.linux-x86_64-3.7/brotli
    copying src/brotli/__init__.py -> build/lib.linux-x86_64-3.7/brotli
    copying src/brotli/brotli.py -> build/lib.linux-x86_64-3.7/brotli
    warning: build_py: byte-compiling is disabled, skipping.
    
    running build_clib
    building 'libbrotli' library
    creating build/temp.linux-x86_64-3.7
    creating build/temp.linux-x86_64-3.7/libbrotli
    creating build/temp.linux-x86_64-3.7/libbrotli/common
    creating build/temp.linux-x86_64-3.7/libbrotli/dec
    creating build/temp.linux-x86_64-3.7/libbrotli/enc
    x86_64-linux-gnu-gcc -pthread -DNDEBUG -g -fwrapv -O2 -Wall -g -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -fPIC -Ilibbrotli/include -Ilibbrotli/ -Isrc/brotli -c libbrotli/common/dictionary.c -o build/temp.linux-x86_64-3.7/libbrotli/common/dictionary.o
    x86_64-linux-gnu-gcc -pthread -DNDEBUG -g -fwrapv -O2 -Wall -g -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -fPIC -Ilibbrotli/include -Ilibbrotli/ -Isrc/brotli -c libbrotli/dec/huffman.c -o build/temp.linux-x86_64-3.7/libbrotli/dec/huffman.o
    x86_64-linux-gnu-gcc -pthread -DNDEBUG -g -fwrapv -O2 -Wall -g -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -fPIC -Ilibbrotli/include -Ilibbrotli/ -Isrc/brotli -c libbrotli/dec/bit_reader.c -o build/temp.linux-x86_64-3.7/libbrotli/dec/bit_reader.o
    x86_64-linux-gnu-gcc -pthread -DNDEBUG -g -fwrapv -O2 -Wall -g -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -fPIC -Ilibbrotli/include -Ilibbrotli/ -Isrc/brotli -c libbrotli/dec/decode.c -o build/temp.linux-x86_64-3.7/libbrotli/dec/decode.o
    x86_64-linux-gnu-gcc -pthread -DNDEBUG -g -fwrapv -O2 -Wall -g -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -fPIC -Ilibbrotli/include -Ilibbrotli/ -Isrc/brotli -c libbrotli/dec/state.c -o build/temp.linux-x86_64-3.7/libbrotli/dec/state.o
    x86_64-linux-gnu-gcc -pthread -DNDEBUG -g -fwrapv -O2 -Wall -g -fstack-protector-strong -Wformat 

# include <pyconfig.h>
^~~~~~~~~~~~
compilation terminated.
error: command 'x86_64-linux-gnu-gcc' failed with exit status 1 >

Seems like you're missing some python header files on your system. Try installing the python-dev package.