<div dir="ltr"><div style>The import "from scapy.all import *" does work for me with macports and 10.6.8 When I installed the scapy port, I did see that macports installed the py27-libdnet package as well. </div>
<div><br></div><div><br></div><div><br></div></div><div class="gmail_extra"><br><br><div class="gmail_quote">On Wed, Jan 23, 2013 at 1:24 AM, Dennis Lee Bieber <span dir="ltr"><<a href="mailto:wlfraed@ix.netcom.com" target="_blank">wlfraed@ix.netcom.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">On Tue, 22 Jan 2013 22:43:24 -0500, Kevin Holleran <<a href="mailto:kdawg44@gmail.com">kdawg44@gmail.com</a>><br>
<div class="im">declaimed the following in gmane.comp.python.general:<br>
<br>
><br>
</div><div><div class="h5">> Mac OS 10.8.2<br>
> Python v.2.7<br>
> I downloaded from the sourceforge site, then tried to install with MacPorts<br>
> when some dependencies were failing. I then downloaded & installed<br>
> pcapy-0.10.6 when that dependency still failed. That solved that but I<br>
> received the dnet error:<br>
><br>
> from scapy.all import conf<br>
> File "/Library/Python/2.7/site-packages/scapy/all.py", line 16, in<br>
> <module><br>
> from arch import *<br>
> File "/Library/Python/2.7/site-packages/scapy/arch/__init__.py", line 75,<br>
> in <module><br>
> from bsd import *<br>
> File "/Library/Python/2.7/site-packages/scapy/arch/bsd.py", line 12, in<br>
> <module><br>
> from unix import *<br>
> File "/Library/Python/2.7/site-packages/scapy/arch/unix.py", line 20, in<br>
> <module><br>
> from pcapdnet import *<br>
> File "/Library/Python/2.7/site-packages/scapy/arch/pcapdnet.py", line<br>
> 160, in <module><br>
> import dnet<br>
> ImportError: No module named dnet<br>
><br>
> So I downloaded and compiled libdnet-1.11 with a:<br>
> $ sudo ./configure && make<br>
><br>
> I see it compile fine & the libraries have been installed to:<br>
> /usr/local/sbin/dnet<br>
><br>
> However, python can't find it... I am not clear on how to point Python<br>
> there...<br>
><br>
</div></div> "libdnet" is likely a shared object binary... What I /think/ you are<br>
missing is the Python library that interfaces with that binary...<br>
<br>
Could <a href="http://pypi.python.org/pypi/dnet" target="_blank">http://pypi.python.org/pypi/dnet</a> answer the question?<br>
<div class="HOEnZb"><div class="h5">--<br>
Wulfraed Dennis Lee Bieber AF6VN<br>
<a href="mailto:wlfraed@ix.netcom.com">wlfraed@ix.netcom.com</a> <a href="HTTP://wlfraed.home.netcom.com/" target="_blank">HTTP://wlfraed.home.netcom.com/</a><br>
<br>
--<br>
<a href="http://mail.python.org/mailman/listinfo/python-list" target="_blank">http://mail.python.org/mailman/listinfo/python-list</a><br>
</div></div></blockquote></div><br><br clear="all"><div><br></div>-- <br>John Evans
</div>