473,387 Members | 3,810 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,387 software developers and data experts.

Tkinter + Python 2.3b2 on WinXP


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\Pyt hon2.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): ce******@bcrenznvy.pbz
Fcnzserr! Cyrnfr qb abg hfr va choyvp zrffntrf. V ernq gur yvfg, ab arrq gb PP.
Posted via http://dbforums.com
Jul 18 '05 #1
2 2461
Andrei <se*@my.signature.com> writes:
What should I do to make Tkinter work again?


Unset TCL_LIBRARY and TK_LIBRARY from your environment.

Regards,
Martin
Jul 18 '05 #2

Originally posted by Martin V. L?Wis
Andrei writes:
What should I do to make Tkinter work again?


Unset TCL_LIBRARY and TK_LIBRARY from your environment.

Regards,
Martin


Thanks, that did the trick.

--
Contact info (decode with rot13): ce******@bcrenznvy.pbz
Fcnzserr! Cyrnfr qb abg hfr va choyvp zrffntrf. V ernq gur yvfg, ab arrq gb PP.
Posted via http://dbforums.com
Jul 18 '05 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
by: Andrei | last post by:
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...
0
by: Adam | last post by:
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...
3
by: srijit | last post by:
Hello, Any idea - why the following code crashes on my Win 98 machine with Python 2.3? Everytime I run this code, I have to reboot my machine. I also have Win32all-157 installed. from Tkinter...
3
by: Bob Greschke | last post by:
I have a program where the user pushes a button, a "starting" message is ..inserted to a text field with an associated scroll bar, a thread is started that inserts a "working..." message on to the...
0
by: Bryan Olson | last post by:
I've run into a problem with Python/TkInter crashing, with an attempt to read illegal addresses, on Win on Win2000 and WinXP. With some web-searching, I found that people say not to manipulate...
1
by: jean-marc | last post by:
I read that Tkinter and Python IDEs (PythonWin and Idle at least) makes for a bad mix in execution mode because they're fighting for the event loop, but this mode is usefull to use the debugger. ...
4
by: phil | last post by:
These work fine on Linux s.const = {} s.const = '%c' % (0xb0) s.const = '%c' % (0xf7) s.const = '%c' % (0xd8) On WinXP the symbols for division and angle work fine. But the symbol for...
0
by: wolfonenet | last post by:
Hi All, My setup is: WinXP Python 2.5.1 TKinter version: $Revision: 50704 $ Tcl: 8.4 Debugger: WinPdb
8
by: karthikbalaguru | last post by:
Hi, One of my python program needs tkinter to be installed to run successfully. I am using Redhat 9.0 and hence tried installing by copying the tkinter-2.2.2-36.i386.rpm alone from the CD 3 to...
3
by: J-Burns | last post by:
Hello. Im a bit new to using Tkinter and im not a real pro in programming itself... :P. Need some help here. Problem 1: How do I make something appear on 2 separate windows using Tkinter? By...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.