[Python-bugs-list] [ python-Bugs-646730 ] Can't run script from IDLE

noreply@sourceforge.net noreply@sourceforge.net
Sun, 01 Dec 2002 16:49:24 -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 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