我有一臺蘋果電腦,運行python 2.6的Leopard。我下載了scapy的最新版本,並運行「python setup.py install
」。一切都按計劃進行。現在,當我嘗試通過輸入「scapy」以交互模式運行它時,它會引發一系列錯誤。是什麼賦予了!Scapy安裝問題。似乎沒有實際安裝?
以防萬一,以下是完整的錯誤信息..
INFO: Can't import python gnuplot wrapper . Won't be able to plot.
INFO: Can't import PyX. Won't be able to use psdump() or pdfdump().
ERROR: Unable to import pcap module: No module named pcap/No module named pcapy
ERROR: Unable to import dnet module: No module named dnet
Traceback (most recent call last):
File "/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/runpy.py", line 122, in _run_module_as_main
"__main__", fname, loader, pkg_name)
File "/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/runpy.py", line 34, in _run_code
exec code in run_globals
File "/Users/owner1/Downloads/scapy-2.1.0/scapy/__init__.py", line 10, in <module>
interact()
File "scapy/main.py", line 245, in interact
scapy_builtins = __import__("all",globals(),locals(),".").__dict__
File "scapy/all.py", line 25, in <module>
from route6 import *
File "scapy/route6.py", line 264, in <module>
conf.route6 = Route6()
File "scapy/route6.py", line 26, in __init__
self.resync()
File "scapy/route6.py", line 39, in resync
self.routes = read_routes6()
File "scapy/arch/unix.py", line 147, in read_routes6
lifaddr = in6_getifaddr()
File "scapy/arch/unix.py", line 123, in in6_getifaddr
i = dnet.intf()
NameError: global name 'dnet' is not defined
什麼是錯誤? – Mark 2010-03-12 11:29:20
與他們更新 – Chris 2010-03-12 13:40:50
我有一個Windows機器上的scapy和python 2.6.5相同的問題... – JPCosta 2010-06-01 11:14:02