error with python2.5 on Ubuntu 12.04 #12

hpk42 opened this Issue Jun 3, 2012 · 3 comments

3 participants


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/", line 91, in
import hashlib
File "/home/hpk/p/buildout.python/parts/opt/lib/python2.5/", line 135, in
sha224 = __get_builtin_constructor('sha224')
File "/home/hpk/p/buildout.python/parts/opt/lib/python2.5/", 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/", line 2270, in
File "/home/hpk/p/buildout.python/parts/virtualenv/", line 928, in main
File "/home/hpk/p/buildout.python/parts/virtualenv/", line 1037, in create_environment
search_dirs=search_dirs, never_download=never_download)
File "/home/hpk/p/buildout.python/parts/virtualenv/", line 598, in install_distribute
search_dirs=search_dirs, never_download=never_download)
File "/home/hpk/p/buildout.python/parts/virtualenv/", line 567, in _install_req
File "/home/hpk/p/buildout.python/parts/virtualenv/", 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.
Installing python-2.5.
Error: Non zero exit code (127) while running command.

Plone Collective member

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

Plone Collective member

This also refers to


if you take a look at

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

Plone Collective member

See #24 for a solution.

@fschulze fschulze closed this Oct 3, 2012
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment