#12293 closed defect (invalid)
BUG: Scapy 1.1.1_1 fails to run on MBPro C2D
Reported by: | nathan.stocks@… | Owned by: | pmq@… |
---|---|---|---|
Priority: | Normal | Milestone: | |
Component: | ports | Version: | |
Keywords: | Cc: | pmq@…, nox@… | |
Port: |
Description
(Note: I reported this bug to the scapy mailing list as well)
When trying to run the latest scapy with an up-to-date macports on my MacBook Pro C2D running OS X Tiger, scapy fails with:
$ scapy.py Traceback (most recent call last):
File "/opt/local/bin/scapy.py", line 11816, in ?
class Conf(ConfClass):
File "/opt/local/bin/scapy.py", line 11844, in Conf
iface = get_working_if()
File "/opt/local/bin/scapy.py", line 1051, in get_working_if
except pcap.pcapc.EXCEPTION:
AttributeError: 'module' object has no attribute 'pcapc'
The error reports that the python pcap module doesn't contain a pcapc member, which I manually verified below. I'm using pylibpcap 0.5.1 and libpcap 0.9.5.
$ python Python 2.4.4 (#1, Jul 14 2007, 12:40:05) [GCC 4.0.1 (Apple Computer, Inc. build 5363)] on darwin Type "help", "copyright", "credits" or "license" for more information.
import pcap dir(pcap)
['DLT_AIRONET_HEADER', 'DLT_APPLE_IP_OVER_IEEE1394', 'DLT_ARCNET', 'DLT_ARCNET_LINUX', 'DLT_ATM_CLIP', 'DLT_ATM_RFC1483', 'DLT_AURORA', 'DLT_AX25', 'DLT_CHAOS', 'DLT_CISCO_IOS', 'DLT_C_HDLC', 'DLT_DOCSIS', 'DLT_ECONET', 'DLT_EN10MB', 'DLT_EN3MB', 'DLT_ENC', 'DLT_FDDI', 'DLT_FRELAY', 'DLT_IEEE802', 'DLT_IEEE802_11', 'DLT_IEEE802_11_RADIO', 'DLT_IEEE802_11_RADIO_AVS', 'DLT_IPFILTER', 'DLT_IP_OVER_FC', 'DLT_JUNIPER_ATM1', 'DLT_JUNIPER_ATM2', 'DLT_JUNIPER_ES', 'DLT_JUNIPER_GGSN', 'DLT_JUNIPER_MFR', 'DLT_JUNIPER_MLFR', 'DLT_JUNIPER_MLPPP', 'DLT_JUNIPER_MONITOR', 'DLT_JUNIPER_SERVICES', 'DLT_LINUX_IRDA', 'DLT_LINUX_SLL', 'DLT_LOOP', 'DLT_LTALK', 'DLT_NULL', 'DLT_PFLOG', 'DLT_PPP', 'DLT_PPP_BSDOS', 'DLT_PPP_ETHER', 'DLT_PPP_SERIAL', 'DLT_PRISM_HEADER', 'DLT_PRONET', 'DLT_RAW', 'DLT_RIO', 'DLT_SLIP', 'DLT_SLIP_BSDOS', 'DLT_SUNATM', 'DLT_SYMANTEC_FIREWALL', 'DLT_TZSP', 'builtins', 'doc', 'file', 'name', '_newclass', '_object', '_pcap', '_swig_getattr', '_swig_setattr', 'aton', 'dltname', 'dltvalue', 'findalldevs', 'lookupdev', 'lookupnet', 'ntoa', 'pcapObject', 'pcapObjectPtr']
I updated macports by running 'sudo port -d selfupdate' twice.
I ran 'sudo port -v install scapy' and waited a very long time for all the dependencies to build. I got the error above when I tried to run scapy.
I then ran 'sudo port -v upgrade installed' and then 'sudo port -v uninstall scapy' and then 'sudo port -v install scapy'. It still fails with the same error.
I have Apple's X11 and the X11-sdk installed.
Here's my installed ports (why are some items listed multiple times???):
$ port list installed Xft2 @2.1.7 x11/Xft2 apr @1.2.9 devel/apr apr @1.2.9 devel/apr apr @1.2.9 devel/apr apr-util @1.2.8 devel/apr-util apr-util @1.2.8 devel/apr-util apr-util @1.2.8 devel/apr-util aquaterm @1.0.1 aqua/aquaterm atk @1.18.0 devel/atk atk @1.18.0 devel/atk atk @1.18.0 devel/atk bison @2.3 devel/bison bzip2 @1.0.4 archivers/bzip2 bzip2 @1.0.4 archivers/bzip2 bzip2 @1.0.4 archivers/bzip2 cairo @1.4.10 graphics/cairo cairo @1.4.10 graphics/cairo db44 @4.4.20 databases/db44 db44 @4.4.20 databases/db44 expat @2.0.1 textproc/expat expat @2.0.1 textproc/expat fontconfig @2.4.2 graphics/fontconfig fontconfig @2.4.2 graphics/fontconfig freetype @2.3.5 print/freetype freetype @2.3.5 print/freetype gawk @3.1.5 lang/gawk gd2 @2.0.35 graphics/gd2 gettext @0.16.1 devel/gettext gettext @0.16.1 devel/gettext ghostscript @8.54 print/ghostscript glib2 @2.12.12 devel/glib2 glib2 @2.12.12 devel/glib2 glib2 @2.12.12 devel/glib2 gnupg @1.4.7 mail/gnupg gnupg @1.4.7 mail/gnupg gnupg @1.4.7 mail/gnupg gnuplot @4.2.0 math/gnuplot graphviz @2.12 graphics/graphviz gsed @4.1.5 textproc/gsed gtk2 @2.10.13 x11/gtk2 gtk2 @2.10.13 x11/gtk2 gtk2 @2.10.13 x11/gtk2 hping2 @rc3 net/hping2 hping3 @20051105 net/hping3 jpeg @6b graphics/jpeg libdnet @1.11 net/libdnet libiconv @1.11 textproc/libiconv libiconv @1.11 textproc/libiconv libmikmod @3.2.0-beta2 audio/libmikmod libogg @1.1.3 multimedia/libogg libpcap @0.9.5 net/libpcap libpcap @0.9.5 net/libpcap libpng @1.2.18 graphics/libpng libpng @1.2.18 graphics/libpng libpng @1.2.18 graphics/libpng libsdl @1.2.11 devel/libsdl libsdl_image @1.2.5 devel/libsdl_image libsdl_mixer @1.2.7 audio/libsdl_mixer libsdl_ttf @2.0.8 devel/libsdl_ttf libsdl_ttf @2.0.8 devel/libsdl_ttf libvorbis @1.1.2 audio/libvorbis libxml2 @2.6.28 textproc/libxml2 libxslt @1.1.20 textproc/libxslt m4 @1.4.9 devel/m4 m4 @1.4.9 devel/m4 mtr @0.72 net/mtr ncurses @5.6 devel/ncurses ncursesw @5.6 devel/ncursesw neon @0.26.3 www/neon neon @0.26.3 www/neon nethack @3.4.3 games/nethack nmap @4.20 net/nmap nmap @4.20 net/nmap openssl @0.9.8e devel/openssl openssl @0.9.8e devel/openssl pango @1.16.4 x11/pango pango @1.16.4 x11/pango pango @1.16.4 x11/pango pcre @7.1 devel/pcre pcre @7.1 devel/pcre pcre @7.1 devel/pcre pdflib @7.0.1 print/pdflib pkgconfig @0.22 devel/pkgconfig pkgconfig @0.22 devel/pkgconfig postgresql82 @8.2.4 databases/postgresql82 postgresql82 @8.2.4 databases/postgresql82 py-crypto @2.0.1 python/py-crypto py-game @1.7.1 python/py-game py-gnuplot @1.7 python/py-gnuplot py-libdnet @1.11 python/py-libdnet py-mx @2.0.6 python/py-mx py-mx @2.0.6 python/py-mx py-numeric @24.2 python/py-numeric py-psycopg @1.1.21 python/py-psycopg py-psycopg @1.1.21 python/py-psycopg py-pylibpcap @0.5.1 python/py-pylibpcap py-pyobjc @1.4 python/py-pyobjc py-pyx @0.9 python/py-pyx py-readline @2.4.4 python/py-readline py-tkinter @2.4.4 python/py-tkinter py-tkinter @2.4.4 python/py-tkinter py-twisted @2.5.0 python/py-twisted py-zopeinterface @3.3.0 python/py-zopeinterface py-zopeinterface @3.3.0 python/py-zopeinterface python24 @2.4.4 lang/python24 python24 @2.4.4 lang/python24 qstat @2.10 games/qstat rdesktop @1.5.0 net/rdesktop readline @5.2.001 devel/readline readline @5.2.001 devel/readline render @0.9 x11/render rlwrap @0.24 sysutils/rlwrap scapy @1.1.1 net/scapy smpeg @0.4.4 multimedia/smpeg sqlite3 @3.4.0 databases/sqlite3 subversion @1.4.4 devel/subversion subversion @1.4.4 devel/subversion subversion @1.4.4 devel/subversion supertux @0.1.3 games/supertux swig @1.3.31 devel/swig tcl @8.4.15 lang/tcl tcl @8.4.15 lang/tcl tcl @8.4.15 lang/tcl teTeX @3.0 print/teTeX texi2html @1.76 textproc/texi2html texinfo @4.8 textproc/texinfo tiff @3.8.2 graphics/tiff tk @8.4.15 x11/tk tk @8.4.15 x11/tk urw-fonts @1.0.7pre42 x11/urw-fonts wget @1.10.2 net/wget wireshark @0.99.6 net/wireshark wireshark @0.99.6 net/wireshark xrender @0.9.0 x11/xrender zlib @1.2.3 archivers/zlib zlib @1.2.3 archivers/zlib
Change History (4)
comment:1 Changed 17 years ago by pmq@…
Cc: | pmq@… added |
---|---|
Owner: | changed from macports-dev@… to pmq@… |
comment:2 Changed 17 years ago by nox@…
Priority: | Important → High |
---|---|
Summary: | Scapy 1.1.1_1 fails to run on MBPro C2D → BUG: Scapy 1.1.1_1 fails to run on MBPro C2D |
Version: | 1.5 |
comment:3 Changed 17 years ago by pmq@…
Cc: | nox@… added |
---|---|
Priority: | High → Normal |
Resolution: | → invalid |
Status: | new → closed |
I've seen on the ML that this was due to not using sudo. The other bug mentioned was having to touch the startup file at first. I'm actually tracking "stable", so this is not going in until Phil Biondi tags a new release. Closing this, but thanks for the report!