Issue646730
This issue tracker has been migrated to GitHub,
and is currently read-only.
For more information,
see the GitHub FAQs in the Python's Developer Guide.
Created on 2002-12-02 00:44 by hwaara, last changed 2022-04-10 16:05 by admin. This issue is now closed.
Messages (9) | |||
---|---|---|---|
msg13519 - (view) | Author: Håkan Waara (hwaara) | Date: 2002-12-02 00:44 | |
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 ... |
|||
msg13520 - (view) | Author: Håkan Waara (hwaara) | Date: 2002-12-02 00:49 | |
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' |
|||
msg13521 - (view) | Author: Neal Norwitz (nnorwitz) * ![]() |
Date: 2002-12-02 04:50 | |
Logged In: YES user_id=33168 Can you try the version from idlefork? See idlefork.sf.net. |
|||
msg13522 - (view) | Author: Håkan Waara (hwaara) | Date: 2002-12-02 14:23 | |
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? |
|||
msg13523 - (view) | Author: Håkan Waara (hwaara) | Date: 2002-12-02 14:25 | |
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! |
|||
msg13524 - (view) | Author: Neal Norwitz (nnorwitz) * ![]() |
Date: 2002-12-02 14:37 | |
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. |
|||
msg13525 - (view) | Author: Håkan Waara (hwaara) | Date: 2002-12-02 14:51 | |
Logged In: YES user_id=72743 nnorwitz, thanks for your help. Should I file a bug about the lowercase issue? |
|||
msg13526 - (view) | Author: Neal Norwitz (nnorwitz) * ![]() |
Date: 2002-12-02 14:54 | |
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. |
|||
msg13527 - (view) | Author: Neal Norwitz (nnorwitz) * ![]() |
Date: 2003-06-16 23:41 | |
Logged In: YES user_id=33168 This should be fixed now that IDLEfork has been merged back into Python 2.3. |
History | |||
---|---|---|---|
Date | User | Action | Args |
2022-04-10 16:05:57 | admin | set | github: 37563 |
2002-12-02 00:44:00 | hwaara | create |