Some test fail on my new Python 2.6

R. David Murray rdmurray at
Tue Apr 7 00:20:50 CEST 2009

Sorin Schwimmer <sxn02 at> wrote:
> I just downloaded and compiled Python 2.6 on a Gentoo Linux, IBM NetVista.
> After going through the usual steps (./configure, make), I ran a test (make test), and got some unexpected issues, which are detailed here:
> # ./python Lib/test/
> Traceback (most recent call last):
>   File "Lib/test/", line 6, in <module>
>     from Tkinter import Tcl
>   File "/install/Python-2.6.1/Lib/lib-tk/", line 39, in <module>
>     import _tkinter # If this fails your Python may not be configured for Tk
> Anybody has a quick fix?

Yep.  Run 'make test' instead of running them one by one.  make test
will run them under regrtest, which has mechanisms for detecting tests
that are expected to or may reasonably fail on a given platform.  Then if
you still have errors, report back :)

R. David Murray

More information about the Python-list mailing list