By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
440,469 Members | 1,259 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 440,469 IT Pros & Developers. It's quick & easy.

Python - Runy Tkinter conflict

P: n/a
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

Jul 18 '05 #1
Share this question for a faster answer!
Share on Google+

This discussion thread is closed

Replies have been disabled for this discussion.