Python Forum
Failed Install NetfilterQueue
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Failed Install NetfilterQueue
#1
Hello
I'm using Win 10 with Python 3.7, I want to instal NetfilterQueue lib but each time I've got this error message:

command 'C:\\Program Files (x86)\\Microsoft Visual Studio 14.0\\VC\\BIN\\x86_amd64\\cl.exe' failed with exit status 2

Help please.

I'm sorry , i must put it in the general discussion
Reply
#2
(Mar-09-2019, 08:37 AM)Alamily Wrote: I'm using Win 10 with Python 3.7, I want to instal NetfilterQueue lib
It's a library that only work on Linux.
library use libnetfilterqueue which need Linux kernel to work.
Reply
#3
I tried to install it on Linux, but I got the following message:

Downloading https://files.pythonhosted.org/packages/...8.1.tar.gz (58kB)
100% |████████████████████████████████| 61kB 157kB/s
Building wheels for collected packages: netfilterqueue
Running setup.py bdist_wheel for netfilterqueue ... error
Complete output from command /usr/bin/python -u -c "import setuptools, tokenize;__file__='/tmp/pip-install-raUjgK/netfilterqueue/setup.py';f=getattr(tokenize, 'open', open)(_file_);code=f.read().replace('\r\n', '\n');f.close();exec(compile(code, _file_, 'exec'))" bdist_wheel -d /tmp/pip-wheel-bJBx1d --python-tag cp27:
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-2.7
x86_64-linux-gnu-gcc -pthread -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -fno-strict-aliasing -Wdate-time -D_FORTIFY_SOURCE=2 -g -fdebug-prefix-map=/build/python2.7-AjKZhf/python2.7-2.7.15=. -fstack-protector-strong -Wformat -Werror=format-security -fPIC -I/usr/include/python2.7 -c netfilterqueue.c -o build/temp.linux-x86_64-2.7/netfilterqueue.o
netfilterqueue.c:437:10: fatal error: libnfnetlink/linux_nfnetlink.h: No such file or directory
#include "libnfnetlink/linux_nfnetlink.h"
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
compilation terminated.
error: command 'x86_64-linux-gnu-gcc' failed with exit status 1

----------------------------------------
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
Complete output from command /usr/bin/python -u -c "import setuptools, tokenize;__file__='/tmp/pip-install-raUjgK/netfilterqueue/setup.py';f=getattr(tokenize, 'open', open)(_file_);code=f.read().replace('\r\n', '\n');f.close();exec(compile(code, _file_, 'exec'))" install --record /tmp/pip-record-nW4X9e/install-record.txt --single-version-externally-managed --compile:
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-2.7
x86_64-linux-gnu-gcc -pthread -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -fno-strict-aliasing -Wdate-time -D_FORTIFY_SOURCE=2 -g -fdebug-prefix-map=/build/python2.7-AjKZhf/python2.7-2.7.15=. -fstack-protector-strong -Wformat -Werror=format-security -fPIC -I/usr/include/python2.7 -c netfilterqueue.c -o build/temp.linux-x86_64-2.7/netfilterqueue.o
netfilterqueue.c:437:10: fatal error: libnfnetlink/linux_nfnetlink.h: No such file or directory
#include "libnfnetlink/linux_nfnetlink.h"
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
compilation terminated.
error: command 'x86_64-linux-gnu-gcc' failed with exit status 1

----------------------------------------
Command "/usr/bin/python -u -c "import setuptools, tokenize;__file__='/tmp/pip-install-raUjgK/netfilterqueue/setup.py';f=getattr(tokenize, 'open', open)(_file_);code=f.read().replace('\r\n', '\n');f.close();exec(compile(code, _file_, 'exec'))" install --record /tmp/pip-record-nW4X9e/install-record.txt --single-version-externally-managed --compile" failed with error code 1 in /tmp/pip-install-raUjgK/netfilterqueue/
Reply
#4
apt-get install build-essential python-dev libnetfilter-queue-dev

you need to install this lib before installing netfilterqueue
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  pip install -e ., ERROR: Failed building wheel for pyfarmhash mostafaPython 1 6,294 Jun-09-2020, 08:24 PM
Last Post: mcmxl22
  pip3 install functools failed kintarowonders 1 15,744 Mar-07-2019, 07:56 PM
Last Post: nilamo
  install DB API failed... netbanker 1 2,708 Apr-06-2018, 05:01 AM
Last Post: Gribouillis
  Failed attempt to install pyserial skeeve 4 7,243 Nov-07-2017, 05:08 PM
Last Post: snippsat
  Problems installing Python - Failed to install MSI package Johnnyq70 1 4,856 Oct-29-2017, 08:50 PM
Last Post: Larz60+

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020