Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 203557

Summary: bug in net-analyzer/scapy-1.1.1 (fix included)
Product: Gentoo Linux Reporter: Stefan Behte (RETIRED) <craig>
Component: New packagesAssignee: Andrea Barisani (RETIRED) <lcars>
Status: RESOLVED FIXED    
Severity: major CC: netmon
Priority: High    
Version: unspecified   
Hardware: All   
OS: Other   
Whiteboard:
Package list:
Runtime testing required: ---

Description Stefan Behte (RETIRED) gentoo-dev Security 2007-12-28 13:04:41 UTC
I was using a scapy example and it said:

ERROR: Error during evaluation of config file [None]
Traceback (most recent call last):
  File "/usr/lib/python2.4/site-packages/scapy.py", line 12183, in read_config_file
    execfile(configfile)
TypeError: execfile() argument 1 must be string, not None
Traceback (most recent call last):
  File "./s.py", line 11, in ?
    ans, unans=srp( Ether(dst="ff:ff:ff:ff:ff:ff") /ARP(pdst=sys.argv[1]) ,timeout=2)
  File "/usr/lib/python2.4/site-packages/scapy.py", line 9530, in srp
    a,b,c=sndrcv(conf.L2socket(iface=iface, filter=filter, nofilter=nofilter, type=type),x,*args,**kargs)
  File "/usr/lib/python2.4/site-packages/scapy.py", line 8929, in __init__
    self.ins.bind((iface, type))
  File "<string>", line 1, in bind
KeyboardInterrupt

I found this: http://permalink.gmane.org/gmane.comp.security.scapy.general/1792

So you need to: "touch $HOME/.scapy_startup.py" or it won't work.
Should be included in the ebuild!
Comment 1 Jakub Moc (RETIRED) gentoo-dev 2007-12-28 13:26:13 UTC
Eh... `touch $HOME/.scapy_startup.py` certainly can't be included in the ebuild...
Comment 2 Peter Volkov (RETIRED) gentoo-dev 2008-01-30 17:13:18 UTC
Thank you for report, Craig. This bug is fixed in scapy-1.1.1-r1. FIXED.