Error when setting up pgadmin on Ubuntu 22.04 using the DO Tutorial

Following this tutorial # How To Install And Configure pgAdmin 4 in Server Mode on Ubuntu 22.04 but when I try to run the pgadmin setup script (python my_env/lib/python3.10/site-packages/pgadmin4/ I get an error:

File "/home/durc/environments/illy/lib/python3.10/site-packages/dns/", line 757, in Zone ) -> dns.rdtypes.ANY.SOA.SOA: AttributeError: module 'dns.rdtypes' has no attribute 'ANY'

Any and all help/advice is welcomed.


Submit an answer

This textbox defaults to using Markdown to format your answer.

You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!

Sign In or Sign Up to Answer

These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.

Site Moderator
Site Moderator badge
February 26, 2023
Accepted Answer

Hello @davet

This seems to be a known issue with eventlet

The following workaround has been mentioned :

  1. python3 -m pip install dnspython==2.2.1

Also upgrading eventlet to latest version seems to resolves the issue and the workaround is no longer needed.


Try DigitalOcean for free

Click below to sign up and get $200 of credit to try our products over 60 days!

Sign up

Featured on Community

Get our biweekly newsletter

Sign up for Infrastructure as a Newsletter.

Hollie's Hub for Good

Working on improving health and education, reducing inequality, and spurring economic growth? We'd like to help.

Become a contributor

Get paid to write technical tutorials and select a tech-focused charity to receive a matching donation.

Welcome to the developer cloud

DigitalOcean makes it simple to launch in the cloud and scale up as you grow — whether you're running one virtual machine or ten thousand.

Learn more
DigitalOcean Cloud Control Panel