collective/buildout.python

error with python2.5 on Ubuntu 12.04

Closed this issue · 3 comments

I am trying to use buildout.python for creating pythons on my Ubuntu 12.04 installation. Python2.4 builds fine but 2.5 fails like this:

Using /home/hpk/p/buildout.python/python-2.4/lib/python2.4/site-packages/PIL-1.1.6-py2.4-linux-x86_64.egg
Processing dependencies for PIL==1.1.6
Finished processing dependencies for PIL==1.1.6
Updating python-2.4-test.
Updating python-2.5-build.
Updating python-2.5-virtualenv.
Installing python-2.5.
python-2.5: Running '
/home/hpk/p/buildout.python/bin/virtualenv-2.5 /home/hpk/p/buildout.python/python-2.5
/home/hpk/p/buildout.python/python-2.5/bin/easy_install -U collective.dist'
New python executable in /home/hpk/p/buildout.python/python-2.5/bin/python2.5
Not overwriting existing python script /home/hpk/p/buildout.python/python-2.5/bin/python (you must use /home/hpk/p/buildout.python/python-2.5/bin/python2.5)
Installing distribute..............
Complete output from command /home/hpk/p/buildout...on-2.5/bin/python2.5 -c "#!python
"""Bootstra... main(sys.argv[1:])
" --always-copy -U distribute:
Traceback (most recent call last):
File "", line 485, in
File "", line 480, in main
File "", line 185, in download_setuptools
File "/home/hpk/p/buildout.python/parts/opt/lib/python2.5/urllib2.py", line 91, in
import hashlib
File "/home/hpk/p/buildout.python/parts/opt/lib/python2.5/hashlib.py", line 135, in
sha224 = __get_builtin_constructor('sha224')
File "/home/hpk/p/buildout.python/parts/opt/lib/python2.5/hashlib.py", line 63, in __get_builtin_constructor
import _sha256

ImportError: No module named _sha256

...Installing distribute...done.
Traceback (most recent call last):
File "/home/hpk/p/buildout.python/parts/virtualenv/virtualenv.py", line 2270, in
main()
File "/home/hpk/p/buildout.python/parts/virtualenv/virtualenv.py", line 928, in main
never_download=options.never_download)
File "/home/hpk/p/buildout.python/parts/virtualenv/virtualenv.py", line 1037, in create_environment
search_dirs=search_dirs, never_download=never_download)
File "/home/hpk/p/buildout.python/parts/virtualenv/virtualenv.py", line 598, in install_distribute
search_dirs=search_dirs, never_download=never_download)
File "/home/hpk/p/buildout.python/parts/virtualenv/virtualenv.py", line 567, in _install_req
cwd=cwd)
File "/home/hpk/p/buildout.python/parts/virtualenv/virtualenv.py", line 1006, in call_subprocess
% (cmd_desc, proc.returncode))
OSError: Command /home/hpk/p/buildout...on-2.5/bin/python2.5 -c "#!python
"""Bootstra... main(sys.argv[1:])
" --always-copy -U distribute failed with error code 1
/bin/sh: 3: /home/hpk/p/buildout.python/python-2.5/bin/easy_install: not found
python-2.5: Non zero exit code (127) while running command.
While:
Installing python-2.5.
Error: Non zero exit code (127) while running command.
(1)hpk@t2:~/p/buildout.python$

Is this still an issue? I think I read about it somewhere, but can't remember where.

This also refers to

#8

if you take a look at

http://ubuntuforums.org/showthread.php?t=1976837

dev lib dirs are extended by '/usr/lib/x86_64-linux-gnu', where dev libs get installed since 12.04

See #24 for a solution.