Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Can not import dnet #9

Closed
GoogleCodeExporter opened this issue Jun 14, 2015 · 25 comments
Closed

Can not import dnet #9

GoogleCodeExporter opened this issue Jun 14, 2015 · 25 comments

Comments

@GoogleCodeExporter
Copy link

What steps will reproduce the problem?
1. import dnet
2.
3.

What is the expected output? What do you see instead?
Expect Nothing, but

Traceback (most recent call last):
  File "./test.py", line 6, in 
    import dnet
ImportError: dlopen(/Library/Python/2.5/site-packages/dnet.so, 2): 
Symbol not found: _addr_bcast
  Referenced from: /Library/Python/2.5/site-packages/dnet.so
  Expected in: dynamic lookup

What version of the product are you using? On what operating system?
1.12 On OS X 10.6

Please provide any additional information below.


Original issue reported on code.google.com by wee...@gmail.com on 3 Aug 2010 at 12:01

@GoogleCodeExporter
Copy link
Author

Issue 10 has been merged into this issue.

Original comment by jay.f...@gmail.com on 11 Oct 2010 at 10:06

@GoogleCodeExporter
Copy link
Author

Original comment by jay.f...@gmail.com on 11 Oct 2010 at 10:06

  • Changed state: Started

@GoogleCodeExporter
Copy link
Author

is there a solution?

Original comment by lukas.l...@gmail.com on 19 Oct 2010 at 3:38

@GoogleCodeExporter
Copy link
Author

[deleted comment]

1 similar comment
@GoogleCodeExporter
Copy link
Author

[deleted comment]

@GoogleCodeExporter
Copy link
Author

I am having the exact same problem.  See 
http://code.google.com/p/pyrit/issues/detail?id=206&can=1&start=200 for 
details. I am running Mac Osx 10.6.4 with Python 2.6, 2.5,2.3 and trying to get 
Libdnet to work with Scapy to work with Pyrit. I used the tarball install 
because the dmg would not work with 2.6 only 2.5. So I installed everything on 
2.5 and my error is:

michael-chuas-macbook-pro:~ mchua79$ /usr/bin/python -c "from cpyrit import 
pckttools"
Traceback (most recent call last):
  File "<string>", line 1, in <module>
  File "/Library/Python/2.5/site-packages/cpyrit/pckttools.py", line 45, in <module>
    raise util.ScapyImportError(e)
cpyrit.util.ScapyImportError: dlopen(/Library/Python/2.5/site-packages/dnet.so, 
2): Symbol not found: _addr_bcast
  Referenced from: /Library/Python/2.5/site-packages/dnet.so
  Expected in: flat namespace
 in /Library/Python/2.5/site-packages/dnet.so

During the configuration, there were some ERRORS that asked me to Report this 
to the AC_PACKAGE_NAME lists. I attached the configuration log for your review.

If you could help us out it would be much appreciated. Thank you very much for 
your time and help.

Original comment by mchu...@gmail.com on 30 Oct 2010 at 3:55

Attachments:

@GoogleCodeExporter
Copy link
Author

Any chance you could help us out? We would really appreciate your help. Thanks.

Original comment by mchu...@gmail.com on 3 Nov 2010 at 1:54

@GoogleCodeExporter
Copy link
Author

Seems there are something wrong when compile python support, so I copy dnet.so 
from internet to /Library/Python/2.5/site-packages, and now, everything is OK.

Original comment by wee...@gmail.com on 4 Nov 2010 at 6:54

@GoogleCodeExporter
Copy link
Author

Weekex, thanks so much for your response. I will try your solution when I get 
home later today.  What do you mean you copied dnet.so from the internet? What 
version are you using? Did you download dnet.so directly to the 
Libary/Python/2.5/site-packages? Or did you copy and paste from your download 
directory? Thank you very much for your help.

Original comment by mchu...@gmail.com on 4 Nov 2010 at 2:41

@GoogleCodeExporter
Copy link
Author

Yes, I download from internet and copy to /Libary/Python/2.5/site-packages.

BTW
I use python 2.5 and dnet 1.12

Original comment by wee...@gmail.com on 5 Nov 2010 at 7:50

@GoogleCodeExporter
Copy link
Author

Could you send me a link? I tried downloading again and copying to 
/Libary/Python/2.5/site-packages and it still does not work. Maybe I have a bad 
copy? I am downloading from here: http://libdnet.sourceforge.net/ Thanks.

