m4n3dw0lf / pythem

pentest framework
GNU General Public License v3.0
1.2k stars 324 forks source link

Building wheel for NetfilterQueue (setup.py) ... error #44

Closed M0dred closed 4 years ago

M0dred commented 5 years ago

python -V Python 2.7.17rc1

Building wheel for NetfilterQueue (setup.py) ... error ERROR: Command errored out with exit status 1: command: /usr/bin/python -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/tmp/pip-install-lbWGaJ/NetfilterQueue/setup.py'"'"'; file='"'"'/tmp/pip-install-lbWGaJ/NetfilterQueue/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-Vjn5wN --python-tag cp27 cwd: /tmp/pip-install-lbWGaJ/NetfilterQueue/ Complete output (13 lines): running bdist_wheel running build running build_ext skipping 'netfilterqueue.c' Cython extension (up-to-date) building 'netfilterqueue' extension creating build creating build/temp.linux-x86_64-2.7 x86_64-linux-gnu-gcc -pthread -fno-strict-aliasing -Wdate-time -D_FORTIFY_SOURCE=2 -g -fdebug-prefix-map=/build/python2.7-YpCO3M/python2.7-2.7.17~rc1=. -fstack-protector-strong -Wformat -Werror=format-security -fPIC -I/usr/include/python2.7 -c netfilterqueue.c -o build/temp.linux-x86_64-2.7/netfilterqueue.o netfilterqueue.c:437:10: fatal error: libnfnetlink/linux_nfnetlink.h: No such file or directory 437 | #include "libnfnetlink/linux_nfnetlink.h" | ^~~~~~~~ compilation terminated. error: command 'x86_64-linux-gnu-gcc' failed with exit status 1

ERROR: Failed building wheel for NetfilterQueue Running setup.py clean for NetfilterQueue Building wheel for ropper (setup.py) ... done Created wheel for ropper: filename=ropper-1.13.3-cp27-none-any.whl size=99384 sha256=115a2b474402228e348e083ae338b2e6e9e6fcaa81aa9e4cf1b4cc90405d0d15 Stored in directory: /root/.cache/pip/wheels/c4/dc/55/8cf3f62cb56823de5798cf3fa827764f0c12586c4f8dbc8633 Building wheel for filebytes (setup.py) ... done Created wheel for filebytes: filename=filebytes-0.10.0-cp27-none-any.whl size=27505 sha256=ad709b5bb61caf54e670654b4504614c525c97adee2c34eaf008da1052b60fec Stored in directory: /root/.cache/pip/wheels/a7/aa/71/902f311f6cbb297a66e3701f52ff7422c51eda6cd7152c26a9 Successfully built pythem ropper filebytes Failed to build NetfilterQueue Installing collected packages: NetfilterQueue, mechanize, filebytes, ropper, update-checker, pythem Running setup.py install for NetfilterQueue ... error ERROR: Command errored out with exit status 1: command: /usr/bin/python -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/tmp/pip-install-lbWGaJ/NetfilterQueue/setup.py'"'"'; file='"'"'/tmp/pip-install-lbWGaJ/NetfilterQueue/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-1sxRFt/install-record.txt --single-version-externally-managed --compile cwd: /tmp/pip-install-lbWGaJ/NetfilterQueue/ Complete output (13 lines): running install running build running build_ext skipping 'netfilterqueue.c' Cython extension (up-to-date) building 'netfilterqueue' extension creating build creating build/temp.linux-x86_64-2.7 x86_64-linux-gnu-gcc -pthread -fno-strict-aliasing -Wdate-time -D_FORTIFY_SOURCE=2 -g -fdebug-prefix-map=/build/python2.7-YpCO3M/python2.7-2.7.17~rc1=. -fstack-protector-strong -Wformat -Werror=format-security -fPIC -I/usr/include/python2.7 -c netfilterqueue.c -o build/temp.linux-x86_64-2.7/netfilterqueue.o netfilterqueue.c:437:10: fatal error: libnfnetlink/linux_nfnetlink.h: No such file or directory 437 | #include "libnfnetlink/linux_nfnetlink.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/python -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/tmp/pip-install-lbWGaJ/NetfilterQueue/setup.py'"'"'; file='"'"'/tmp/pip-install-lbWGaJ/NetfilterQueue/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-1sxRFt/install-record.txt --single-version-externally-managed --compile Check the logs for full command output.

feverishkk commented 4 years ago

I also have the same problem as you.

In my case, File -> Settings ->click the right side of + button -> search the netfilterqueue -> click install the package -> check in the interpreter.

then I fixed above of problem.