Closed imidoriya closed 3 years ago
Not sure if this is related to #98 but I'm having an issue installing py-tlsh
./venv/bin/pip3 install py-tlsh Collecting py-tlsh Downloading py-tlsh-4.7.2.tar.gz (42 kB) |████████████████████████████████| 42 kB 4.9 MB/s Building wheels for collected packages: py-tlsh Building wheel for py-tlsh (setup.py) ... error ERROR: Command errored out with exit status 1: command: /var/www/xxxxx/venv/bin/python -u -c 'import io, os, sys, setuptools, tokenize; sys.argv[0] = '"'"'/tmp/pip-install-dg_bb__n/py-tlsh_39a0bf0d9ad04df7953a65b86d52cbc4/setup.py'"'"'; __file__='"'"'/tmp/pip-install-dg_bb__n/py-tlsh_39a0bf0d9ad04df7953a65b86d52cbc4/setup.py'"'"';f = getattr(tokenize, '"'"'open'"'"', open)(__file__) if os.path.exists(__file__) else io.StringIO('"'"'from setuptools import setup; setup()'"'"');code = f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' bdist_wheel -d /tmp/pip-wheel-x5qx2s6s cwd: /tmp/pip-install-dg_bb__n/py-tlsh_39a0bf0d9ad04df7953a65b86d52cbc4/ Complete output (15 lines): /usr/lib/python3.7/distutils/dist.py:274: UserWarning: Unknown distribution option: 'long_description_content_type' warnings.warn(msg) running bdist_wheel running build running build_ext building 'tlsh' extension creating build creating build/temp.linux-x86_64-3.7 creating build/temp.linux-x86_64-3.7/src 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 -Iinclude -I/var/www/xxxxxx/venv/include -I/usr/include/python3.7m -c tlshmodule.cpp -o build/temp.linux-x86_64-3.7/tlshmodule.o -DBUCKETS_128 tlshmodule.cpp:59:10: fatal error: Python.h: No such file or directory #include <Python.h> ^~~~~~~~~~ compilation terminated. error: command 'x86_64-linux-gnu-gcc' failed with exit status 1 ---------------------------------------- ERROR: Failed building wheel for py-tlsh Running setup.py clean for py-tlsh Failed to build py-tlsh Installing collected packages: py-tlsh Running setup.py install for py-tlsh ... error ERROR: Command errored out with exit status 1: command: /var/www/xxxxx/venv/bin/python -u -c 'import io, os, sys, setuptools, tokenize; sys.argv[0] = '"'"'/tmp/pip-install-dg_bb__n/py-tlsh_39a0bf0d9ad04df7953a65b86d52cbc4/setup.py'"'"'; __file__='"'"'/tmp/pip-install-dg_bb__n/py-tlsh_39a0bf0d9ad04df7953a65b86d52cbc4/setup.py'"'"';f = getattr(tokenize, '"'"'open'"'"', open)(__file__) if os.path.exists(__file__) else io.StringIO('"'"'from setuptools import setup; setup()'"'"');code = f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' install --record /tmp/pip-record-oomck04z/install-record.txt --single-version-externally-managed --compile --install-headers /var/www/xxxxx/venv/include/site/python3.7/py-tlsh cwd: /tmp/pip-install-dg_bb__n/py-tlsh_39a0bf0d9ad04df7953a65b86d52cbc4/ Complete output (15 lines): /usr/lib/python3.7/distutils/dist.py:274: UserWarning: Unknown distribution option: 'long_description_content_type' warnings.warn(msg) running install running build running build_ext building 'tlsh' extension creating build creating build/temp.linux-x86_64-3.7 creating build/temp.linux-x86_64-3.7/src 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 -Iinclude -I/var/www/xxxxx/venv/include -I/usr/include/python3.7m -c tlshmodule.cpp -o build/temp.linux-x86_64-3.7/tlshmodule.o -DBUCKETS_128 tlshmodule.cpp:59:10: fatal error: Python.h: No such file or directory #include <Python.h> ^~~~~~~~~~ compilation terminated. error: command 'x86_64-linux-gnu-gcc' failed with exit status 1 ---------------------------------------- ERROR: Command errored out with exit status 1: /var/www/xxxxx/venv/bin/python -u -c 'import io, os, sys, setuptools, tokenize; sys.argv[0] = '"'"'/tmp/pip-install-dg_bb__n/py-tlsh_39a0bf0d9ad04df7953a65b86d52cbc4/setup.py'"'"'; __file__='"'"'/tmp/pip-install-dg_bb__n/py-tlsh_39a0bf0d9ad04df7953a65b86d52cbc4/setup.py'"'"';f = getattr(tokenize, '"'"'open'"'"', open)(__file__) if os.path.exists(__file__) else io.StringIO('"'"'from setuptools import setup; setup()'"'"');code = f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' install --record /tmp/pip-record-oomck04z/install-record.txt --single-version-externally-managed --compile --install-headers /var/www/xxxx/venv/include/site/python3.7/py-tlsh Check the logs for full command output.
Resolved apt-get install python3-dev
apt-get install python3-dev
Not sure if this is related to #98 but I'm having an issue installing py-tlsh