Forums

Dnspython installed but not working

I need to connect to a mongodb server using "mongodb+srv" but I got this error message: pymongo.errors.ConfigurationError: The "dnspython" module must be installed to use mongodb+srv:// URIs. To fix this error install pymongo with the srv extra: /usr/local/bin/uwsgi -m pip install "pymongo[srv]" After installed the module succesfully the error continues. How can I fix it? I'm not in a free account.

Was the dnspython installed as well?

The problem was solved. It was python version 3.10 and I installed on version 3.9 my site defaults. Thanks.

OK, glad to hear you worked it out!