Pycap not working in script
<p>i m trying to capture ethernet packet using pycap <a href="http://pycap.sourceforge.net/" rel="nofollow">http://pycap.sourceforge.net/</a>. when i use following command on python prompt with root privileges, it is working</p>

<pre><code>&gt;&gt;&gt;import pycap.capture
&gt;&gt;&gt;p = pycap.capture.capture("wlan0")
&gt;&gt;&gt;p.next()
(Ethernet(type=0x608, 00:1b:b1:46:53:5d -&gt; ff:ff:ff:ff:ff:ff), ARP(op=0x1, protocol=0x800,     00:1b:b1:46:53:5d (192.16.68.10) -&gt; 00:00:00:00:00:00 (192.16.110.39)), '\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00', 1307898356.222398)
</code></pre>

<p>But if i run these commands as a script, i m getting following error</p>

<pre><code>&gt;&gt;&gt;sudo python pycap.py
Traceback (most recent call last):
  File "pycap.py", line 2, in &lt;module&gt;
  from pycap import *
  File "/home/nikhil/Code/Python/pycap.py", line 5, in &lt;module&gt;
  p = capture.capture(device)
  NameError: name 'capture' is not defined
</code></pre>

<p>Any suggestions? 
pycap <a href="http://pycap.sourceforge.net/" rel="nofollow">http://pycap.sourceforge.net/</a> says it is requires python2.3 and im using python2.6. Is that a problem?</p>
