[ python-Bugs-922914 ] Installer misplaces tcl library
SourceForge.net
noreply at sourceforge.net
Mon Mar 29 17:32:38 EST 2004
Bugs item #922914, was opened at 2004-03-25 00:55
Message generated for change (Comment added) made by tim_one
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=105470&aid=922914&group_id=5470
Category: IDLE
Group: Python 2.3
Status: Open
Resolution: None
Priority: 5
Submitted By: WS Wong (wswong)
Assigned to: Nobody/Anonymous (nobody)
Summary: Installer misplaces tcl library
Initial Comment:
Python 2.3.3 on Windows 2000 Professional
-------------------------------------------
Could not start IDLE after installation of Python in
C:\WSPrograms\Python23
Went to C:\WSPrograms\Python23\Lib\idlelib and from
the command line typed
C:\WSPrograms\Python23\python idle.py
The following traceback obtained:
C:\WSPrograms\Python23
\Lib\idlelib>c:\wsprograms\python23\python idle.py
Traceback (most recent call last):
File "idle.py", line 23, in ?
idlelib.PyShell.main()
File "C:\WSPrograms\Python23\lib\idlelib\PyShell.py",
line 1269, in main
root = Tk(className="Idle")
File "C:\WSPrograms\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:\WSPrograms\ruby167ms\tcl\lib\tcl8.3}
{C:\WSPrograms\ruby167ms\tcl\lib\tc
l8.3} C:/WSPrograms/ruby167ms/tcl/lib/tcl8.4
c:/wsprograms/python23/lib/tcl8.4 c
:/wsprograms/lib/tcl8.4 c:/lib/tcl8.4
c:/wsprograms/library c:/library c:/../tcl
8.4.3/library
Looking at the directories that was installed,
I found that the tcl8.4 was actually located in
C:\WSPrograms\Python23\tcl\tk8.4
which was never on the search path.
After I copied the tcl8.4 directory to
C:\WSPrograms\Python23\Lib
and run the commands again, it worked. Not sure what
other implications this will cause
but at least I have IDLE running again.
----------------------------------------------------------------------
>Comment By: Tim Peters (tim_one)
Date: 2004-03-29 17:32
Message:
Logged In: YES
user_id=31435
This is almost certainly Ruby's "fault" -- the Ruby Windows
installer does set environment variables forcing every app to
try using Ruby's version of Tcl/Tk. Get rid of the Ruby
envars, and IDLE should work fine.
----------------------------------------------------------------------
Comment By: Martin v. Löwis (loewis)
Date: 2004-03-29 17:26
Message:
Logged In: YES
user_id=21627
Have you set the TCL_LIBRARY environment variable? If so,
you should unset it. If you cannot unset it, you are on your
own - as a system administrator, by setting this variable,
you express the desire to use a different Tcl installation
(apparently the one that comes with Ruby), and then it is
your responsibility to make this setting work.
----------------------------------------------------------------------
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=105470&aid=922914&group_id=5470
More information about the Python-bugs-list
mailing list