Building Python 2.5.6 on Ubuntu Natty

Ricardo Bánffy rbanffy at
Tue Jul 12 22:35:38 CEST 2011

Hi folks.

Has anyone succeeded in building Python 2.5.6 from sources in Ubuntu Natty?
I installed all the build dependencies and keep getting

running build_ext
/usr/include/sqlite3.h: version 3.7.4
Traceback (most recent call last):
  File "./", line 1545, in <module>
  File "./", line 1540, in main
  File "/tmp/Python-2.5.6/Lib/distutils/", line 151, in setup
  File "/tmp/Python-2.5.6/Lib/distutils/", line 974, in run_commands
  File "/tmp/Python-2.5.6/Lib/distutils/", line 994, in run_command
  File "/tmp/Python-2.5.6/Lib/distutils/command/", line 112, in run
  File "/root/Python-2.5.6/Lib/", line 333, in run_command
    del help[cmd]
  File "/tmp/Python-2.5.6/Lib/distutils/", line 994, in run_command
  File "/tmp/Python-2.5.6/Lib/distutils/command/", line 290, in
  File "./", line 97, in build_extensions
  File "./", line 810, in detect_modules
    sqlite_libdir = [os.path.abspath(os.path.dirname(sqlite_libfile))]
  File "/root/Python-2.5.6/Lib/", line 119, in dirname
    return split(p)[0]
  File "/root/Python-2.5.6/Lib/", line 77, in split
    i = p.rfind('/') + 1
AttributeError: 'NoneType' object has no attribute 'rfind'
make: *** [sharedmods] Error 1

when I do "make test" and

Compiling /opt/python2.5/lib/python2.5/ ...
make: *** [libinstall] Error 1

when I do "make install"

Any ideas?

Ricardo Bánffy
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <>

More information about the Python-list mailing list