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

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

----------------------------------------------------------------------

You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=105470&aid=646730&group_id=5470