[TIP] Tox problems with Python 2.5, 3.1 and 3.4

Tres Seaver tseaver at palladion.com
Sun Aug 25 10:52:31 PDT 2013


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

On 08/25/2013 01:23 PM, Skip Montanaro wrote:

> Traceback (most recent call last): File "<string>", line 67, in
> <module> File "/Users/skip/local/lib/python2.5/md5.py", line 6, in
> <module> from hashlib import md5 File
> "/Users/skip/local/lib/python2.5/hashlib.py", line 133, in <module> 
> md5 = __get_builtin_constructor('md5') File
> "/Users/skip/local/lib/python2.5/hashlib.py", line 60, in 
> __get_builtin_constructor import _md5 ImportError: No module named
> _md5

Your Python 2.5 install is broken (that traceback has nothing to do with
your package, or with setuptools).

> Python 3.1 fails with this traceback:
> 
> Traceback (most recent call last): File "../bin/pip", line 9, in
> <module> load_entry_point('pip==1.4.1', 'console_scripts', 'pip')() 
> File
> "/Users/skip/src/pylockfile/.tox/py31/lib/python3.1/site-packages/pkg_resources.py",
>
> 
line 378, in load_entry_point
> return get_distribution(dist).load_entry_point(group, name) File
> "/Users/skip/src/pylockfile/.tox/py31/lib/python3.1/site-packages/pkg_resources.py",
>
> 
line 2566, in load_entry_point
> return ep.load() File
> "/Users/skip/src/pylockfile/.tox/py31/lib/python3.1/site-packages/pkg_resources.py",
>
> 
line 2260, in load
> entry = __import__(self.module_name, globals(),globals(),
> ['__name__']) File
> "/Users/skip/src/pylockfile/.tox/py31/lib/python3.1/site-packages/pip/__init__.py",
>
> 
line 9, in <module>
> from pip.log import logger File
> "/Users/skip/src/pylockfile/.tox/py31/lib/python3.1/site-packages/pip/log.py",
>
> 
line 7, in <module>
> from pip import backwardcompat File
> "/Users/skip/src/pylockfile/.tox/py31/lib/python3.1/site-packages/pip/backwardcompat/__init__.py",
>
> 
line 125, in <module>
> from ssl_match_hostname import match_hostname, CertificateError 
> ImportError: No module named ssl_match_hostname

Nneds to be an explicit relative import -- a known pip bug:
https://github.com/pypa/pip/issues/1105



Tres.
- -- 
===================================================================
Tres Seaver          +1 540-429-0999          tseaver at palladion.com
Palladion Software   "Excellence by Design"    http://palladion.com
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.11 (GNU/Linux)
Comment: Using GnuPG with undefined - http://www.enigmail.net/

iEYEARECAAYFAlIaRF8ACgkQ+gerLs4ltQ7IoACcDn1DIb8Cn2xAjApOlcF4pCso
m+4An051Gkk/on5GTi2F5/F3jHzjElPN
=2jll
-----END PGP SIGNATURE-----




More information about the testing-in-python mailing list