Some test fail on my new Python 2.6

R. David Murray rdmurray at bitdance.com
Mon Apr 6 18:20:50 EDT 2009


Sorin Schwimmer <sxn02 at yahoo.com> 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/test_tcl.py
> Traceback (most recent call last):
>   File "Lib/test/test_tcl.py", line 6, in <module>
>     from Tkinter import Tcl
>   File "/install/Python-2.6.1/Lib/lib-tk/Tkinter.py", 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