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 <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/

Reply via email to