oremanj / python-netfilterqueue

Python bindings for libnetfilter_queue
MIT License
248 stars 96 forks source link

ImportError: No module named NetfilterQueue #55

Closed bhaleraosumit7 closed 2 years ago

bhaleraosumit7 commented 4 years ago

While running python program I am getting "ImportError: No module named NetfilterQueue" this error. NetfilterQueue already installed on the system. can you please help me in this. Please find screenshot for your reference. Screenshot from 2020-03-14 17-37-25

lumsrouge commented 4 years ago

Hey there I have the same problem and found no working solutions ... Using Python 3.8.2

jllorente commented 3 years ago

Can you try installing like this?

sudo pip3 install --upgrade -U git+https://github.com/kti/python-netfilterqueue
samrath-sudesh-acharya commented 3 years ago

@jllorente When i tried installing it the way you told it showed an error : Building wheels for collected packages: NetfilterQueue Building wheel for NetfilterQueue (setup.py) ... error AND ERROR: Failed building wheel for NetfilterQueue Running setup.py clean for NetfilterQueue Failed to build NetfilterQueue Installing collected packages: NetfilterQueue Running setup.py install for NetfilterQueue ... error could you pls tell what should i do .. THANK YOU :)

`Building wheels for collected packages: NetfilterQueue Building wheel for NetfilterQueue (setup.py) ... error ERROR: Command errored out with exit status 1: command: /usr/bin/python3 -u -c 'import io, os, sys, setuptools, tokenize; sys.argv[0] = '"'"'/tmp/pip-req-build-wq0q67fx/setup.py'"'"'; file='"'"'/tmp/pip-req-build-wq0q67fx/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-4vd2s1um cwd: /tmp/pip-req-build-wq0q67fx/ Complete output (143 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-3.9 x86_64-linux-gnu-gcc -pthread -Wno-unused-result -Wsign-compare -DNDEBUG -g -fwrapv -O2 -Wall -g -ffile-prefix-map=/build/python3.9-RNBry6/python3.9-3.9.2=. -fstack-protector-strong -Wformat -Werror=format-security -g -fwrapv -O2 -g -ffile-prefix-map=/build/python3.9-RNBry6/python3.9-3.9.2=. -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -fPIC -I/usr/include/python3.9 -c netfilterqueue.c -o build/temp.linux-x86_64-3.9/netfilterqueue.o netfilterqueue.c: In function ‘__pyx_f_14netfilterqueue_6Packet_set_nfq_data’: netfilterqueue.c:2150:68: warning: passing argument 2 of ‘nfq_get_payload’ from incompatible pointer type [-Wincompatible-pointer-types] 2150 pyx_v_self->payload_len = nfq_get_payload(__pyx_v_self->_nfa, (&pyx_v_self->payload)); ~^~~~~~~
char **
In file included from netfilterqueue.c:440: /usr/include/libnetfilter_queue/libnetfilter_queue.h:123:67: note: expected ‘unsigned char ’ but argument is of type ‘char ’ 123 extern int nfq_get_payload(struct nfq_data *nfad, unsigned char **data); ~~~~^~~~ netfilterqueue.c: In function ‘__pyx_pf_14netfilterqueue_6Packet_4get_hw’: netfilterqueue.c:2533:17: warning: implicit declaration of function ‘PyString_FromStringAndSize’; did you mean ‘PyBytes_FromStringAndSize’? [-Wimplicit-function-declaration] 2533 pyx_t_3 = PyString_FromStringAndSize(((char *)__pyx_v_self->hw_addr), 8); if (unlikely(!pyx_t_3)) __PYX_ERR(0, 111, __pyx_L1_error) ^~~~~~ PyBytes_FromStringAndSize netfilterqueue.c:2533:15: warning: assignment to ‘PyObject ’ {aka ‘struct _object ’} from ‘int’ makes pointer from integer without a cast [-Wint-conversion] 2533 pyx_t_3 = PyString_FromStringAndSize(((char *)__pyx_v_self->hw_addr), 8); if (unlikely(!pyx_t_3)) __PYX_ERR(0, 111, __pyx_L1_error) ^ netfilterqueue.c: In function ‘PyInit_netfilterqueue’: netfilterqueue.c:6111:37: error: ‘PyTypeObject’ {aka ‘struct _typeobject’} has no member named ‘tp_print’ 6111 __pyx_type_14netfilterqueue_Packet.tp_print = 0; ^ netfilterqueue.c:6116:45: error: ‘PyTypeObject’ {aka ‘struct _typeobject’} has no member named ‘tp_print’ 6116 __pyx_type_14netfilterqueue_NetfilterQueue.tp_print = 0; ^ netfilterqueue.c: In function ‘__Pyx_ParseOptionalKeywords’: netfilterqueue.c:7076:21: warning: ‘_PyUnicode_get_wstr_length’ is deprecated [-Wdeprecated-declarations] 7076 (PyUnicode_GET_SIZE(**name) != PyUnicode_GET_SIZE(key)) ? 1 : ^ In file included from /usr/include/python3.9/unicodeobject.h:1026,
from /usr/include/python3.9/Python.h:97,
from netfilterqueue.c:4:
/usr/include/python3.9/cpython/unicodeobject.h:446:26: note: declared here
446
static inline Py_ssize_t _PyUnicode_get_wstr_length(PyObject *op) { ^~~~~~
netfilterqueue.c:7076:21: warning: ‘PyUnicode_AsUnicode’ is deprecated [-Wdeprecated-declarations]
7076
(PyUnicode_GET_SIZE(**name) != PyUnicode_GET_SIZE(key)) ? 1 : ^
In file included from /usr/include/python3.9/unicodeobject.h:1026,
from /usr/include/python3.9/Python.h:97,
from netfilterqueue.c:4:
/usr/include/python3.9/cpython/unicodeobject.h:580:45: note: declared here
580
Py_DEPRECATED(3.3) PyAPI_FUNC(Py_UNICODE *) PyUnicode_AsUnicode( ^~~~~~~
netfilterqueue.c:7076:21: warning: ‘_PyUnicode_get_wstr_length’ is deprecated [-Wdeprecated-declarations]
7076
(PyUnicode_GET_SIZE(**name) != PyUnicode_GET_SIZE(key)) ? 1 : ^
In file included from /usr/include/python3.9/unicodeobject.h:1026,
from /usr/include/python3.9/Python.h:97,
from netfilterqueue.c:4:
/usr/include/python3.9/cpython/unicodeobject.h:446:26: note: declared here
446
static inline Py_ssize_t _PyUnicode_get_wstr_length(PyObject *op) { ^~~~~~
netfilterqueue.c:7076:21: warning: ‘_PyUnicode_get_wstr_length’ is deprecated [-Wdeprecated-declarations]
7076
(PyUnicode_GET_SIZE(**name) != PyUnicode_GET_SIZE(key)) ? 1 : ^
In file included from /usr/include/python3.9/unicodeobject.h:1026,
from /usr/include/python3.9/Python.h:97,
from netfilterqueue.c:4:
/usr/include/python3.9/cpython/unicodeobject.h:446:26: note: declared here
446
static inline Py_ssize_t _PyUnicode_get_wstr_length(PyObject *op) { ^~~~~~
netfilterqueue.c:7076:21: warning: ‘PyUnicode_AsUnicode’ is deprecated [-Wdeprecated-declarations]
7076
(PyUnicode_GET_SIZE(**name) != PyUnicode_GET_SIZE(key)) ? 1 : ^
In file included from /usr/include/python3.9/unicodeobject.h:1026,
from /usr/include/python3.9/Python.h:97,
from netfilterqueue.c:4:
/usr/include/python3.9/cpython/unicodeobject.h:580:45: note: declared here
580
Py_DEPRECATED(3.3) PyAPI_FUNC(Py_UNICODE *) PyUnicode_AsUnicode( ^~~~~~~
netfilterqueue.c:7076:21: warning: ‘_PyUnicode_get_wstr_length’ is deprecated [-Wdeprecated-declarations]
7076
(PyUnicode_GET_SIZE(**name) != PyUnicode_GET_SIZE(key)) ? 1 : ^
In file included from /usr/include/python3.9/unicodeobject.h:1026,
from /usr/include/python3.9/Python.h:97,
from netfilterqueue.c:4:
/usr/include/python3.9/cpython/unicodeobject.h:446:26: note: declared here
446
static inline Py_ssize_t _PyUnicode_get_wstr_length(PyObject *op) { ^~~~~~
netfilterqueue.c:7092:25: warning: ‘_PyUnicode_get_wstr_length’ is deprecated [-Wdeprecated-declarations]
7092
(PyUnicode_GET_SIZE(**argname) != PyUnicode_GET_SIZE(key)) ? 1 : ^
In file included from /usr/include/python3.9/unicodeobject.h:1026,
from /usr/include/python3.9/Python.h:97,
from netfilterqueue.c:4:
/usr/include/python3.9/cpython/unicodeobject.h:446:26: note: declared here
446
static inline Py_ssize_t _PyUnicode_get_wstr_length(PyObject *op) { ^~~~~~
netfilterqueue.c:7092:25: warning: ‘PyUnicode_AsUnicode’ is deprecated [-Wdeprecated-declarations]
7092
(PyUnicode_GET_SIZE(**argname) != PyUnicode_GET_SIZE(key)) ? 1 : ^
In file included from /usr/include/python3.9/unicodeobject.h:1026,
from /usr/include/python3.9/Python.h:97,
from netfilterqueue.c:4:
/usr/include/python3.9/cpython/unicodeobject.h:580:45: note: declared here
580
Py_DEPRECATED(3.3) PyAPI_FUNC(Py_UNICODE *) PyUnicode_AsUnicode( ^~~~~~~
netfilterqueue.c:7092:25: warning: ‘_PyUnicode_get_wstr_length’ is deprecated [-Wdeprecated-declarations]
7092
(PyUnicode_GET_SIZE(**argname) != PyUnicode_GET_SIZE(key)) ? 1 : ^
In file included from /usr/include/python3.9/unicodeobject.h:1026,
from /usr/include/python3.9/Python.h:97,
from netfilterqueue.c:4:
/usr/include/python3.9/cpython/unicodeobject.h:446:26: note: declared here
446
static inline Py_ssize_t _PyUnicode_get_wstr_length(PyObject *op) { ^~~~~~
netfilterqueue.c:7092:25: warning: ‘_PyUnicode_get_wstr_length’ is deprecated [-Wdeprecated-declarations]
7092
(PyUnicode_GET_SIZE(**argname) != PyUnicode_GET_SIZE(key)) ? 1 : ^
In file included from /usr/include/python3.9/unicodeobject.h:1026,
from /usr/include/python3.9/Python.h:97,
from netfilterqueue.c:4:
/usr/include/python3.9/cpython/unicodeobject.h:446:26: note: declared here
446
static inline Py_ssize_t _PyUnicode_get_wstr_length(PyObject *op) { ^~~~~~
netfilterqueue.c:7092:25: warning: ‘PyUnicode_AsUnicode’ is deprecated [-Wdeprecated-declarations]
7092
(PyUnicode_GET_SIZE(**argname) != PyUnicode_GET_SIZE(key)) ? 1 : ^
In file included from /usr/include/python3.9/unicodeobject.h:1026,
from /usr/include/python3.9/Python.h:97,
from netfilterqueue.c:4:
/usr/include/python3.9/cpython/unicodeobject.h:580:45: note: declared here
580
Py_DEPRECATED(3.3) PyAPI_FUNC(Py_UNICODE *) PyUnicode_AsUnicode( ^~~~~~~
netfilterqueue.c:7092:25: warning: ‘_PyUnicode_get_wstr_length’ is deprecated [-Wdeprecated-declarations]
7092
(PyUnicode_GET_SIZE(**argname) != PyUnicode_GET_SIZE(key)) ? 1 : ^
In file included from /usr/include/python3.9/unicodeobject.h:1026,
from /usr/include/python3.9/Python.h:97,
from netfilterqueue.c:4:
/usr/include/python3.9/cpython/unicodeobject.h:446:26: note: declared here
446
static inline Py_ssize_t _PyUnicode_get_wstr_length(PyObject *op) { ^~~~~~
error: command '/usr/bin/x86_64-linux-gnu-gcc' failed with exit code 1
ERROR: Failed building wheel for NetfilterQueue Running setup.py clean for NetfilterQueue Failed to build NetfilterQueue Installing collected packages: NetfilterQueue Running setup.py install for NetfilterQueue ... error ERROR: Command errored out with exit status 1: command: /usr/bin/python3 -u -c 'import io, os, sys, setuptools, tokenize; sys.argv[0] = '"'"'/tmp/pip-req-build-wq0q67fx/setup.py'"'"'; file='"'"'/tmp/pip-req-build-wq0q67fx/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-l8ch37aj/install-record.txt --single-version-externally-managed --compile --install-headers /usr/local/include/python3.9/NetfilterQueue
cwd: /tmp/pip-req-build-wq0q67fx/
Complete output (143 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-3.9
x86_64-linux-gnu-gcc -pthread -Wno-unused-result -Wsign-compare -DNDEBUG -g -fwrapv -O2 -Wall -g -ffile-prefix-map=/build/python3.9-RNBry6/python3.9-3.9.2=. -fstack-protector-strong -Wformat -Werror=format-security -g -fwrapv -O2 -g -ffile-prefix-map=/build/python3.9-RNBry6/python3.9-3.9.2=. -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -fPIC -I/usr/include/python3.9 -c netfilterqueue.c -o build/temp.linux-x86_64-3.9/netfilterqueue.o
netfilterqueue.c: In function ‘__pyx_f_14netfilterqueue_6Packet_set_nfq_data’:
netfilterqueue.c:2150:68: warning: passing argument 2 of ‘nfq_get_payload’ from incompatible pointer type [-Wincompatible-pointer-types]
2150
pyx_v_self->payload_len = nfq_get_payload(__pyx_v_self->_nfa, (&pyx_v_self->payload)); ~^~~~~~~
char **
In file included from netfilterqueue.c:440:                                                                                                                                                                                              
/usr/include/libnetfilter_queue/libnetfilter_queue.h:123:67: note: expected ‘unsigned char **’ but argument is of type ‘char **’                                                                                                         
  123 | extern int nfq_get_payload(struct nfq_data *nfad, unsigned char **data);                                                                                                                                                         
      |                                                   ~~~~~~~~~~~~~~~~^~~~                                                                                                                                                           
netfilterqueue.c: In function ‘__pyx_pf_14netfilterqueue_6Packet_4get_hw’:                                                                                                                                                               
netfilterqueue.c:2533:17: warning: implicit declaration of function ‘PyString_FromStringAndSize’; did you mean ‘PyBytes_FromStringAndSize’? [-Wimplicit-function-declaration]                                                            
 2533 |     __pyx_t_3 = PyString_FromStringAndSize(((char *)__pyx_v_self->hw_addr), 8); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 111, __pyx_L1_error)                                                                                      
      |                 ^~~~~~~~~~~~~~~~~~~~~~~~~~                                                                                                                                                                                       
      |                 PyBytes_FromStringAndSize                                                                                                                                                                                        
netfilterqueue.c:2533:15: warning: assignment to ‘PyObject *’ {aka ‘struct _object *’} from ‘int’ makes pointer from integer without a cast [-Wint-conversion]                                                                           
 2533 |     __pyx_t_3 = PyString_FromStringAndSize(((char *)__pyx_v_self->hw_addr), 8); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 111, __pyx_L1_error)                                                                                      
      |               ^                                                                                                                                                                                                                  
netfilterqueue.c: In function ‘PyInit_netfilterqueue’:                                                                                                                                                                                   
netfilterqueue.c:6111:37: error: ‘PyTypeObject’ {aka ‘struct _typeobject’} has no member named ‘tp_print’                                                                                                                                
 6111 |   __pyx_type_14netfilterqueue_Packet.tp_print = 0;                                                                                                                                                                               
      |                                     ^                                                                                                                                                                                            
netfilterqueue.c:6116:45: error: ‘PyTypeObject’ {aka ‘struct _typeobject’} has no member named ‘tp_print’                                                                                                                                
 6116 |   __pyx_type_14netfilterqueue_NetfilterQueue.tp_print = 0;                                                                                                                                                                       
      |                                             ^                                                                                                                                                                                    
netfilterqueue.c: In function ‘__Pyx_ParseOptionalKeywords’:                                                                                                                                                                             
netfilterqueue.c:7076:21: warning: ‘_PyUnicode_get_wstr_length’ is deprecated [-Wdeprecated-declarations]                                                                                                                                
 7076 |                     (PyUnicode_GET_SIZE(**name) != PyUnicode_GET_SIZE(key)) ? 1 :                                                                                                                                                
      |                     ^                                                                                                                                                                                                            
In file included from /usr/include/python3.9/unicodeobject.h:1026,                                                                                                                                                                       
                 from /usr/include/python3.9/Python.h:97,                                                                                                                                                                                
                 from netfilterqueue.c:4:                                                                                                                                                                                                
/usr/include/python3.9/cpython/unicodeobject.h:446:26: note: declared here                                                                                                                                                               
  446 | static inline Py_ssize_t _PyUnicode_get_wstr_length(PyObject *op) {                                                                                                                                                              
      |                          ^~~~~~~~~~~~~~~~~~~~~~~~~~                                                                                                                                                                              
netfilterqueue.c:7076:21: warning: ‘PyUnicode_AsUnicode’ is deprecated [-Wdeprecated-declarations]                                                                                                                                       
 7076 |                     (PyUnicode_GET_SIZE(**name) != PyUnicode_GET_SIZE(key)) ? 1 :                                                                                                                                                
      |                     ^                                                                                                                                                                                                            
In file included from /usr/include/python3.9/unicodeobject.h:1026,                                                                                                                                                                       
                 from /usr/include/python3.9/Python.h:97,                                                                                                                                                                                
                 from netfilterqueue.c:4:                                                                                                                                                                                                
/usr/include/python3.9/cpython/unicodeobject.h:580:45: note: declared here                                                                                                                                                               
  580 | Py_DEPRECATED(3.3) PyAPI_FUNC(Py_UNICODE *) PyUnicode_AsUnicode(                                                                                                                                                                 
      |                                             ^~~~~~~~~~~~~~~~~~~                                                                                                                                                                  
netfilterqueue.c:7076:21: warning: ‘_PyUnicode_get_wstr_length’ is deprecated [-Wdeprecated-declarations]                                                                                                                                
 7076 |                     (PyUnicode_GET_SIZE(**name) != PyUnicode_GET_SIZE(key)) ? 1 :                                                                                                                                                
      |                     ^                                                                                                                                                                                                            
In file included from /usr/include/python3.9/unicodeobject.h:1026,                                                                                                                                                                       
                 from /usr/include/python3.9/Python.h:97,                                                                                                                                                                                
                 from netfilterqueue.c:4:                                                                                                                                                                                                
/usr/include/python3.9/cpython/unicodeobject.h:446:26: note: declared here                                                                                                                                                               
  446 | static inline Py_ssize_t _PyUnicode_get_wstr_length(PyObject *op) {                                                                                                                                                              
      |                          ^~~~~~~~~~~~~~~~~~~~~~~~~~                                                                                                                                                                              
netfilterqueue.c:7076:21: warning: ‘_PyUnicode_get_wstr_length’ is deprecated [-Wdeprecated-declarations]                                                                                                                                
 7076 |                     (PyUnicode_GET_SIZE(**name) != PyUnicode_GET_SIZE(key)) ? 1 :                                                                                                                                                
      |                     ^                                                                                                                                                                                                            
In file included from /usr/include/python3.9/unicodeobject.h:1026,                                                                                                                                                                       
                 from /usr/include/python3.9/Python.h:97,                                                                                                                                                                                
                 from netfilterqueue.c:4:                                                                                                                                                                                                
/usr/include/python3.9/cpython/unicodeobject.h:446:26: note: declared here                                                                                                                                                               
  446 | static inline Py_ssize_t _PyUnicode_get_wstr_length(PyObject *op) {                                                                                                                                                              
      |                          ^~~~~~~~~~~~~~~~~~~~~~~~~~                                                                                                                                                                              
netfilterqueue.c:7076:21: warning: ‘PyUnicode_AsUnicode’ is deprecated [-Wdeprecated-declarations]                                                                                                                                       
 7076 |                     (PyUnicode_GET_SIZE(**name) != PyUnicode_GET_SIZE(key)) ? 1 :                                                                                                                                                
      |                     ^                                                                                                                                                                                                            
In file included from /usr/include/python3.9/unicodeobject.h:1026,                                                                                                                                                                       
                 from /usr/include/python3.9/Python.h:97,                                                                                                                                                                                
                 from netfilterqueue.c:4:                                                                                                                                                                                                
/usr/include/python3.9/cpython/unicodeobject.h:580:45: note: declared here                                                                                                                                                               
  580 | Py_DEPRECATED(3.3) PyAPI_FUNC(Py_UNICODE *) PyUnicode_AsUnicode(                                                                                                                                                                 
      |                                             ^~~~~~~~~~~~~~~~~~~                                                                                                                                                                  
netfilterqueue.c:7076:21: warning: ‘_PyUnicode_get_wstr_length’ is deprecated [-Wdeprecated-declarations]                                                                                                                                
 7076 |                     (PyUnicode_GET_SIZE(**name) != PyUnicode_GET_SIZE(key)) ? 1 :                                                                                                                                                
      |                     ^                                                                                                                                                                                                            
In file included from /usr/include/python3.9/unicodeobject.h:1026,                                                                                                                                                                       
                 from /usr/include/python3.9/Python.h:97,                                                                                                                                                                                
                 from netfilterqueue.c:4:                                                                                                                                                                                                
/usr/include/python3.9/cpython/unicodeobject.h:446:26: note: declared here                                                                                                                                                               
  446 | static inline Py_ssize_t _PyUnicode_get_wstr_length(PyObject *op) {                                                                                                                                                              
      |                          ^~~~~~~~~~~~~~~~~~~~~~~~~~                                                                                                                                                                              
netfilterqueue.c:7092:25: warning: ‘_PyUnicode_get_wstr_length’ is deprecated [-Wdeprecated-declarations]                                                                                                                                
 7092 |                         (PyUnicode_GET_SIZE(**argname) != PyUnicode_GET_SIZE(key)) ? 1 :                                                                                                                                         
      |                         ^                                                                                                                                                                                                        
In file included from /usr/include/python3.9/unicodeobject.h:1026,                                                                                                                                                                       
                 from /usr/include/python3.9/Python.h:97,                                                                                                                                                                                
                 from netfilterqueue.c:4:                                                                                                                                                                                                
/usr/include/python3.9/cpython/unicodeobject.h:446:26: note: declared here                                                                                                                                                               
  446 | static inline Py_ssize_t _PyUnicode_get_wstr_length(PyObject *op) {                                                                                                                                                              
      |                          ^~~~~~~~~~~~~~~~~~~~~~~~~~                                                                                                                                                                              
netfilterqueue.c:7092:25: warning: ‘PyUnicode_AsUnicode’ is deprecated [-Wdeprecated-declarations]                                                                                                                                       
 7092 |                         (PyUnicode_GET_SIZE(**argname) != PyUnicode_GET_SIZE(key)) ? 1 :                                                                                                                                         
      |                         ^                                                                                                                                                                                                        
In file included from /usr/include/python3.9/unicodeobject.h:1026,                                                                                                                                                                       
                 from /usr/include/python3.9/Python.h:97,                                                                                                                                                                                
                 from netfilterqueue.c:4:                                                                                                                                                                                                
/usr/include/python3.9/cpython/unicodeobject.h:580:45: note: declared here                                                                                                                                                               
  580 | Py_DEPRECATED(3.3) PyAPI_FUNC(Py_UNICODE *) PyUnicode_AsUnicode(                                                                                                                                                                 
      |                                             ^~~~~~~~~~~~~~~~~~~                                                                                                                                                                  
netfilterqueue.c:7092:25: warning: ‘_PyUnicode_get_wstr_length’ is deprecated [-Wdeprecated-declarations]                                                                                                                                
 7092 |                         (PyUnicode_GET_SIZE(**argname) != PyUnicode_GET_SIZE(key)) ? 1 :                                                                                                                                         
      |                         ^                                                                                                                                                                                                        
In file included from /usr/include/python3.9/unicodeobject.h:1026,                                                                                                                                                                       
                 from /usr/include/python3.9/Python.h:97,                                                                                                                                                                                
                 from netfilterqueue.c:4:                                                                                                                                                                                                
/usr/include/python3.9/cpython/unicodeobject.h:446:26: note: declared here                                                                                                                                                               
  446 | static inline Py_ssize_t _PyUnicode_get_wstr_length(PyObject *op) {                                                                                                                                                              
      |                          ^~~~~~~~~~~~~~~~~~~~~~~~~~                                                                                                                                                                              
netfilterqueue.c:7092:25: warning: ‘_PyUnicode_get_wstr_length’ is deprecated [-Wdeprecated-declarations]                                                                                                                                
 7092 |                         (PyUnicode_GET_SIZE(**argname) != PyUnicode_GET_SIZE(key)) ? 1 :                                                                                                                                         
      |                         ^                                                                                                                                                                                                        
In file included from /usr/include/python3.9/unicodeobject.h:1026,                                                                                                                                                                       
                 from /usr/include/python3.9/Python.h:97,                                                                                                                                                                                
                 from netfilterqueue.c:4:                                                                                                                                                                                                
/usr/include/python3.9/cpython/unicodeobject.h:446:26: note: declared here                                                                                                                                                               
  446 | static inline Py_ssize_t _PyUnicode_get_wstr_length(PyObject *op) {                                                                                                                                                              
      |                          ^~~~~~~~~~~~~~~~~~~~~~~~~~                                                                                                                                                                              
netfilterqueue.c:7092:25: warning: ‘PyUnicode_AsUnicode’ is deprecated [-Wdeprecated-declarations]                                                                                                                                       
 7092 |                         (PyUnicode_GET_SIZE(**argname) != PyUnicode_GET_SIZE(key)) ? 1 :                                                                                                                                         
      |                         ^                                                                                                                                                                                                        
In file included from /usr/include/python3.9/unicodeobject.h:1026,                                                                                                                                                                       
                 from /usr/include/python3.9/Python.h:97,                                                                                                                                                                                
                 from netfilterqueue.c:4:                                                                                                                                                                                                
/usr/include/python3.9/cpython/unicodeobject.h:580:45: note: declared here                                                                                                                                                               
  580 | Py_DEPRECATED(3.3) PyAPI_FUNC(Py_UNICODE *) PyUnicode_AsUnicode(                                                                                                                                                                 
      |                                             ^~~~~~~~~~~~~~~~~~~                                                                                                                                                                  
netfilterqueue.c:7092:25: warning: ‘_PyUnicode_get_wstr_length’ is deprecated [-Wdeprecated-declarations]                                                                                                                                
 7092 |                         (PyUnicode_GET_SIZE(**argname) != PyUnicode_GET_SIZE(key)) ? 1 :                                                                                                                                         
      |                         ^                                                                                                                                                                                                        
In file included from /usr/include/python3.9/unicodeobject.h:1026,                                                                                                                                                                       
                 from /usr/include/python3.9/Python.h:97,                                                                                                                                                                                
                 from netfilterqueue.c:4:                                                                                                                                                                                                
/usr/include/python3.9/cpython/unicodeobject.h:446:26: note: declared here                                                                                                                                                               
  446 | static inline Py_ssize_t _PyUnicode_get_wstr_length(PyObject *op) {                                                                                                                                                              
      |                          ^~~~~~~~~~~~~~~~~~~~~~~~~~                                                                                                                                                                              
error: command '/usr/bin/x86_64-linux-gnu-gcc' failed with exit code 1                                                                                                                                                                   
----------------------------------------                                                                                                                                                                                                 

ERROR: Command errored out with exit status 1: /usr/bin/python3 -u -c 'import io, os, sys, setuptools, tokenize; sys.argv[0] = '"'"'/tmp/pip-req-build-wq0q67fx/setup.py'"'"'; file='"'"'/tmp/pip-req-build-wq0q67fx/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-l8ch37aj/install-record.txt --single-version-externally-managed --compile --install-headers /usr/local/include/python3.9/NetfilterQueue Check the logs for full command output. `

