Thank you for the prompt assistance. Below are the results
>>> import dns.resolver Traceback (most recent call last): File "<stdin>", line 1, in <module> ImportError: No module named dns.resolver >>> import sys >>> sys.path ['', '/usr/local/lib/python2.7', '/usr/local/lib/python2.7/plat-x86_64-linux-gnu', '/usr/local/lib/python2.7/lib-tk', '/usr/local/lib/python2.7/lib-old', '/usr/local/lib/python2.7/lib-dynload', '/usr/local/lib/python2.7/site-packages'] >>> root@granular:~/mailman-2.1.34# which -a python /usr/local/bin/python /usr/bin/python root@granular:~/mailman-2.1.34# -----Original Message----- From: Mark Sapiro <m...@msapiro.net> Sent: Thursday, July 30, 2020 8:05 PM To: mailman-users@python.org Subject: [Mailman-Users] Re: dnspython error On 7/30/20 6:11 PM, csa--- via Mailman-Users wrote: > I'm updating Mailman from 2.1.19 to 2.1.34 from source. When I run > configure > > > ./configure --prefix=/var/lib/mailman --with-username=list > --with-groupname=list --with-cgi-gid=www-data --with-mail-gid=list > > I get an error that dnspython is not installed > > checking dnspython... configure: error: > > when I then try and install dnspycthon using pip, I get > > Requirement already satisfied: dnspython in > /usr/lib/python2.7/dist-packages What happens if you invoke Python and type import dns.resolver does that succeed or give ImportError That's what configure is doing to determine if you have dnspython installed. If you get an ImportError with the manual import, pip must be looking somewhere that isn't in your path. I don't spicifically know what the issue is, but if in Python you type import sys sys.path is '/usr/lib/python2.7/dist-packages' one of the paths listed? It it is and you can't import dns.resolver, there's something amiss with its installation. You could try sudo pip uninstall dnspython sudo pip install dnspython and see if that helps. Otherwise, you may have more than one Python and dnspython is not installed in the default one. What does which -a python show? -- Mark Sapiro <m...@msapiro.net> The highway is for gamblers, San Francisco Bay Area, California better use your sense - B. Dylan ------------------------------------------------------ Mailman-Users mailing list -- mailman-users@python.org To unsubscribe send an email to mailman-users-le...@python.org https://mail.python.org/mailman3/lists/mailman-users.python.org/ Mailman FAQ: http://wiki.list.org/x/AgA3 Security Policy: http://wiki.list.org/x/QIA9 Searchable Archives: https://www.mail-archive.com/mailman-users@python.org/ https://mail.python.org/archives/list/mailman-users@python.org/ ------------------------------------------------------ Mailman-Users mailing list -- mailman-users@python.org To unsubscribe send an email to mailman-users-le...@python.org https://mail.python.org/mailman3/lists/mailman-users.python.org/ Mailman FAQ: http://wiki.list.org/x/AgA3 Security Policy: http://wiki.list.org/x/QIA9 Searchable Archives: https://www.mail-archive.com/mailman-users@python.org/ https://mail.python.org/archives/list/mailman-users@python.org/