Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Eventlet + DNS Python Attribute Error: module "dns.rdtypes" has no attribute ANY

I know that someone will face this problem. I had this problem today, but I could fix it promptly, and I want to share my solution:

Problem:

from flask_socketio import SocketIO

You will receive an output error with something like:

Attribute Error: module "dns.rdtypes" has no attribute ANY

This only happens if you have installed eventlet, because it install dnspython with it.

The solution is simple, just reinstall dnspython for previous realease:

python3 -m pip install dnspython==2.2.1

The problem should disappear

like image 746
Indesejavel Coisa Avatar asked Mar 09 '26 19:03

Indesejavel Coisa


1 Answers

The solution is simple, just reinstall dnspython for previous realease:

python3 -m pip install dnspython==2.2.1

The problem should disappear

like image 180
Indesejavel Coisa Avatar answered Mar 11 '26 07:03

Indesejavel Coisa



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!