问题遇到的现象和发生背景
vm 15.5版本
ubuntu 22.10版本
python3
在搭建SDN架构时,前面都没有问题,在安装到ryu时,运行ryu-manager example_switch_13.py报错,有没有人能帮帮我呀。
root@anny-virtual-machine:/home/anny/桌面/ryu/ryu/app# ryu-manager example_switch_13.py
Traceback (most recent call last):
File "/usr/local/bin/ryu-manager", line 33, in <module>
sys.exit(load_entry_point('ryu==4.34', 'console_scripts', 'ryu-manager')())
File "/usr/local/bin/ryu-manager", line 25, in importlib_load_entry_point
return next(matches).load()
File "/usr/lib/python3.10/importlib/metadata/__init__.py", line 171, in load
module = import_module(match.group('module'))
File "/usr/lib/python3.10/importlib/__init__.py", line 126, in import_module
return _bootstrap._gcd_import(name[level:], package, level)
File "<frozen importlib._bootstrap>", line 1050, in _gcd_import
File "<frozen importlib._bootstrap>", line 1027, in _find_and_load
File "<frozen importlib._bootstrap>", line 1006, in _find_and_load_unlocked
File "<frozen importlib._bootstrap>", line 688, in _load_unlocked
File "<frozen importlib._bootstrap_external>", line 883, in exec_module
File "<frozen importlib._bootstrap>", line 241, in _call_with_frames_removed
File "/usr/local/lib/python3.10/dist-packages/ryu/cmd/manager.py", line 22, in <module>
from ryu.lib import hub
File "/usr/local/lib/python3.10/dist-packages/ryu/lib/hub.py", line 30, in <module>
import eventlet
File "/usr/local/lib/python3.10/dist-packages/eventlet/__init__.py", line 17, in <module>
from eventlet import convenience
File "/usr/local/lib/python3.10/dist-packages/eventlet/convenience.py", line 7, in <module>
from eventlet.green import socket
File "/usr/local/lib/python3.10/dist-packages/eventlet/green/socket.py", line 4, in <module>
__import__('eventlet.green._socket_nodns')
File "/usr/local/lib/python3.10/dist-packages/eventlet/green/_socket_nodns.py", line 11, in <module>
from eventlet import greenio
File "/usr/local/lib/python3.10/dist-packages/eventlet/greenio/__init__.py", line 3, in <module>
from eventlet.greenio.base import * # noqa
File "/usr/local/lib/python3.10/dist-packages/eventlet/greenio/base.py", line 32, in <module>
socket_timeout = eventlet.timeout.wrap_is_timeout(socket.timeout)
File "/usr/local/lib/python3.10/dist-packages/eventlet/timeout.py", line 166, in wrap_is_timeout
base.is_timeout = property(lambda _: True)
TypeError: cannot set 'is_timeout' attribute of immutable type 'TimeoutError'
报错内容
以为是文件的版本问题导致的,尝试过pip install -U netaddr six pbr,但是不行,有没有人能帮忙看一看