Bezdna7 commented 3 years ago

the same situation on python 2 of the latest version

BMFI commented 3 years ago

I have py 3.9 and 2.7 and have had all the installation errors, but I was able to install, so

  1. sudo apt-get install build-essential python-dev libnetfilter-queue-dev
  2. sudo git clone git@github.com:kti/python-netfilterqueue.git
  3. sudo cd python-netfilterqueue
  4. . sudo python setup.py install It is installed as a python module, but I noticed it is cython. It gives the same error when I run in scripts I have created for pentest both in python and python3 so: Traceback (most recent call last): File "analize_http_request-6", line 4, in import netfilterqueue File "/home/kali/Desktop/EhTools/netfilterqueue.py", line 8, in queue = netfilterqueue.NetfilterQueue() AttributeError: 'module' object has no attribute 'NetfilterQueue' I looked at some of the code in updated version and noticed cdef NetfilterQueue nfqueue = data ? I tried alter my script including

    1. queue= netfilterqueue.NetfilterQueue

                                                  queue = netfilterqueue.nfqueue
    2. queue = netfilterqueue.NetfilterQueue

                                                  queue = netfilterqueue.netfilterqueue
      
                                           3.   queue= netfilterqueue.NetfilterQueue
      
                                           4. #queue=netfilterqueue.NetfilterQueue
                                            but still get same error 
