Giter Club home page Giter Club logo

Comments (3)

oremanj avatar oremanj commented on July 17, 2024 1

@winterrdog You need to install the libnetfilter_queue development headers. On Debian or Ubuntu this is apt-get install libnetfilter-queue-dev, not sure the appropriate package on other distros.

@borisarloff I just pushed an update that fixes compilation on 3.9 (and 3.10). It will be released to PyPI shortly.

@riddhiman1 The URL in the readme was outdated; I fixed it, try now. https://github.com/oremanj/python-netfilterqueue

from python-netfilterqueue.

winterrdog avatar winterrdog commented on July 17, 2024

I am experiencing the same issue with python3.9
I don't know why it is happening. This is the reason i see in the traceback, it maybe that a certain C header file is missing:
**netfilterqueue.c:437:10: fatal error: libnfnetlink/linux_nfnetlink.h: No such file or directory
437 | #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**

This happened when i used "pip3 install netfilterqueue" to install it

from python-netfilterqueue.

borisarloff avatar borisarloff commented on July 17, 2024

The problem is with CPython for Python 3.9 changes. PyTypeObject.tp_print was removed but not from the netfilterqueue.c file, hence it cannot compile crrectly under Python 3.9. You need to revert to Python 3.8 or patch the netfilterqueue.c file.

from python-netfilterqueue.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.