Closed archey closed 10 years ago
I think this is an issue specific to swig.
Kali:
Package: python-nfqueue
Source: nfqueue-bindings
Version: 0.4-3
Installed-Size: 191
Package: swig Source: swig2.0 Version: 2.0.7-3
AUR: python-nfqueue 0.4-1 Swig: not sure, but I think it uses -- swig1.0 version 1.3.40-1
So I'm pretty sure this is a swig problem. I'm sure I'm going to repeat some stuff you've already found but might as well just compile it all in one place.
The same error on GNUradio and someone solved it in this thread; looks promising: https://bbs.archlinux.org/viewtopic.php?id=147452
Another thread with the same error that was also solved: http://www.velocityreviews.com/forums/t326041-swig-problems-importerror-dynamic-module-does-not-define.html
From swig.org: "This error is almost always caused when a bad name is given to the shared object file. For example, if you created a file example.so instead of _example.so you would get this error. Alternatively, this error could arise if the name of the module is inconsistent with the module name supplied with the %module directive. Double-check the interface to make sure the module name and the shared object filename match. Another possible cause of this error is forgetting to link the SWIG-generated wrapper code with the rest of your application when creating the extension module."
Some more stuff specific to this error and Arch: https://www.google.com/search?q=site%3Aarchlinux.org+dynamic+module+does+not+define+init+function&ie=utf-8&oe=utf-8&aq=t&rls=org.mozilla:en-US:unofficial&client=iceweasel-a
It might just be as simple as getting swig 2.0.7 installed though.
Thanks we will take a look into it
https://github.com/DanMcInerney/LANs.py/issues/16
Fixed!
On Tue, Nov 12, 2013 at 7:04 AM, archey notifications@github.com wrote:
Closed #12 https://github.com/DanMcInerney/LANs.py/issues/12.
— Reply to this email directly or view it on GitHubhttps://github.com/DanMcInerney/LANs.py/issues/12 .
It seems there is no more python-nfqueue AUR package.
+1. I don't know how to get nfqueue in archlinux.
We are trying to build the lans package and everything works fine except for issues with nfqueue. We have installed the nfqueue python2 package and installed _nfqueue.so and nfqueue.py under /usr/ib/python2.7/site-packages, but when we try to load nfqueue we get an error:
Traceback (most recent call last): File "/usr/bin/lans", line 36, in
import nfqueue
File "/usr/lib/python2.7/site-packages/nfqueue.py", line 28, in
_nfqueue = swig_import_helper()
File "/usr/lib/python2.7/site-packages/nfqueue.py", line 24, in swig_import_helper
_mod = imp.load_module('_nfqueue', fp, pathname, description)
ImportError: dynamic module does not define init function (init_nfqueue)
Do you have any idea why we are getting this traceback
Nov 11 17:33 /usr/lib/python2.7/site-packages/nfqueue.py Nov 11 17:33 /usr/lib/python2.7/site-packages/_nfqueue.so