oremanj commented 2 years ago

Please try again to build from current master. I just pushed an update that fixes 3.9 support.

WodanAsason commented 2 years ago

Can you try installing like this?

sudo pip3 install --upgrade -U git+https://github.com/kti/python-netfilterqueue

This worked for me.

Installing from pip still had this problem as of 1/15.

oremanj commented 2 years ago

@WodanAsason can you please open a new issue with the details of the error you're getting? This one includes several different issues and I'm pretty sure you're seeing something different. If you are literally getting No module named NetfilterQueue, that's because the module name is lower case (import netfilterqueue, not import NetfilterQueue).

BMFI commented 2 years ago

That was several months ago, I was having a problem with pip install and py3.9, so I did an alt install of py3.6 and was able to pip install netfilterqueue with py3.6 and I got everything working with py 3.6. I understand netfilterqueue now works with py3.9 ? I did some research several months ago and It looked like the reason it would not pip install properly was cython was causing the error because of the way the module was named(it was something like naming a mod after itself?)? Anyway I did not design the mod netfilterqueue and it worked well with py3.6 for me and I can try it again with py3.9. I have not looked at it in several months, but I was able to make netfilterqueue work well with py3.6. Thank you for your help and concern about it.

On Wed, Jan 19, 2022 at 6:44 PM Joshua Oreman @.***> wrote:

