iptables-trace icon indicating copy to clipboard operation
iptables-trace copied to clipboard

Can't install libnetfilter-log

Open petrarca-arezzo opened this issue 2 years ago • 3 comments

I got the main programm, installed two of the three libs but failed with "libnetfilter-log". Any idea what might be wrong, especially as the others worked fine?

$ pip install libnetfilter-log
Looking in indexes: https://pypi.org/simple, https://www.piwheels.org/simple
ERROR: Could not find a version that satisfies the requirement libnetfilter-log
ERROR: No matching distribution found for libnetfilter-log

petrarca-arezzo avatar Apr 21 '23 15:04 petrarca-arezzo

try:

python3 -m venv /tmp/trace
/tmp/trace/bin/pip install git+https://github.com/commonism/python-libnetfilter#libnetfilter

commonism avatar Apr 24 '23 05:04 commonism

I just did:

$ sudo python3 -m venv /tmp/trace /tmp/trace/bin/pip install git+https://github.com/commonism/python-libnetfilter#libnetfilter
The virtual environment was not created successfully because ensurepip is not
available.  On Debian/Ubuntu systems, you need to install the python3-venv
package using the following command.

    apt-get install python3-venv

You may need to use sudo with that command.  After installing the python3-venv
package, recreate your virtual environment.

Failing command: ['/tmp/trace/bin/python3', '-Im', 'ensurepip', '--upgrade', '--default-pip']

So do I need to install the venv-package first?

petrarca-arezzo avatar Apr 24 '23 08:04 petrarca-arezzo

You can run this without venv as well.

pip install git+https://github.com/commonism/python-libnetfilter#libnetfilter

commonism avatar Apr 24 '23 08:04 commonism