[Python-bugs-list] [ python-Bugs-646730 ] Can't run script from IDLE
SourceForge.net
noreply@sourceforge.net
Mon, 16 Jun 2003 16:41:42 -0700
Bugs item #646730, was opened at 2002-12-01 19:44
Message generated for change (Comment added) made by nnorwitz
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=105470&aid=646730&group_id=5470
Category: IDLE
Group: None
>Status: Closed
Resolution: Fixed
Priority: 5
Submitted By: Håkan Waara (hwaara)
Assigned to: Neal Norwitz (nnorwitz)
Summary: Can't run script from IDLE
Initial Comment:
When I try to run any of my scripts from the IDLE GUI,
in Windows, through the Edit>Run Scipt menuitem, all I
get is this error:
>>> Exception in Tkinter callback
Traceback (most recent call last):
File "C:\Python22\lib\lib-tk\Tkinter.py", line 1300, in
__call__
return apply(self.func, args)
File "C:\Python22\Tools\idle\ScriptBinding.py", line
151, in run_script_event
interp.execfile(filename)
File "C:\Python22\Tools\idle\PyShell.py", line 178, in
execfile
code = compile(source, filename, "exec")
UnicodeError: ASCII encoding error: ordinal not in range
(128)
I checked the stack-trace, and saw that the "ordinal" it's
complaining about must be the "å" in my Windows user
name. IMHO, I should be able to run scripts even if my
user name isn't all ASCII ...
----------------------------------------------------------------------
>Comment By: Neal Norwitz (nnorwitz)
Date: 2003-06-16 19:41
Message:
Logged In: YES
user_id=33168
This should be fixed now that IDLEfork has been merged back
into Python 2.3.
----------------------------------------------------------------------
Comment By: Neal Norwitz (nnorwitz)
Date: 2002-12-02 09:54
Message:
Logged In: YES
user_id=33168
If you think it's important, I suppose. I don't find it
that important. But I have no idea how difficult it is to
fix. If it was simple, I would want it fixed.
----------------------------------------------------------------------
Comment By: Håkan Waara (hwaara)
Date: 2002-12-02 09:51
Message:
Logged In: YES
user_id=72743
nnorwitz, thanks for your help.
Should I file a bug about the lowercase issue?
----------------------------------------------------------------------
Comment By: Neal Norwitz (nnorwitz)
Date: 2002-12-02 09:37
Message:
Logged In: YES
user_id=33168
Håkan, idlefork will be merged back into python. So after
the merge, everything should be fine for python 2.2.3 and
2.3. I will leave this bug open until after the merge.
As for the lower casing, I have no idea.
If you have time, it would be great if you could test idlefork.
An alpha release will be made soon, but the more testing it
gets the better.
----------------------------------------------------------------------
Comment By: Håkan Waara (hwaara)
Date: 2002-12-02 09:25
Message:
Logged In: YES
user_id=72743
By the way, as a separate note... this is is how it looks:
Traceback (innermost last)
File "c:\documents and settings\håkan\skrivbord\guitest.py",
line 22, in ?
<snip>
Shouldn't the path be case-sensitive? It's all-lowercase above,
whereas it should have quite a few uppercase chars...
However, I'm happy as long as it works!
----------------------------------------------------------------------
Comment By: Håkan Waara (hwaara)
Date: 2002-12-02 09:23
Message:
Logged In: YES
user_id=72743
In idlefork it worked! Woo-hoo! And when I ran into an
exception, even the "å" in "Håkan" was written out correctly.
So this gotta mean that there's a patch waiting, if only the
IDLE maintainers will accept it? How should we go forward?
----------------------------------------------------------------------
Comment By: Neal Norwitz (nnorwitz)
Date: 2002-12-01 23:50
Message:
Logged In: YES
user_id=33168
Can you try the version from idlefork? See idlefork.sf.net.
----------------------------------------------------------------------
Comment By: Håkan Waara (hwaara)
Date: 2002-12-01 19:49
Message:
Logged In: YES
user_id=72743
More info. Here's the path to my script, in Windows:
* C:\Documents and Settings\Håkan\Skrivbord\guitest.py
and here it is, kind of thrashed, as I intercepted it in the stack
trace:
* u'C:\Documents and
Settings\H\xe5kan\Skrivbord\guitest.py'
----------------------------------------------------------------------
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=105470&aid=646730&group_id=5470