我为我的研究编写了一个POX控制器脚本,它在Python 2.7
解释器(使用PyCharm IDE)下运行良好。但是,当我选择Python 3.5.1
时,我收到以下错误:
/usr/bin/python3.5 /home/XXX/pox/pox.py openflow.discovery my_controller
Traceback (most recent call last):
File "/home/XXX/pox/pox.py", line 42, in <module>
import pox.boot
File "/home/XXX/pox/pox/boot.py", line 55, in <module>
import pox.core
File "/home/XXX/pox/pox/core.py", line 155, in <module>
import pox.lib.recoco as recoco
File "/home/XXX/pox/pox/lib/recoco/__init__.py", line 1, in <module>
import recoco
ImportError: No module named 'recoco'
Process finished with exit code 1
之前有人遇到过这样的错误吗?
谢谢
答案 0 :(得分:1)
我对Python 3.X也有同样的问题。
根据文档POX Readme,POX Wiki: Does POX support Python 3。
,POX需要Python 2.7要使用Python 3运行POX,首先需要将POX移植到Python 3。
使用Python 2.7,任何事情都可以正常工作。