Tkinter + Python 2.3b2 on WinXP

A

Andrei

I've installed Python 2.3b2 on Windows XP (in
"e:\programming\Python2.3"). I also have an older ActivePython 2.2.2
distro on my C-drive and Ruby which apparently installs tcl as well. Now
I'm trying to run Idle and get this little beauty (similar for other
Tkinter apps):

=====

E:\Programming\Python2.3\Lib\idlelib>idle.py
Traceback (most recent call last):
File "E:\Programming\Python2.3\Lib\idlelib\idle.py", line 23, in ?
idlelib.PyShell.main()
File "E:\Programming\Python2.3\lib\idlelib\PyShell.py", line
1253, in main
root = Tk(className="Idle")
File "E:\Programming\Python2.3\lib\lib-tk\Tkinter.py", line 1562,
in __init__
self.tk = _tkinter.create(screenName, baseName, className)
_tkinter.TclError: Can't find a usable init.tcl in the following
directories:
{e:\programming\ruby\tcl\lib\tcl8.3;E:\Programming\Python2.3\tcl\t-
k8.4} {e:\
programming\ruby\tcl\lib\tcl8.3;E:\Programming\Python2.3\tcl\tk8.4}
{e:/programm
ing/ruby/tcl/lib/tcl8.3;E:programming/Python2.3/tcl/tcl8.4}
E:/PROGRA~1/Python2.
3/lib/tcl8.4 E:/PROGRA~1/lib/tcl8.4 E:/lib/tcl8.4 E:/PROGRA~1/library
E:/library
E:/../tcl8.4.3/library

This probably means that Tcl wasn't installed properly.

=====

init.tcl is present in "E:\Programming\Python2.3\tcl\tcl8.4", which is
also listed in the mumbo jumbo above. Idlefork worked OK on ActivePython
before I installed 2.3b2.

What should I do to make Tkinter work again?

Andrei

--
Contact info (decode with rot13): (e-mail address removed)
Fcnzserr! Cyrnfr qb abg hfr va choyvp zrffntrf. V ernq gur yvfg, ab arrq gb PP.


Posted via http://dbforums.com
 
M

Martin v. =?iso-8859-15?q?L=F6wis?=

Andrei said:
What should I do to make Tkinter work again?

Unset TCL_LIBRARY and TK_LIBRARY from your environment.

Regards,
Martin
 
A

Andrei

Originally posted by Martin V. L?Wis
Unset TCL_LIBRARY and TK_LIBRARY from your environment.

Regards,
Martin

Thanks, that did the trick.

--
Contact info (decode with rot13): (e-mail address removed)
Fcnzserr! Cyrnfr qb abg hfr va choyvp zrffntrf. V ernq gur yvfg, ab arrq gb PP.


Posted via http://dbforums.com
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,968
Messages
2,570,153
Members
46,699
Latest member
AnneRosen

Latest Threads

Top