@WodanAsason https://github.com/WodanAsason can you please open a new issue with the details of the error you're getting? This one includes several different issues and I'm pretty sure you're seeing something different. If you are literally getting No module named NetfilterQueue, that's because the module name is lower case (import netfilterqueue, not import NetfilterQueue).

— Reply to this email directly, view it on GitHub https://github.com/oremanj/python-netfilterqueue/issues/55#issuecomment-1017002793, or unsubscribe https://github.com/notifications/unsubscribe-auth/AL2LMBFPO3AUL2QB2Q3NWE3UW5LGVANCNFSM4LI7BGOQ . Triage notifications on the go with GitHub Mobile for iOS https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675 or Android https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub.

You are receiving this because you commented.Message ID: @.***>

BMFI commented 2 years ago

These are the install instruction that worked for py3.6, but the mod did not work for me in py3.9 several months ago. I used these install instructions from the netfilterqueue site thank you for your help

installing it = https://github.com/kti/python-netfilterqueue : Debian or Ubuntu:

apt-get install build-essential python-dev libnetfilter-queue-dev

git clone https://github.com/kti/python-netfilterqueue.git

cd python-netfilterqueue

python setup.py install

On Fri, Jan 21, 2022 at 4:37 PM Insects @.***> wrote:

That was several months ago, I was having a problem with pip install and py3.9, so I did an alt install of py3.6 and was able to pip install netfilterqueue with py3.6 and I got everything working with py 3.6. I understand netfilterqueue now works with py3.9 ? I did some research several months ago and It looked like the reason it would not pip install properly was cython was causing the error because of the way the module was named(it was something like naming a mod after itself?)? Anyway I did not design the mod netfilterqueue and it worked well with py3.6 for me and I can try it again with py3.9. I have not looked at it in several months, but I was able to make netfilterqueue work well with py3.6. Thank you for your help and concern about it.

