dnspython not found error
Had to reinstall the Mailman port (not pkg) on a FreeBSD 10.3-RELEASE system after updating some ports due to security vulnerabilities. Several other packages also required rebuild to point to new shared objects.
The Mailman build failed, saying 'dnspython not found' even though that port is installed:
root@mail:/usr/ports/mail/mailman # pkg info | grep dnspython py27-dnspython-1.12.0 DNS toolkit for Python
I've attached the config log, and pasted below the list of installed ports.
How to get Mailman working again?
Thanks!
dn
root@mail:/usr/ports/mail/mailman # /usr/local/sbin/pkg-static info -g -Ea | cut -d ' ' -f 1 altermime-0.3.11.a1 amavisd-new-2.10.1_1,1 ap24-mod_wsgi3-3.5 apache24-2.4.20_1 apr-1.5.2.1.5.4 arc-5.21p arj-3.10.22_4 aspell-0.60.6.1_5 autoconf-2.69 autoconf-wrapper-20131203 automake-1.15_1 automake-wrapper-20131203 awstats-7.4,1 bacula-client-7.4.0_2 bash-static-4.3.42_1 bison-2.7.1,1 ca_root_nss-3.22.2 cabextract-1.6 cclient-2007f_2,1 clamav-0.99.1 cmake-3.5.2 cmake-modules-3.5.2 compat9x-amd64-9.3.903000.20160128 curl-7.47.0 cyrus-sasl-2.1.26_12 db5-5.3.28_3 dialog4ports-0.1.5_2 dovecot-pigeonhole-0.4.14 dovecot2-2.2.24 expat-2.1.0_3 fakeroot-1.20.2 file-5.25 freeze-2.5_2 gdbm-1.11_2 gettext-runtime-0.19.7 gettext-tools-0.19.7 gmake-4.1_2 gmake-lite-4.1_1 gnupg1-1.4.20 help2man-1.43.3_1 icu-55.1 indexinfo-0.2.4 json-c-0.12_2 jsoncpp-0.6.0.r2_2 lha-1.14i_6 libarchive-3.1.2_6,1 libcheck-0.10.0 libedit-3.1.20150325_2 libffi-3.2.1 libgcrypt-1.7.0 libgpg-error-1.22 libiconv-1.14_9 libidn-1.31 libltdl-2.4.6 libmcrypt-2.5.8_3 libressl-2.3.4 libssh2-1.7.0,2 libtool-2.4.6 libxml2-2.9.3 libxslt-1.1.28_8 logrotate-3.9.2 logwatch-7.4.0_1 lzo2-2.09 lzop-1.03 m4-1.4.17_1,1 mod_php55-5.5.35 mysql56-client-5.6.30 mysql56-server-5.6.30 nomarch-1.4 oniguruma5-5.9.6_1 p0f-3.09b p5-Archive-Zip-1.57 p5-Authen-SASL-2.16_1 p5-BerkeleyDB-0.55_1 p5-CPAN-Meta-2.150005 p5-Cache-FastMmap-1.43 p5-Canary-Stability-2011 p5-Config-IniFiles-2.88 p5-Convert-BinHex-1.125 p5-Convert-TNEF-0.18_1 p5-Convert-UUlib-1.50,1 p5-Crypt-CBC-2.33_1 p5-Crypt-DES-2.07_1 p5-Crypt-OpenSSL-Bignum-0.06 p5-Crypt-OpenSSL-RSA-0.28_1 p5-Crypt-OpenSSL-Random-0.11 p5-DBD-SQLite-1.50 p5-DBD-mysql-4.033 p5-DBI-1.636 p5-Digest-HMAC-1.03_1 p5-Digest-SHA1-2.13_1 p5-Encode-Detect-1.01_1 p5-Exporter-Tiny-0.042_1 p5-GSSAPI-0.28_1 p5-HTML-Parser-3.72 p5-HTML-Tagset-3.20_1 p5-HTTP-Date-6.02_1 p5-IO-Multiplex-1.13_1 p5-IO-Socket-INET6-2.72_1 p5-IO-Socket-IP-0.37 p5-IO-Socket-SSL-2.025 p5-IO-stringy-2.111 p5-Locale-gettext-1.06 p5-MIME-Base64-3.15 p5-MIME-Tools-5.507,2 p5-Mail-DKIM-0.40_2 p5-Mail-Tools-2.14 p5-Module-Build-0.4218 p5-Mozilla-CA-20160104 p5-Net-CIDR-0.18 p5-Net-DNS-1.05_1,1 p5-Net-IP-1.26_1 p5-Net-LibIDN-0.12_4 p5-Net-SNMP-6.0.1_1 p5-Net-SSLeay-1.74 p5-Net-Server-2.008_1 p5-Net-XWhois-0.90_5 p5-NetAddr-IP-4.078 p5-Socket-2.021 p5-Socket6-0.27 p5-TimeDate-2.30_2,1 p5-URI-1.71 p5-Unix-Syslog-1.1_1 p7zip-15.14 pcre-8.38_1 pecl-intl-3.0.0_2 perl5-5.20.3_12 php55-5.5.35 php55-bz2-5.5.35 php55-ctype-5.5.35 php55-dom-5.5.35 php55-filter-5.5.35 php55-gettext-5.5.35 php55-hash-5.5.35 php55-iconv-5.5.35 php55-imap-5.5.35 php55-json-5.5.35 php55-mbstring-5.5.35 php55-mcrypt-5.5.35 php55-mysql-5.5.35 php55-mysqli-5.5.35 php55-openssl-5.5.35 php55-pdo-5.5.35 php55-pdo_mysql-5.5.35 php55-pspell-5.5.35 php55-session-5.5.35 php55-simplexml-5.5.35 php55-xml-5.5.35 php55-zip-5.5.35 php55-zlib-5.5.35 pkg-1.7.2 pkgconf-0.9.12_1 popt-1.16_1 portmaster-3.17.9_2 postfix-3.1.0,1 py27-Babel-2.3.3 py27-Jinja2-2.8 py27-MarkupSafe-0.23 py27-MySQLdb-1.2.5 py27-alabaster-0.7.6 py27-bcrypt-0.4_2 py27-beautifulsoup-4.4.1 py27-cffi-1.5.0 py27-dnspython-1.12.0 py27-docutils-0.12 py27-enum34-1.0.4 py27-funcsigs-0.4 py27-idna-2.0 py27-ipaddress-1.0.16 py27-lxml-3.5.0 py27-mock-1.3.0_1 py27-netifaces-0.10.4 py27-pbr-1.8.1 py27-pip-8.0.2 py27-pyasn1-0.1.9 py27-pycparser-2.10 py27-pygments-2.1.3 py27-pystemmer-1.3.0_1 py27-pytz-2016.1,1 py27-setuptools27-20.0 py27-six-1.10.0 py27-snowballstemmer-1.2.0_1 py27-sphinx-1.3.1_2 py27-sphinx_rtd_theme-0.1.9 py27-sqlalchemy-0.7.10_2 py27-werkzeug-0.11.9 py27-zope.event-4.1.0 python2-2_3 python27-2.7.11_2 rar-5.3.0,3 re2c-0.14.3 ripole-0.2.2 roundcube-1.1.4_1,1 rpm2cpio-1.4_2 rsync-3.1.2_3 scons-2.5.0 spamassassin-3.4.1_6 sshguard-1.6.4_1 sudo-1.8.16 tinycdb-0.78_2 tnef-1.4.11 unarj-2.65_2 unrar-5.31,5 unzoo-4.4_2 vim-lite-7.4.1743 webpy-0.37 zoo-2.10.1_3
On 05/04/2016 11:27 AM, David Newman wrote:
Had to reinstall the Mailman port (not pkg) on a FreeBSD 10.3-RELEASE system after updating some ports due to security vulnerabilities. Several other packages also required rebuild to point to new shared objects.
The Mailman build failed, saying 'dnspython not found' even though that port is installed:
root@mail:/usr/ports/mail/mailman # pkg info | grep dnspython py27-dnspython-1.12.0 DNS toolkit for Python
what happens when you invoke /usr/local/bin/python2.7 and then do
import dns.resolver
Does that succeed or throw ImportError?
If it succeeds, then configure should too as that's what it's doing and the python it's using.
If it throws ImportError, then something is wrong in that the python at /usr/local/bin/python2.7 is not able to access the dnspython package.
-- Mark Sapiro <mark@msapiro.net> The highway is for gamblers, San Francisco Bay Area, California better use your sense - B. Dylan
David Newman writes:
The Mailman build failed, saying 'dnspython not found' even though that port is installed:
Have you fixed this? If so, please let us know, if not, here is something that may be a hint:
Aside from what Mark said, this often indicates that Mailman is using a different python from the one that the package was installed for.
python2-2_3 python27-2.7.11_2
The first one may be your system Python, and you may need to fix up paths or use an explicit configuration directive to specify that Mailman use python27, not python2. It's also possible that the first one is a "meta" package that doesn't actually include a python binary (I haven't used BSD ports in a long time). In this case the problem is elsewhere.
On 5/4/2016 11:27 AM, David Newman wrote:
Had to reinstall the Mailman port (not pkg) on a FreeBSD 10.3-RELEASE system after updating some ports due to security vulnerabilities. Several other packages also required rebuild to point to new shared objects.
The Mailman build failed, saying 'dnspython not found' even though that port is installed:
root@mail:/usr/ports/mail/mailman # pkg info | grep dnspython py27-dnspython-1.12.0 DNS toolkit for Python
I don't think that doesn't say whether it was installed from port or pkg.
FWIW, ports and packages don't always play nice together and many will say never to mix then (I do). It sounds like the Makefile is failing. On my current freebsd system, I installed mailman from source, not from the port, and don't recall any weird problems. All I can say is it's working for me.
Also, Mark's import test will tell you whether it's really there but it won't tell you about paths. My ports tree isn't up to date, but it's checking PYTHON_PKGNAMEPREFIX which comes from /usr/ports/Mk/Uses/python.mk.
The fix -may- be as simple as uninstalling python2-2_3.
z! who's back at 10.1-RELEASE-p10
On 5/6/2016 9:51 PM, Carl Zwanzig wrote:
On 5/4/2016 11:27 AM, David Newman wrote:
root@mail:/usr/ports/mail/mailman # pkg info | grep dnspython py27-dnspython-1.12.0 DNS toolkit for Python
I don't think that doesn't say whether it was installed from port or pkg.
ARRGH! I have seeing things like that hours after writing/sending it.
Should read: I don't think that says whether it was installed from port or pkg.
z! "there is no prostitute for proofreading your own work"
participants (4)
-
Carl Zwanzig -
David Newman -
Mark Sapiro -
Stephen J. Turnbull