This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

classification
Title: No IDLE in Windows
Type: Stage:
Components: Demos and Tools Versions:
process
Status: closed Resolution: fixed
Dependencies: Superseder:
Assigned To: Nosy List: a_v_i, loewis
Priority: normal Keywords:

Created on 2006-11-09 12:49 by a_v_i, last changed 2022-04-11 14:56 by admin. This issue is now closed.

Messages (11)
msg30482 - (view) Author: A_V_I (a_v_i) Date: 2006-11-09 12:49
I have installed Python 2.5 on WinXP using
python-25.msi with all features included and all
default direcories , etc. When I tried to use IDLE I
had got the following results:
- shortcut in Start -> ... does not do anything
- no IDLE in Python25\Tools

How can I get IDLE for usage?
msg30483 - (view) Author: Martin v. Löwis (loewis) * (Python committer) Date: 2006-11-09 19:35
Logged In: YES 
user_id=21627

Can you please report the properties of the IDLE shortcut?
(right-button on the start menu item, properties)
msg30484 - (view) Author: A_V_I (a_v_i) Date: 2006-11-13 11:33
Logged In: YES 
user_id=1641322

Properties:
   IDLE (Python GUI)
Target         Python 2.5
Start in       C:\Python25
Shortcut key   None
Run            Normal window
msg30485 - (view) Author: A_V_I (a_v_i) Date: 2006-11-13 11:33
Logged In: YES 
user_id=1641322

Properties:
   IDLE (Python GUI)
Target         Python 2.5
Start in       C:\Python25
Shortcut key   None
Run            Normal window
msg30486 - (view) Author: Martin v. Löwis (loewis) * (Python committer) Date: 2006-11-13 18:16
Logged In: YES 
user_id=21627

I see. Can you please run

C:\Python25\python.exe C:\Python25\Lib\idlelib\idle.pyw

in a cmd.exe window and report what happens?
msg30487 - (view) Author: A_V_I (a_v_i) Date: 2006-11-14 05:59
Logged In: YES 
user_id=1641322

Microsoft Windows XP [Version 5.1.2600]
(C) Copyright 1985-2001 Microsoft Corp.

C:\Documents and
Settings\Administrator>C:\Python25\python.exe C:\Python25\Lib\i
dlelib\idle.pyw
Traceback (most recent call last):
  File "C:\Python25\Lib\idlelib\idle.pyw", line 21, in <module>
    idlelib.PyShell.main()
  File "C:\Python25\lib\idlelib\PyShell.py", line 1388, in main
    root = Tk(className="Idle")
  File "C:\Python25\lib\lib-tk\Tkinter.py", line 1636, in
__init__
    self.tk = _tkinter.create(screenName, baseName,
className, interactive, want
objects, useTk, sync, use)
_tkinter.TclError: Can't find a usable init.tcl in the
following directories:
    {C:\IBMTOOLS\Python22\tcl\tcl8.4}
{C:\IBMTOOLS\Python22\tcl\tcl8.4} C:/IBMTO
OLS/Python22/tcl/tcl8.4 C:/Python25/lib/tcl8.4 C:/lib/tcl8.4
C:/library



This probably means that Tcl wasn't installed properly.
msg30488 - (view) Author: Martin v. Löwis (loewis) * (Python committer) Date: 2006-11-14 06:16
Logged In: YES 
user_id=21627

Can you please check whether you have TCL_LIBRARY or
TK_LIBRARY set 
in your environment, and, if so, try removing them?
msg30489 - (view) Author: A_V_I (a_v_i) Date: 2006-11-14 09:53
Logged In: YES 
user_id=1641322

I have got both.

When i remove c:\Python25\tcl the response is the same as before
If in addition to that I remove c:\Python25\Lib\lib-tk it
tells me that I do not have TCL/TK properly configured or it
is not in the system
msg30490 - (view) Author: Martin v. Löwis (loewis) * (Python committer) Date: 2006-11-14 18:39
I wasn't asking that you remove the files: I asked that you remove (unset) the environment variables.
msg30491 - (view) Author: A_V_I (a_v_i) Date: 2006-11-15 05:53
Thatk you for your suggestion - those variables pointed at the older Python version. After I changed their values to Python 2.5 the magic returns.
I would suggest to add information about TCL_LIBRARY and TK_LIBRARY environment variables into Installation instructions.
msg30492 - (view) Author: Martin v. Löwis (loewis) * (Python committer) Date: 2006-11-15 06:29
Please don't change the variables to point elsewhere: remove them entirely, completely, totally from your system. Otherwise, if you install another tcl-needing application, it will break again.

Closing this as fixed.
History
Date User Action Args
2022-04-11 14:56:21adminsetgithub: 44213
2006-11-09 12:49:41a_v_icreate