473,883 Members | 1,626 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Unable to run IDLE Under Windows

I have one account on a WindowsXP machine that refuses to run IDLE (or
any other python script that uses Tk). Other people can login to that
PC and IDLE runs just fine, so it is not an installation issue. When
the person who has the problem logs into another PC the problem follows
them. Any ideas as to what might me wrong?

This is the traceback from IDLE:

C:\Python20\Too ls\idle>..\..\p ython.exe idle.py
Traceback (most recent call last):
File "idle.py", line 12, in ?
PyShell.main()
File "C:\Python20\To ols\idle\PyShel l.py", line 732, in main
root = Tk(className="I dle")
File "c:\python20\li b\lib-tk\Tkinter.py", line 1482, in __init__
self.tk = _tkinter.create (screenName, baseName, className)
TclError: unknown color name "white "

C:\Python20\Too ls\idle>

Thanks in advance,

Jonathan Polley

jwpolley rockwellcollins com
Jul 18 '05 #1
8 3779
Hi,
Any ideas as to what might me wrong? TclError: unknown color name "white "


There is a space after "white" in this error-message. If this string comes
from some per-user configuration that may well explain your problem.

Ciao, MM
--
Marian Aldenhövel, Rosenhain 23, 53123 Bonn. +49 228 624013.
http://www.marian-aldenhoevel.de
"Wir brauchen keine Opposition, wir sind bereits Demokraten."
Jul 18 '05 #2
In article <36************ *@individual.ne t>, Marian Aldenhövel
<ma****@mba-software.de> wrote:
Hi,
> Any ideas as to what might me wrong?

TclError: unknown color name "white "


There is a space after "white" in this error-message. If this string comes
from some per-user configuration that may well explain your problem.

Ciao, MM


Where do I have to go in order to fix it? It follows them from
computer to computer...

Thanks,

Jonathan Polley
Jul 18 '05 #3
Jonathan Polley wrote:
I have one account on a WindowsXP machine that refuses to run IDLE (or
any other python script that uses Tk). Other people can login to that
PC and IDLE runs just fine, so it is not an installation issue. When
the person who has the problem logs into another PC the problem follows
them. Any ideas as to what might me wrong?


Perhaps your configuration files contain bad data:

"""
# IDLE reads several config files to determine user preferences. This
# file is the default config file for general idle settings.
#
# When IDLE starts, it will look in
# the following two sets of files, in order:
#
# default configuration
# ---------------------
# config-main.def the default general config file
# config-extensions.def the default extension config file
# config-highlight.def the default highlighting config file
# config-keys.def the default keybinding config file
#
# user configuration
# -------------------
# ~/.idlerc/config-main.cfg the user general config file
# ~/.idlerc/config-extensions.cfg the user extension config file
# ~/.idlerc/config-highlight.cfg the user highlighting config file
# ~/.idlerc/config-keys.cfg the user keybinding config file
#
# On Windows2000 and Windows XP the .idlerc directory is at
# Documents and Settings\<usern ame>\.idlerc
#
# On Windows98 it is at c:\.idlerc
"""

This is from a newer version of python, but your configuration may have a
similar layout. The easiest way to test whether I guessed the cause of your
troubles correctly should be to rename the .idlerc directory so that idle
cannot find it anymore and then try to start it again.

Peter

Jul 18 '05 #4
Peter Otten said unto the world upon 2005-02-07 09:14:
Jonathan Polley wrote:

I have one account on a WindowsXP machine that refuses to run IDLE (or
any other python script that uses Tk). Other people can login to that
PC and IDLE runs just fine, so it is not an installation issue. When
the person who has the problem logs into another PC the problem follows
them. Any ideas as to what might me wrong?

Perhaps your configuration files contain bad data:

"""
# IDLE reads several config files to determine user preferences. This
# file is the default config file for general idle settings.


<SNIP details of config filenames and purposes>
Peter


Thanks for posting that, Peter. It helped me work out my problem that
I posted about a few days back <http://tinyurl.com/3s7gn>.

Could I ask where did you get the content from? I've searched my HDD
for some of the contained phrases with the Windows tools I have at my
disposal, but didn't manage to find the text you posted. (If I'd been
able to find it, I'd have been able to solve my problem days ago.)

Thanks and best,

Brian vdB

Jul 18 '05 #5
Brian van den Broek wrote:
# IDLE reads several config files to determine user preferences.**T his
# file is the default config file for general idle settings.
<SNIP details of config filenames and purposes>

Thanks for posting that, Peter. It helped me work out my problem that
I posted about a few days back <http://tinyurl.com/3s7gn>.
You're welcome.
Could I ask where did you get the content from? I've searched my HDD
for some of the contained phrases with the Windows tools I have at my
disposal, but didn't manage to find the text you posted. (If I'd been
able to find it, I'd have been able to solve my problem days ago.)


I guess the showstopper has been the unusual suffix .def for "default
configuration" :-)

On Linux it's in

/usr/local/lib/python2.4/idlelib/config-main.def

Should be easy to translate for Windows.

Peter

Jul 18 '05 #6
Peter Otten wrote:
Perhaps your configuration files contain bad data:

# IDLE reads several config files to determine user preferences. This # file is the default config file for general idle settings. .... # On Windows2000 and Windows XP the .idlerc directory is at
# Documents and Settings\<usern ame>\.idlerc


I have a similar problem: I can't run the Python IDLE app (i.e. the
file pythonw.exe), on either of two different machines. However, I'm
using WinXP (and Python 2.4), and there is no .idlerc directory as
listed above. One of hte machines had a .idlerc file under the Python
dir, and renaming it didn't help. I just ran a search on the entire
hard drive of the other machine, and the only .idlerc dir is in my
CygWin home directory. Since I'm not trying to run idle from a CygWin
bash shell etc., I don't think it's looking there. (Just to make sure,
I renamed that dir...no luck.)

I uninstalled and re-installed Python 2.4, no change. When I try to
run pythonw.exe, there is no indication that anything happens. CPU
usage jumps for a fraction of a second, then nothing.

I tried running 'idle' under CygWin, and it gives the following error
(lengthy traceback omitted, let me know if I should include that too):

C:\cygwin\bin\p ython2.4.exe (2904): *** unable to remap
C:\cygwin\bin\c ygssl-0.9.7.dll to same address as parent
(0x740000) != 0x750000
2 [main] python2.4 3080 fork_parent: child 2904 died waiting
for dll loading

Any other ideas why IDLE won't run?

Jul 18 '05 #7
ma*****@ldc.upe nn.edu wrote:
Peter Otten wrote:
Perhaps your configuration files contain bad data:

# IDLE reads several config files to determine user preferences.
This
# file is the default config file for general idle settings.


...
# On Windows2000 and Windows XP the .idlerc directory is at
# Documents and Settings\<usern ame>\.idlerc

I have a similar problem: I can't run the Python IDLE app (i.e. the
file pythonw.exe), on either of two different machines. However, I'm
using WinXP (and Python 2.4), and there is no .idlerc directory as
listed above. One of hte machines had a .idlerc file under the Python
dir, and renaming it didn't help. I just ran a search on the entire
hard drive of the other machine, and the only .idlerc dir is in my
CygWin home directory. Since I'm not trying to run idle from a CygWin
bash shell etc., I don't think it's looking there. (Just to make sure,
I renamed that dir...no luck.)

In this case it's possible (and this is just a guess) that you are both
running with what are called "roaming profiles". In this case your
".idlerc" file may appear somewhere on a network drive that's
automatically mapped rather than a subdirectory of C:\Documents and
Settings.

You should be able to find it under XP with the command

echo %HOMEPATH%

Take a look in that directory and see if there's an .idlerc.
I uninstalled and re-installed Python 2.4, no change. When I try to
run pythonw.exe, there is no indication that anything happens. CPU
usage jumps for a fraction of a second, then nothing.
You wouldn't expect anything - pythonw.exe is the no-console
interpreter, so if you don;t give it a program to run it will terminate
pretty much immediately, and if the program doesn't use windowing then
you won't see anything happen even if you *do* run something.

I presume you *can* run python.exe :-)

If so then try running IDLE with python -v to get more information about
what's going on.
I tried running 'idle' under CygWin, and it gives the following error
(lengthy traceback omitted, let me know if I should include that too):

C:\cygwin\bin\p ython2.4.exe (2904): *** unable to remap
C:\cygwin\bin\c ygssl-0.9.7.dll to same address as parent
(0x740000) != 0x750000
2 [main] python2.4 3080 fork_parent: child 2904 died waiting
for dll loading
This is a known issue with Cygwin. Fortunately you can fix it with the
rebaseall command. You could try the following steps to fix Cygwin,
which is currently unable to load a DLL at the same address in a forked
sub-process. Note this is voodoo, so no guarantees ...
1. Close all Cygwin windows (and stop Cygwin services, if any are running).

2. In a new standard Cygwin command interpreter window run

rebaseall -v

That should be it.
Any other ideas why IDLE won't run?

Well, that's a few things to think about, anyway.

regards
Steve
--
Meet the Python developers and your c.l.py favorites March 23-25
Come to PyCon DC 2005 http://www.pycon.org/
Steve Holden http://www.holdenweb.com/
Jul 18 '05 #8
Thanks, guess I misunderstood--I thought "pythonw" _was_ IDLE. Now I
see what IDLE is, and I wasn't actually wanting to run that.

And as it turns out, my _real_ problem was that my path was making me
run the CygWin version of Python from the "DOS" command prompt--which
understandably dies with a "CPU" error.

Now I'm squared away--thanks for the tip!

Jul 18 '05 #9

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

Similar topics

6
1952
by: M Wells | last post by:
Hi all, I recently downloaded and installed Python 2.3 for Windows (on XP professional) and I don't seem to be able to run IDLE from my start menu? It seems something happens when I click on it (ie I get an hourglass) but no actual application turns up. Has anyone else experienced this and can anyone give me some advice on how to fix it?
16
12944
by: Kerry Neilson | last post by:
For the past couple of months, Idle won't start when I invoke it. I am at a complete loss for why this is. When this happens, they python command line still starts, and python works fine otherwise. Most interesting to me is that a reboot won't fix the problem. But if I just try it again sometime later it will work. Anyone have any ideas? I'm running python 2.3 on windows 2000 professional.
15
2480
by: Aubrey Hutchison | last post by:
### this will test if your version of IDLE on windows is a MATURE program design ### print "Hello world, If Python IDLE is a mature program design it will output this" Save this simple single line program as "select.py" and try to run it. Then exit IDLE and try to restart IDLE.
1
5667
by: Moosebumps | last post by:
So say I am working on two separate .py files in IDLE that are part of the same program. Does anyone have problems where when you modify one file, and then run the other, the changes you made in the first aren't updated? I usually just close all the files, and restart IDLE, but this is a pain. Maybe because I always use right click -> edit with IDLE (on Windows). That starts up a separate Python Shell too, which I always close. MB
1
1507
by: Matt Leslie | last post by:
This code: ************** import thread def doprint(i): print i for i in range(0,100): thread.start_new_thread(doprint,(i,))
6
3597
by: Batista, Facundo | last post by:
I tested the following simple code: ----------------- from Tkinter import * class App: def __init__(self, master): frame = Frame(master)
1
6738
by: dbrown2 | last post by:
I typically use IDLE for editing and debug. On Windows at least, IDLE and the standard turtle graphics module do not mix. I think both use Tkinter. For now I use IPython and Jedit when using the turtle module but it's not a great solution for me. Is there any known work-around to use turtle with IDLE? If not is there a planned fix for the problem. I find turtle is a convenient way to do simple graphics without having to install...
19
46694
by: Frank Rizzo | last post by:
I want to log the user out when there has been a period of inactivity in the application. The key here is inactivity of the application, not the system. I know that you can retrieve the inactivity of the system via GetLastInputInfo. That's not what I want - I want inactivity of the application. Thanks.
6
3405
by: Solje | last post by:
Im developing an ASP.NET application used for maintinance purpose and it may be idle for some ours. The application crash with the error shown below when the user click on some contol in the appliaction. This crash occurs on every clients at same time, event for the client at the local server. I added some logging to the Application_Error method that contains following: Exception of type System.Web.HttpUnhandledException was thrown. at...
0
9793
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 effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
11151
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, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
10419
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
9577
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
7974
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
7134
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
5996
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
4619
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
3
3237
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.