On Wed, Jan 19, 2022 at 6:44 PM Joshua Oreman @.***> wrote:

@WodanAsason https://github.com/WodanAsason can you please open a new issue with the details of the error you're getting? This one includes several different issues and I'm pretty sure you're seeing something different. If you are literally getting No module named NetfilterQueue, that's because the module name is lower case (import netfilterqueue, not import NetfilterQueue).

— Reply to this email directly, view it on GitHub https://github.com/oremanj/python-netfilterqueue/issues/55#issuecomment-1017002793, or unsubscribe https://github.com/notifications/unsubscribe-auth/AL2LMBFPO3AUL2QB2Q3NWE3UW5LGVANCNFSM4LI7BGOQ . Triage notifications on the go with GitHub Mobile for iOS https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675 or Android https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub.

You are receiving this because you commented.Message ID: @.***>

BMFI commented 2 years ago

Trying to bring you up to speed about what I was saying, so here is the code in py3.9 that was throwing the error several months ago. Thank you for your concern and help. import netfilterqueue from netfilterqueue import NetfilterQueue import scapy.all as scapy import re

On Fri, Jan 21, 2022 at 4:50 PM Insects @.***> wrote:

These are the install instruction that worked for py3.6, but the mod did not work for me in py3.9 several months ago. I used these install instructions from the netfilterqueue site thank you for your help

installing it = https://github.com/kti/python-netfilterqueue : Debian or Ubuntu:

apt-get install build-essential python-dev libnetfilter-queue-dev

git clone https://github.com/kti/python-netfilterqueue.git

cd python-netfilterqueue

python setup.py install

On Fri, Jan 21, 2022 at 4:37 PM Insects @.***> wrote:

That was several months ago, I was having a problem with pip install and py3.9, so I did an alt install of py3.6 and was able to pip install netfilterqueue with py3.6 and I got everything working with py 3.6. I understand netfilterqueue now works with py3.9 ? I did some research several months ago and It looked like the reason it would not pip install properly was cython was causing the error because of the way the module was named(it was something like naming a mod after itself?)? Anyway I did not design the mod netfilterqueue and it worked well with py3.6 for me and I can try it again with py3.9. I have not looked at it in several months, but I was able to make netfilterqueue work well with py3.6. Thank you for your help and concern about it.

On Wed, Jan 19, 2022 at 6:44 PM Joshua Oreman @.***> wrote:

@WodanAsason https://github.com/WodanAsason can you please open a new issue with the details of the error you're getting? This one includes several different issues and I'm pretty sure you're seeing something different. If you are literally getting No module named NetfilterQueue, that's because the module name is lower case (import netfilterqueue, not import NetfilterQueue).

— Reply to this email directly, view it on GitHub https://github.com/oremanj/python-netfilterqueue/issues/55#issuecomment-1017002793, or unsubscribe https://github.com/notifications/unsubscribe-auth/AL2LMBFPO3AUL2QB2Q3NWE3UW5LGVANCNFSM4LI7BGOQ . Triage notifications on the go with GitHub Mobile for iOS https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675 or Android https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub.

You are receiving this because you commented.Message ID: @.***>

oremanj commented 2 years ago

@BMFI there have been a number of recent changes to netfilterqueue and I'm not able to help with errors that are several months old. If you're encountering problems when installing or using the latest version (1.0), please open a new issue describing the problem you're seeing.

BMFI commented 2 years ago

Thanks, I'll check it out.

On Fri, Jan 21, 2022 at 5:18 PM Joshua Oreman @.***> wrote:

@BMFI https://github.com/BMFI there have been a number of recent changes to netfilterqueue and I'm not able to help with errors that are several months old. If you're encountering problems when installing or using the latest version (1.0), please open a new issue describing the problem you're seeing.

— Reply to this email directly, view it on GitHub https://github.com/oremanj/python-netfilterqueue/issues/55#issuecomment-1018936275, or unsubscribe https://github.com/notifications/unsubscribe-auth/AL2LMBCCDBJXIVGEJ7LQJX3UXHSUBANCNFSM4LI7BGOQ . Triage notifications on the go with GitHub Mobile for iOS https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675 or Android https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub.

You are receiving this because you were mentioned.Message ID: @.***>

BMFI commented 2 years ago

I just tried to pip install using the code from pypi.org for pip install on kali on win10 cmd it is throwing these errors. again I was able to install using the instructions on netfilterqueue site on github fpr py3.6 and py3.9 on Linux machine (kali). Thank you for your help and concerns

pip install NetfilterQueue Defaulting to user installation because normal site-packages is not writeable Collecting NetfilterQueue Using cached NetfilterQueue-1.0.0.tar.gz (87 kB) Installing build dependencies ... done Getting requirements to build wheel ... done Installing backend dependencies ... done Preparing wheel metadata ... done Building wheels for collected packages: NetfilterQueue Building wheel for NetfilterQueue (PEP 517) ... error ERROR: Command errored out with exit status 1: command: /usr/bin/python3 /home/jr/.local/lib/python3.9/site-packages/pip/_vendor/pep517/in_process/_in_process.py build_wheel /tmp/tmpx2lwicoi cwd: /tmp/pip-install-hpwadju4/netfilterqueue_ee5aaa97170f4978b4f108c97fb13de5 Complete output (23 lines): running bdist_wheel running build running build_py creating build creating build/lib.linux-x86_64-3.9 creating build/lib.linux-x86_64-3.9/netfilterqueue copying netfilterqueue/_version.py -> build/lib.linux-x86_64-3.9/netfilterqueue copying netfilterqueue/init.py -> build/lib.linux-x86_64-3.9/netfilterqueue running egg_info writing manifest file 'NetfilterQueue.egg-info/SOURCES.txt' copying netfilterqueue/_impl.pxd -> build/lib.linux-x86_64-3.9/netfilterqueue copying netfilterqueue/_impl.pyi -> build/lib.linux-x86_64-3.9/netfilterqueue copying netfilterqueue/_impl.pyx -> build/lib.linux-x86_64-3.9/netfilterqueue copying netfilterqueue/py.typed -> build/lib.linux-x86_64-3.9/netfilterqueue running build_ext creating build/temp.linux-x86_64-3.9 creating build/temp.linux-x86_64-3.9/netfilterqueue x86_64-linux-gnu-gcc -pthread -Wno-unused-result -Wsign-compare -DNDEBUG -g -fwrapv -O2 -Wall -g -ffile-prefix-map=/build/python3.9-RNBry6/python3.9-3.9.2=. -fstack-protector-strong -Wformat -Werror=format-security -g -fwrapv -O2 -fPIC -I/usr/include/python3.9 -c netfilterqueue/_impl.c -o build/temp.linux-x86_64-3.9/netfilterqueue/_impl.o netfilterqueue/_impl.c:701:10: fatal error: libnfnetlink/linux_nfnetlink.h: No such file or directory 701 | #include "libnfnetlink/linux_nfnetlink.h" | ^~~~~~~~ compilation terminated. error: command '/usr/bin/x86_64-linux-gnu-gcc' failed with exit code 1

ERROR: Failed building wheel for NetfilterQueue Failed to build NetfilterQueue so I tried it another way. For example, pip install netfilterqueue Defaulting to user installation because normal site-packages is not writeable Collecting netfilterqueue Downloading NetfilterQueue-1.0.0.tar.gz (87 kB) |████████████████████████████████| 87 kB 1.2 MB/s Installing build dependencies ... done Getting requirements to build wheel ... done Installing backend dependencies ... done Preparing wheel metadata ... done Building wheels for collected packages: netfilterqueue Building wheel for netfilterqueue (PEP 517) ... error ERROR: Command errored out with exit status 1: command: /usr/bin/python3 /home/jr/.local/lib/python3.9/site-packages/pip/_vendor/pep517/in_process/_in_process.py build_wheel /tmp/tmpk08f21_d cwd: /tmp/pip-install-ewwqm2nu/netfilterqueue_b44b0e56eb424dd59e30ccb6bbbe29d1 Complete output (23 lines): running bdist_wheel running build running build_py creating build creating build/lib.linux-x86_64-3.9 creating build/lib.linux-x86_64-3.9/netfilterqueue copying netfilterqueue/_version.py -> build/lib.linux-x86_64-3.9/netfilterqueue copying netfilterqueue/init.py -> build/lib.linux-x86_64-3.9/netfilterqueue running egg_info writing manifest file 'NetfilterQueue.egg-info/SOURCES.txt' copying netfilterqueue/_impl.pxd -> build/lib.linux-x86_64-3.9/netfilterqueue copying netfilterqueue/_impl.pyi -> build/lib.linux-x86_64-3.9/netfilterqueue copying netfilterqueue/_impl.pyx -> build/lib.linux-x86_64-3.9/netfilterqueue copying netfilterqueue/py.typed -> build/lib.linux-x86_64-3.9/netfilterqueue running build_ext creating build/temp.linux-x86_64-3.9 creating build/temp.linux-x86_64-3.9/netfilterqueue x86_64-linux-gnu-gcc -pthread -Wno-unused-result -Wsign-compare -DNDEBUG -g -fwrapv -O2 -Wall -g -ffile-prefix-map=/build/python3.9-RNBry6/python3.9-3.9.2=. -fstack-protector-strong -Wformat -Werror=format-security -g -fwrapv -O2 -fPIC -I/usr/include/python3.9 -c netfilterqueue/_impl.c -o build/temp.linux-x86_64-3.9/netfilterqueue/_impl.o netfilterqueue/_impl.c:701:10: fatal error: libnfnetlink/linux_nfnetlink.h: No such file or directory 701 | #include "libnfnetlink/linux_nfnetlink.h" | ^~~~~~~~ compilation terminated. error: command '/usr/bin/x86_64-linux-gnu-gcc' failed with exit code 1

ERROR: Failed building wheel for netfilterqueue Failed to build netfilterqueue

On Fri, Jan 21, 2022 at 9:57 PM Insects @.***> wrote:

Thanks, I'll check it out.

On Fri, Jan 21, 2022 at 5:18 PM Joshua Oreman @.***> wrote:

@BMFI https://github.com/BMFI there have been a number of recent changes to netfilterqueue and I'm not able to help with errors that are several months old. If you're encountering problems when installing or using the latest version (1.0), please open a new issue describing the problem you're seeing.

— Reply to this email directly, view it on GitHub https://github.com/oremanj/python-netfilterqueue/issues/55#issuecomment-1018936275, or unsubscribe https://github.com/notifications/unsubscribe-auth/AL2LMBCCDBJXIVGEJ7LQJX3UXHSUBANCNFSM4LI7BGOQ . Triage notifications on the go with GitHub Mobile for iOS https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675 or Android https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub.

You are receiving this because you were mentioned.Message ID: @.***>

BMFI commented 2 years ago

I just had a successful install on the win10 kali on win10 machine cmd using the install instructions on https://github.com/kti/python-netfilterqueue.git. Thank you, For example,

sudo apt-get install build-essential python-dev libnetfilter-queue-dev [sudo] password for jr: Reading package lists... Done Building dependency tree... Done Reading state information... Done Package python-dev is not available, but is referred to by another package. This may mean that the package is missing, has been obsoleted, or is only available from another source However the following packages replace it: python2 python2-dev python-dev-is-python3

sudo git clone https://github.com/kti/python-netfilterqueue.git Cloning into 'python-netfilterqueue'... remote: Enumerating objects: 429, done. remote: Counting objects: 100% (168/168), done. remote: Compressing objects: 100% (121/121), done. remote: Total 429 (delta 93), reused 108 (delta 40), pack-reused 261 Receiving objects: 100% (429/429), 490.11 KiB | 2.75 MiB/s, done. Resolving deltas: 100% (266/266), done.

On Fri, Jan 21, 2022 at 10:09 PM Insects @.***> wrote:

I just tried to pip install using the code from pypi.org for pip install on kali on win10 cmd it is throwing these errors. again I was able to install using the instructions on netfilterqueue site on github fpr py3.6 and py3.9 on Linux machine (kali). Thank you for your help and concerns

pip install NetfilterQueue Defaulting to user installation because normal site-packages is not writeable Collecting NetfilterQueue Using cached NetfilterQueue-1.0.0.tar.gz (87 kB) Installing build dependencies ... done Getting requirements to build wheel ... done Installing backend dependencies ... done Preparing wheel metadata ... done Building wheels for collected packages: NetfilterQueue Building wheel for NetfilterQueue (PEP 517) ... error ERROR: Command errored out with exit status 1: command: /usr/bin/python3 /home/jr/.local/lib/python3.9/site-packages/pip/_vendor/pep517/in_process/_in_process.py build_wheel /tmp/tmpx2lwicoi cwd: /tmp/pip-install-hpwadju4/netfilterqueue_ee5aaa97170f4978b4f108c97fb13de5 Complete output (23 lines): running bdist_wheel running build running build_py creating build creating build/lib.linux-x86_64-3.9 creating build/lib.linux-x86_64-3.9/netfilterqueue copying netfilterqueue/_version.py -> build/lib.linux-x86_64-3.9/netfilterqueue copying netfilterqueue/init.py -> build/lib.linux-x86_64-3.9/netfilterqueue running egg_info writing manifest file 'NetfilterQueue.egg-info/SOURCES.txt' copying netfilterqueue/_impl.pxd -> build/lib.linux-x86_64-3.9/netfilterqueue copying netfilterqueue/_impl.pyi -> build/lib.linux-x86_64-3.9/netfilterqueue copying netfilterqueue/_impl.pyx -> build/lib.linux-x86_64-3.9/netfilterqueue copying netfilterqueue/py.typed -> build/lib.linux-x86_64-3.9/netfilterqueue running build_ext creating build/temp.linux-x86_64-3.9 creating build/temp.linux-x86_64-3.9/netfilterqueue x86_64-linux-gnu-gcc -pthread -Wno-unused-result -Wsign-compare -DNDEBUG -g -fwrapv -O2 -Wall -g -ffile-prefix-map=/build/python3.9-RNBry6/python3.9-3.9.2=. -fstack-protector-strong -Wformat -Werror=format-security -g -fwrapv -O2 -fPIC -I/usr/include/python3.9 -c netfilterqueue/_impl.c -o build/temp.linux-x86_64-3.9/netfilterqueue/_impl.o netfilterqueue/_impl.c:701:10: fatal error: libnfnetlink/linux_nfnetlink.h: No such file or directory 701 | #include "libnfnetlink/linux_nfnetlink.h" | ^~~~~~~~ compilation terminated. error: command '/usr/bin/x86_64-linux-gnu-gcc' failed with exit code 1

ERROR: Failed building wheel for NetfilterQueue Failed to build NetfilterQueue so I tried it another way. For example, pip install netfilterqueue Defaulting to user installation because normal site-packages is not writeable Collecting netfilterqueue Downloading NetfilterQueue-1.0.0.tar.gz (87 kB) |████████████████████████████████| 87 kB 1.2 MB/s Installing build dependencies ... done Getting requirements to build wheel ... done Installing backend dependencies ... done Preparing wheel metadata ... done Building wheels for collected packages: netfilterqueue Building wheel for netfilterqueue (PEP 517) ... error ERROR: Command errored out with exit status 1: command: /usr/bin/python3 /home/jr/.local/lib/python3.9/site-packages/pip/_vendor/pep517/in_process/_in_process.py build_wheel /tmp/tmpk08f21_d cwd: /tmp/pip-install-ewwqm2nu/netfilterqueue_b44b0e56eb424dd59e30ccb6bbbe29d1 Complete output (23 lines): running bdist_wheel running build running build_py creating build creating build/lib.linux-x86_64-3.9 creating build/lib.linux-x86_64-3.9/netfilterqueue copying netfilterqueue/_version.py -> build/lib.linux-x86_64-3.9/netfilterqueue copying netfilterqueue/init.py -> build/lib.linux-x86_64-3.9/netfilterqueue running egg_info writing manifest file 'NetfilterQueue.egg-info/SOURCES.txt' copying netfilterqueue/_impl.pxd -> build/lib.linux-x86_64-3.9/netfilterqueue copying netfilterqueue/_impl.pyi -> build/lib.linux-x86_64-3.9/netfilterqueue copying netfilterqueue/_impl.pyx -> build/lib.linux-x86_64-3.9/netfilterqueue copying netfilterqueue/py.typed -> build/lib.linux-x86_64-3.9/netfilterqueue running build_ext creating build/temp.linux-x86_64-3.9 creating build/temp.linux-x86_64-3.9/netfilterqueue x86_64-linux-gnu-gcc -pthread -Wno-unused-result -Wsign-compare -DNDEBUG -g -fwrapv -O2 -Wall -g -ffile-prefix-map=/build/python3.9-RNBry6/python3.9-3.9.2=. -fstack-protector-strong -Wformat -Werror=format-security -g -fwrapv -O2 -fPIC -I/usr/include/python3.9 -c netfilterqueue/_impl.c -o build/temp.linux-x86_64-3.9/netfilterqueue/_impl.o netfilterqueue/_impl.c:701:10: fatal error: libnfnetlink/linux_nfnetlink.h: No such file or directory 701 | #include "libnfnetlink/linux_nfnetlink.h" | ^~~~~~~~ compilation terminated. error: command '/usr/bin/x86_64-linux-gnu-gcc' failed with exit code 1

ERROR: Failed building wheel for netfilterqueue Failed to build netfilterqueue

On Fri, Jan 21, 2022 at 9:57 PM Insects @.***> wrote:

Thanks, I'll check it out.

On Fri, Jan 21, 2022 at 5:18 PM Joshua Oreman @.***> wrote:

@BMFI https://github.com/BMFI there have been a number of recent changes to netfilterqueue and I'm not able to help with errors that are several months old. If you're encountering problems when installing or using the latest version (1.0), please open a new issue describing the problem you're seeing.

— Reply to this email directly, view it on GitHub https://github.com/oremanj/python-netfilterqueue/issues/55#issuecomment-1018936275, or unsubscribe https://github.com/notifications/unsubscribe-auth/AL2LMBCCDBJXIVGEJ7LQJX3UXHSUBANCNFSM4LI7BGOQ . Triage notifications on the go with GitHub Mobile for iOS https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675 or Android https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub.

You are receiving this because you were mentioned.Message ID: @.***>