On 7/31/20 8:15 AM, csa--- via Mailman-Users wrote:
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#
You have two python installations, one in /usr/local/bin/python with libraries in /usr/local/lib/python2.7 and one in /usr/bin/python with libraries in /usr/lib/python2.7.
dnspython is installed in /usr/lib/python2.7, but the python run with
the python
command is using /usr/local/lib/python2.7.
Your choices are to install dnspython in /usr/local/lib/python2.7 which you can do by
sudo cp -a /usr/lib/python2.7/dist-packages/dns
/usr/lib/python2.7/dist-packages/
or you can run mailman's configure with the option
--with-python /usr/bin/python
First, I would run both
/usr/bin/python --version /usr/local/bin/python --version
to see which is newer and use the newer one.
-- Mark Sapiro mark@msapiro.net The highway is for gamblers, San Francisco Bay Area, California better use your sense - B. Dylan