C:\Python25\Lib\IDLELIB\idle.pyw won't start

Anthra Norell anthra.norell at bluewin.ch
Sat Feb 6 12:21:46 CET 2010

   Thanks for your hints. I take them up one by one:

Gabriel Genellina wrote:
> En Fri, 05 Feb 2010 10:23:57 -0300, Anthra Norell
> <anthra.norell at bluewin.ch> escribió:
>>>>    I upgraded from 2.4 to 2.5 and am unable to start an 2.5 idle
>>>>    window. The OS is Windows ME. The download of 2.5 finished with a
>>>> warning saying that 2.5 was the highest version for Windows 9* Any
>>>> tips?
> I'd suggest a couple more tests.
> Open the Python interpreter and execute:
> py> from idlelib import idle
> This *should* launch IDLE, or raise an error... 
 >>> import idle
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "C:/PYTHON25/Lib/IDLELIB\idle.pyw", line 6, in <module>
    import PyShell
  File "C:\Python25\Lib\idlelib\PyShell.py", line 3, in <module>
ImportError: No module named os

 >>> import os
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
ImportError: No module named os

> If nothing happens, exit
> the process and open another one, and execute:
> py> import Tkinter
 >>> import Tkinter
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "C:\PYTHON25\lib\lib-tk\Tkinter.py", line 37, in <module>
    import FixTk # Attempt to configure Tcl/Tk without requiring PATH
  File "C:\PYTHON25\lib\lib-tk\FixTk.py", line 1, in <module>
    import sys, os
ImportError: No module named os

> py> root = Tkinter.Tk()
> py> root.mainloop()
> An empty window should appear. If not, I'd say something is wrong with 
> the
> Tcl/Tk libraries.
>> For the time being 2.4 works fine. I'd much prefer 2.5, though, 
>> because it includes the image library (PIL), whereas 2.4 cannot even 
>> use it.
> PIL has an impressive compatibility record - it works with *any* Python
> version from 1.5.2 up. You should be able to use PIL with 2.4 without
> problems.

Another good hint to a side issue: I should download PIL for P2.4. I 
guess it wasn't available back then and so I continued doing images with 

The real issue seems to be  a missing module "os".

C:\PYTHON25\LIB>dir os.*

 Volume in drive C is PKBACK# 001
 Volume Serial Number is 07D1-0103
 Directory of C:\PYTHON25\Lib

OS       PY         25,211  08-03-06  9:27a OS.PY
OS       PYC        24,430  06-05-08  6:45p OS.PYC
         2 file(s)         49,641 bytes
         0 dir(s)        2,635.30 MB free

Here we are! Somehow the name got upper-cased! There's a whole bunch  
(131) of upper-cased names in the Lib I shall install the whole thing 
from scratch. That should take care if it. Thank you very much.

Frederic (Looking forward to Linux!)

More information about the Python-list mailing list