我已经为我的研究写了一个POX控制器脚本,它在Python 2.7解释器(使用PyCharm集成开发环境)下工作得很好。但是,当我选择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以前有人遇到过这样的错误吗?
谢谢
发布于 2016-07-31 01:26:54
我在Python 3.X上也遇到了同样的问题。
根据文档POX Readme,POX Wiki: Does POX support Python 3,POX需要Python2.7。
要在Python3中运行POX,首先需要将POX移植到Python3。
使用Python2.7,一切都应该可以正常工作。
https://stackoverflow.com/questions/38600144
复制相似问题