Python - Runy Tkinter conflict

Adam ad at am9atNOSPAMPLEASEspeedy.co.il
Thu Jul 31 04:37:29 EDT 2003


Hi

I had Ruby 1.6.8-8 for Windows installed on my WinXP Pro machine prior 
to installing Python 2.3. After installing Python 2.3, I tried to

<----- screen output of python interactive command line ----->
Python 2.3 (#46, Jul 29 2003, 18:54:32) [MSC v.1200 32 bit (Intel)] on win32
Type "help", "copyright", "credits" or "license" for more information.
 >>> from Tkinter import *
 >>> root = Tk()
Traceback (most recent call last):
   File "<stdin>", line 1, in ?
   File "C:\Python23\lib\lib-tk\Tkinter.py", line 1564, in __init__
     self.tk = _tkinter.create(screenName, baseName, className)
_tkinter.TclError: Can't find a usable init.tcl in the following 
directories:
     {c:\ruby\tcl\lib\tcl8.3} {c:\ruby\tcl\lib\tcl8.3} 
c:/ruby/tcl/lib/tcl8.4 C:/
Python23/lib/tcl8.4 C:/lib/tcl8.4 C:/library

c:/ruby/tcl/lib/tcl8.3/init.tcl: version conflict for package "Tcl": 
have 8.4, n
eed 8.3
version conflict for package "Tcl": have 8.4, need 8.3
     while executing
"package require -exact Tcl 8.3"
     (file "c:/ruby/tcl/lib/tcl8.3/init.tcl" line 19)
     invoked from within
"source c:/ruby/tcl/lib/tcl8.3/init.tcl"
     ("uplevel" body line 1)
     invoked from within
"uplevel #0 [list source $tclfile]"
c:/ruby/tcl/lib/tcl8.3/init.tcl: version conflict for package "Tcl": 
have 8.4, n
eed 8.3
version conflict for package "Tcl": have 8.4, need 8.3
     while executing
"package require -exact Tcl 8.3"
     (file "c:/ruby/tcl/lib/tcl8.3/init.tcl" line 19)
     invoked from within
"source c:/ruby/tcl/lib/tcl8.3/init.tcl"
     ("uplevel" body line 1)
     invoked from within
"uplevel #0 [list source $tclfile]"


This probably means that Tcl wasn't installed properly.
</----- screen output of python interactive command line ----->

After uninstalling Ruby 1.6.8-8 I tried again:

<----- screen output of python interactive command line ----->
 >>> root = Tk()
Traceback (most recent call last):
   File "<stdin>", line 1, in ?
   File "C:\Python23\lib\lib-tk\Tkinter.py", line 1564, in __init__
     self.tk = _tkinter.create(screenName, baseName, className)
_tkinter.TclError: Can't find a usable init.tcl in the following 
directories:
     {c:\ruby\tcl\lib\tcl8.3} {c:\ruby\tcl\lib\tcl8.3} 
c:/ruby/tcl/lib/tcl8.4 C:/
Python23/lib/tcl8.4 C:/lib/tcl8.4 C:/library



This probably means that Tcl wasn't installed properly.
</----- screen output of python interactive command line ----->

Tkinter started working with Python 2.3 only after 
uninstalling/reinstalling Python.

Is this considered a bug?  Should I post this somewhere else?

Adam





More information about the Python-list mailing list