没有名为“pox.forwarding.detection”的模块

2024-10-01 07:10:29 发布

您现在位置:Python中文网/ 问答频道 /正文

运行pox时,我收到以下错误。你能建议我应该导入什么样的库吗

l3_editing.py中的代码

from .detection import Entropy
diction = {}
ent_obj = Entropy()
set_Timer = False
defendDDOS=False

错误

POX 0.7.0 (gar) / Copyright 2011-2020 James McCauley, et al.
Traceback (most recent call last):
  File "/home/sappi/Documents/pox/pox/boot.py", line 74, in do_import2
    __import__(name, level=0)
  File "/home/sappi/Documents/pox/pox/forwarding/l3_editing.py", line 34, in <module>
    from .detection import Entropy
ModuleNotFoundError: No module named 'pox.forwarding.detection'
Could not import module: forwarding.l3_editing

Tags: frompyimportfalsehome错误fileentropy