scapy module will not import correctly

Bug #397836 reported by Ryan Giobbi on 2009-07-10
8
This bug affects 1 person
Affects Status Importance Assigned to Milestone
scapy (Ubuntu)
Undecided
Unassigned

Bug Description

Binary package hint: python-scapy

~$ python
Python 2.6.2 (release26-maint, Apr 19 2009, 01:58:18)
[GCC 4.3.3] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> from scapy import all
>>> a = IP()
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
NameError: name 'IP' is not defined

Try this for python-scapy 2.0.0.5-1:

>>> from scapy.all import *

I first looked at scapy yesterday, using python-scapy 1.1.1-3 on Ubuntu Server 8.04.3. All that required was:
>>> from scapy import *

Then when I went to my other machines running Ubuntu 9.04, I installed python-scapy, and I could import it like that. Then I found this bug, and then shortly after I found that scapy was changed a little.

Scapy also comes with an executable:
/usr/bin/scapy

Which you can run by typing:
sudo scapy

(You need sudo to create raw packets)

Changed in scapy (Ubuntu):
status: New → Invalid
To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Other bug subscribers