Open lantz opened 1 year ago
Note to get to that point I had to downgrade dnspython
from 2.3.0 to 2.2.1 to avoid another error:
File "/usr/local/lib/python3.10/dist-packages/dns/zone.py", line 86, in <module>
class Zone(dns.transaction.TransactionManager):
File "/usr/local/lib/python3.10/dist-packages/dns/zone.py", line 757, in Zone
) -> dns.rdtypes.ANY.SOA.SOA:
AttributeError: module 'dns.rdtypes' has no attribute 'ANY'
Looks like the issue is a change of the eventlet API in eventlet 0.30.3: https://github.com/benoitc/gunicorn/pull/2581
However downgrading to older versions of eventlet only leads to other errors.
I resolved this issue by creating a venv and downgrading eventlet to 0.30.2
sudo add-apt-repository ppa:deadsnakes/ppa
sudo apt-get install virtualenv python3.9 python3.9-distutils
#create the virtualenv
virtualenv -p`which python3.9` ryu-python3.9-venv
source ryu-python3.9-venv/bin/activate
echo $VIRTUAL_ENV #check if we are indeed in the virtual environment
pip install ryu
pip uninstall eventlet
pip install eventlet==0.30.2
ryu-manager --help
Reference: https://github.com/faucetsdn/ryu/issues/169#issuecomment-1537440144
Gracias amigo [haseebkhan611] , tenia ese problema y puede solucionarlo .
On Ubuntu 22.04, I'm seeing this error which may be related to #138 .