我正在运行此处概述的示例 Ryu 应用程序:https ://ryu-zhdoc.readthedocs.org/en/latest/writing_ryu_app.html
但我收到以下错误:
Traceback (most recent call last):
File "/usr/local/bin/ryu-manager", line 9, in <module>
load_entry_point('ryu==3.29.1', 'console_scripts', 'ryu-manager')()
File "/usr/lib/python2.7/dist-packages/pkg_resources.py", line 351, in load_entry_point
return get_distribution(dist).load_entry_point(group, name)
File "/usr/lib/python2.7/dist-packages/pkg_resources.py", line 2363, in load_entry_point
return ep.load()
File "/usr/lib/python2.7/dist-packages/pkg_resources.py", line 2088, in load
entry = __import__(self.module_name, globals(),globals(), ['__name__'])
File "/usr/local/lib/python2.7/dist-packages/ryu/cmd/manager.py", line 31, in <module>
from ryu import cfg
File "/usr/local/lib/python2.7/dist-packages/ryu/cfg.py", line 17, in <module>
import oslo_config.cfg
ImportError: No module named oslo_config.cfg
我已经尝试了以下命令,但还没有解决我的问题:
sudo pip install oslo.config
sudo apt-get upgrade python-oslo.config
sudo apt-get install python-oslo python-netaddr
我刚刚开始熟悉 Ryu,并感谢任何解决此问题的建议。谢谢!