Original comment by mchu...@gmail.com on 5 Nov 2010 at 1:12

@GoogleCodeExporter
Copy link
Author

 Symbol not found: _addr_bcast <---- What does this mean??????  So frustrated, can anyone help me???

Original comment by mchu...@gmail.com on 5 Nov 2010 at 11:02

@GoogleCodeExporter
Copy link
Author

Original comment by jay.f...@gmail.com on 6 Nov 2010 at 1:20

@GoogleCodeExporter
Copy link
Author

[deleted comment]

@GoogleCodeExporter
Copy link
Author

Mr.Fink or Mr.Song, are you out there? Can you help me with this?  If not, let 
me know and I will give up on this project.  I have spent days researching this 
on the web with no luck. I am at my witts end here.



Original comment by mchu...@gmail.com on 12 Nov 2010 at 2:42

@GoogleCodeExporter
Copy link
Author

Any news on a resolution to this issue?

Original comment by GrantWSa...@gmail.com on 10 Dec 2010 at 11:16

@GoogleCodeExporter
Copy link
Author

Hi, do you still have a problem?
I got same problem, and it was solved by MacPorts.

I installed py26-libdnet from MacPorts, and copy its dnet.so 
file(/opt/local/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/s
ite-packages/dnet.so
) to /Library/Python/2.6/site-packages/dnet.so. Now py26-scapy(MacPorts) is 
working fine.

Original comment by katsuhir...@gmail.com on 4 Mar 2011 at 1:00

@GoogleCodeExporter
Copy link
Author

As a workaround, you can also open 
"/Library/Python/2.6/site-packages/scapy/arch/unix.py"
 and change "scapy.config.conf.use_dnet = 1" to "scapy.config.conf.use_dnet = 0"

Original comment by lukas.l...@gmail.com on 4 Apr 2011 at 12:24

@GoogleCodeExporter
Copy link
Author

[deleted comment]

@GoogleCodeExporter
Copy link
Author

Sorry I have exactly the same problem, please, please, respond, is it already 
solved or a known issue and still no solution.

I am using python2.7 on ubuntu 12.04, I have done 'sudo apt-get install libdnet 
libdnet-dev' as well as installing 'libdnet-1.12.tgz' but sill cannot import 
dnet and this is the error:

>>> import dnet
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
ImportError: No module named dnet
>>> 

Original comment by mhd.s...@gmail.com on 27 Jul 2012 at 3:17

@GoogleCodeExporter
Copy link
Author

[deleted comment]

@GoogleCodeExporter
Copy link
Author

Alright,

So got it all figured out I hope with the following workaround for Mac OS Xes:

CFLAGS='-arch i386 -arch x86_64' ./configure --prefix=/usr
archargs='-arch i386 -arch x86_64' make
sudo make install
cd python
sudo python setup.py install

Original comment by ndo...@gmail.com on 28 Aug 2012 at 4:47

@GoogleCodeExporter
Copy link
Author

Same issues here,  I am working on a Debian 7.
Installed libdnet-1.12 via ./configure and make as told in the INSTALL 
instructions.
Then went into the python folder and tried python setup.py install, but it 
aborts with the following error:

running install
running build
running build_ext
building 'dnet' extension
gcc -pthread -fno-strict-aliasing -DNDEBUG -g -fwrapv -O2 -Wall 
-Wstrict-prototypes -fPIC -I../include -I/usr/include/python2.7 -c ./dnet.c -o 
build/temp.linux-x86_64-2.7/./dnet.o
./dnet.c:4:20: fatal error: Python.h: No such file or directory
compilation terminated.
error: command 'gcc' failed with exit status 1

Original comment by taigins...@gmail.com on 9 Apr 2014 at 8:27

@shujahm
Copy link

shujahm commented Oct 16, 2016

This solved my problem as well:

Hi, do you still have a problem?
I got same problem, and it was solved by MacPorts.

I installed py26-libdnet from MacPorts, and copy its dnet.so
file(/opt/local/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/s
ite-packages/dnet.so
) to /Library/Python/2.6/site-packages/dnet.so. Now py26-scapy(MacPorts) is
working fine.

ofalk added a commit that referenced this issue Jul 17, 2020
@ofalk
Copy link
Owner

ofalk commented Apr 30, 2022

py2 eol and old report. closing.

@ofalk ofalk closed this as completed Apr 30, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants