gdub - thanks, this also helped me get around the error as well, I’d like to still get it working in python3 though if possible, I also had some problems with scapy installing but managed to figure it out after installing a few dependencies… it seems to be what is missing for this netfilterqueue module as well…
note: I can get it to install using pip from a terminal after running:
apt-get install build-essential python-dev libnetfilter-queue-dev
pip install netfilterqueue
but it still will not allow me to install the module from within pycharm…
Hope someone can figure it out as I’d like to work with the module in python3 from within pycharm.
EDIT: I managed to get it working for python 3.7 in pycharm, from what I can tell NetFilterQueue does not support python 3.8 yet and it will not let you import it… but to get it workng for python 3.7 I did the following…
from terminal I ran:
apt-get install libnetfilter-queue-dev
then I ran this to install netfilterqueue python 3 version:
pip3 install NFQP3
then I went into pycharm and changed my project interpreter to python3 by following the directions that gdub posted above except I selected python3 instead of python2.7.
Then I imported the module NFQP3 from within pycharm by clicking the + button and searching for NFQP3.
hope that helps.