oremanj / python-netfilterqueue

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

NetfilterQueue for python2 #96

Closed sanrise21 closed 1 year ago

sanrise21 commented 1 year ago

I am using netfilterqueue with python3 but part of my work is using python2. Netfilter is not working with python2 and not getting installed. can anyone help how to install it on raspberry pi for python2?

oremanj commented 1 year ago

Third paragraph of the README:

The current version of NetfilterQueue requires Python 3.6 or later. The last version with support for Python 2.7 was 0.9.0.

Try pip install NetfilterQueue==0.9.0. I’m not able to provide Python 2 support beyond that. It was legacy software even years ago and very few packages support it anymore.

sanrise21 commented 1 year ago

ok,will try with it. Thanks

sanrise21 commented 1 year ago

I am getting this error when using netfilterqueue with python2- ImportError: No module named _impl is it due to python3 is latest and netfilterqueue for python2 supports very few packages?

oremanj commented 1 year ago

That might be because you’re running Python from within the python-netfilterqueue checkout directory. Try running from any other directory. See #81.