gpt4 book ai didi

python - 导入错误 : No module named oslo_config. cfg - Ryu 应用程序

转载 作者:行者123 更新时间:2023-12-02 05:46:03 29 4
gpt4 key购买 nike

我正在运行示例 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,并感谢任何解决此问题的指示。谢谢!

Error after importing oslo

最佳答案

如果您想轻松安装 ryu 应用程序,请尝试 sdnds-tw/ryuinstaller 。这对我来说是工作。

关于python - 导入错误 : No module named oslo_config. cfg - Ryu 应用程序,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/35085285/

29 4 0