Closed etkaar closed 2 years ago
$ pip3.8 install -U git+https://github.com/kti/python-netfilterqueue
Work well, python3.8.0.
$ pip3.8 install -U git+https://github.com/kti/python-netfilterqueue
Work well, python3.8.0.
Yes, but there was no trouble anyway when installing it via pip3.
Correct way is:
apt install python3-pip git libnfnetlink-dev libnetfilter-queue-dev
pip3 install -U git+https://github.com/kti/python-netfilterqueue
Still does not work on my Mac
pip3 install -U git+https://github.com/kti/python-netfilterqueue
Collecting git+https://github.com/kti/python-netfilterqueue
Cloning https://github.com/kti/python-netfilterqueue to /private/var/folders/g6/3hgy1dfx2tn92b18s6zvqlc00000gn/T/pip-req-build-4x_37b11
Using legacy 'setup.py install' for NetfilterQueue, since package 'wheel' is not installed.
Installing collected packages: NetfilterQueue
Running setup.py install for NetfilterQueue ... error
ERROR: Command errored out with exit status 1:
command: /Library/Frameworks/Python.framework/Versions/3.8/bin/python3.8 -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/private/var/folders/g6/3hgy1dfx2tn92b18s6zvqlc00000gn/T/pip-req-build-4x_37b11/setup.py'"'"'; __file__='"'"'/private/var/folders/g6/3hgy1dfx2tn92b18s6zvqlc00000gn/T/pip-req-build-4x_37b11/setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(__file__);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' install --record /private/var/folders/g6/3hgy1dfx2tn92b18s6zvqlc00000gn/T/pip-record-eysezk_s/install-record.txt --single-version-externally-managed --compile --install-headers /Library/Frameworks/Python.framework/Versions/3.8/include/python3.8/NetfilterQueue
cwd: /private/var/folders/g6/3hgy1dfx2tn92b18s6zvqlc00000gn/T/pip-req-build-4x_37b11/
Complete output (12 lines):
running install
running build
running build_ext
building 'netfilterqueue' extension
creating build
creating build/temp.macosx-10.9-x86_64-3.8
gcc -Wno-unused-result -Wsign-compare -Wunreachable-code -fno-common -dynamic -DNDEBUG -g -fwrapv -O3 -Wall -arch x86_64 -g -I/Library/Frameworks/Python.framework/Versions/3.8/include/python3.8 -c netfilterqueue.c -o build/temp.macosx-10.9-x86_64-3.8/netfilterqueue.o
netfilterqueue.c:437:10: fatal error: 'libnfnetlink/linux_nfnetlink.h' file not found
#include "libnfnetlink/linux_nfnetlink.h"
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1 error generated.
error: command 'gcc' failed with exit status 1
----------------------------------------
ERROR: Command errored out with exit status 1: /Library/Frameworks/Python.framework/Versions/3.8/bin/python3.8 -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/private/var/folders/g6/3hgy1dfx2tn92b18s6zvqlc00000gn/T/pip-req-build-4x_37b11/setup.py'"'"'; __file__='"'"'/private/var/folders/g6/3hgy1dfx2tn92b18s6zvqlc00000gn/T/pip-req-build-4x_37b11/setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(__file__);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' install --record /private/var/folders/g6/3hgy1dfx2tn92b18s6zvqlc00000gn/T/pip-record-eysezk_s/install-record.txt --single-version-externally-managed --compile --install-headers /Library/Frameworks/Python.framework/Versions/3.8/include/python3.8/NetfilterQueue Check the logs for full command output.
Does my workaround work @yangquan1982? Seems the repo is unfortunately not maintained any more.
$ pip3.8 install -U git+https://github.com/kti/python-netfilterqueue
Work well, python3.8.0.
Yes, but there was no trouble anyway when installing it via pip3.
Correct way is:
apt install python3-pip git libnfnetlink-dev libnetfilter-queue-dev pip3 install -U git+https://github.com/kti/python-netfilterqueue
Ay thanks man this worked for me
I followed the above. Now getting: `WARNING: No route found for IPv6 destination :: (no default route?). This affects only IPv6
`
https://pypi.org/project/NetfilterQueue/#files unpack, go to directory python setup.py install
i guess netfilterqueue doesn't work on python ver later than 3.6 but it works on python 2.7
i guess netfilterqueue doesn't work on python ver later than 3.6 but it works on python 2.7
Do some functions not work or is it an installation problem?
When I tried to install NetfilterQueue on Debian Buster (10.2) via pip3 (Python 3.7.3), I got the error below. However, this can be fixed by installing the development files for libnfnetlink:
apt install libnfnetlink-dev
Once I tried it again, I received this error message:
This error could be fixed by installing the development files for libnetfilter-queue:
apt install libnetfilter-queue-dev
But then, unfortunately, I received following error message:
The current version of gcc (x86_64-linux-gnu-gcc) is 8.3.0 (Debian 8.3.0-6). I also tried it with version 6; however, also that didn't work:
CC=/usr/bin/gcc-6 pip3 install netfilterqueue
I only could get it installed by using: