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.

Title: unable to launch IDLE on windows XP
Type: crash Stage:
Components: IDLE Versions: Python 2.5
Status: closed Resolution: fixed
Dependencies: Superseder:
Assigned To: amaury.forgeotdarc Nosy List: Leo, amaury.forgeotdarc
Priority: normal Keywords:

Created on 2008-04-21 08:38 by Leo, last changed 2022-04-11 14:56 by admin. This issue is now closed.

Messages (6)
msg65658 - (view) Author: Leo (Leo) Date: 2008-04-21 08:38
I recently upgraded from python 2.3 to 2.5. But idle doesn't launch
anymore, either with right-clicking a .py program an doing "edit with
IDLE" or with launching the file itself. 
When I launch idle with the command line, it gives the following error
several times:

Warning : - IdleConf.GetThemeDict- 
problem retrieving theme element 'buitlin-foreground'
from theme 'vert theme'
returning default value: '#000000'

Warning : - IdleConf.GetThemeDict- 
problem retrieving theme element 'buitlin-background'
from theme 'vert theme'
returning default value: '#ffffff'
msg65659 - (view) Author: Amaury Forgeot d'Arc (amaury.forgeotdarc) * (Python committer) Date: 2008-04-21 09:18
"buitlin"? Is is a typo while copying the error message?

The warnings are normal, these theme elements were added later. They
will disappear when you save the theme again.

Now, idle starts another process to interpret the commands, and use
sockets to communicate between them. You may have a firewall problem.

Can you try to run with the "-n" option? This does not create a
subprocess, all commands are run in the main process.
msg65660 - (view) Author: Leo (Leo) Date: 2008-04-21 09:28
it's not "buitlin" but "builtin" of course.

idle launches when I use the command line, with or without "-n", but I'm
still unable to lauch it normally (by the right click or by the windows
menu ("Démarrer/Programmes/Python25/idle")).
Before, I used python 2.3 and it worked well. I uninstalled and
installed again python 2.5 several times but I still got the same
problem.. it isn't practical at all to lauch idle by the command line!
So I hope you'll have an idea to solve my problem...
msg65661 - (view) Author: Amaury Forgeot d'Arc (amaury.forgeotdarc) * (Python committer) Date: 2008-04-21 09:57
I reproduced the problem.
- "python.exe"  works (with many warnings)
- "pythonw.exe" fails

pythonw.exe is a Windows (i.e. not a console) application, so sys.stderr
points to an invalid file descriptor; printing lot of warnings raises an
exception when the file tries to flush()...

As an immediate workaround, you may delete everything in the directory named
  c:/Documents and Settings/%USERNAME%/.idlerc
or if you feel it, add the missing entries in the file config-highlight.cfg.

I'll try to correct this problem for python2.5: replace 
   except IOError:
msg65662 - (view) Author: Leo (Leo) Date: 2008-04-21 10:31
ok, deleting the contents of .idlerc seems to work fine.
Thank you!
msg65666 - (view) Author: Amaury Forgeot d'Arc (amaury.forgeotdarc) * (Python committer) Date: 2008-04-21 22:43
Committed r62448 & r62449.
Thanks for the report!
Date User Action Args
2022-04-11 14:56:33adminsetgithub: 46917
2008-04-21 22:43:28amaury.forgeotdarcsetstatus: open -> closed
resolution: fixed
messages: + msg65666
2008-04-21 11:16:15amaury.forgeotdarcsetassignee: amaury.forgeotdarc
2008-04-21 10:31:20Leosetmessages: + msg65662
2008-04-21 09:57:33amaury.forgeotdarcsetmessages: + msg65661
2008-04-21 09:28:04Leosetmessages: + msg65660
2008-04-21 09:18:18amaury.forgeotdarcsetnosy: + amaury.forgeotdarc
messages: + msg65659
2008-04-21 08:38:12Leocreate