Error building Python 2.6.3 and 2.6.4rc2

Michael Ströder michael at stroeder.com
Sat Oct 24 14:27:38 EDT 2009


HI!

I'm on a openSUSE system where Python 2.6 is installed from RPMs.
I'm trying to build Python from source separately. This used to work in former
versions but fails now (see build traceback below).

Anyone having a clue what's going on here? Is there a possible work-around? A
possible conflict with the openSUSE-RPMs?

Ciao, Michael.

----------------------------- snip -----------------------------
/usr/src/Python-2.6.4rc2> make
'import site' failed; use -v for traceback
Traceback (most recent call last):
  File "./setup.py", line 15, in <module>
    from distutils.command.build_ext import build_ext
  File "/usr/src/michael/Python-2.6.4rc2/Lib/distutils/command/build_ext.py",
line 13, in <module>
    from site import USER_BASE, USER_SITE
  File "/usr/src/michael/Python-2.6.4rc2/Lib/site.py", line 513, in <module>
    main()
  File "/usr/src/michael/Python-2.6.4rc2/Lib/site.py", line 496, in main
    known_paths = addsitepackages(known_paths)
  File "/usr/src/michael/Python-2.6.4rc2/Lib/site.py", line 288, in
addsitepackages
    addsitedir(sitedir, known_paths)
  File "/usr/src/michael/Python-2.6.4rc2/Lib/site.py", line 185, in addsitedir
    addpackage(sitedir, name, known_paths)
  File "/usr/src/michael/Python-2.6.4rc2/Lib/site.py", line 155, in addpackage
    exec line
  File "<string>", line 1, in <module>
AttributeError: 'module' object has no attribute 'lib'
make: *** [sharedmods] Error 1



More information about the Python-list mailing list