[Python-bugs-list] [ python-Bugs-646730 ] Can't run script from IDLE
noreply@sourceforge.net
noreply@sourceforge.net
Mon, 02 Dec 2002 06:25:26 -0800
Bugs item #646730, was opened at 2002-12-02 01:44
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=105470&aid=646730&group_id=5470
Category: IDLE
Group: None
Status: Open
Resolution: None
Priority: 9
Submitted By: Håkan Waara (hwaara)
Assigned to: Nobody/Anonymous (nobody)
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: Håkan Waara (hwaara)
Date: 2002-12-02 15: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 15: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-02 05: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-02 01: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