Velocity Reviews

Velocity Reviews (http://www.velocityreviews.com/forums/index.php)
-   Python (http://www.velocityreviews.com/forums/f43-python.html)
-   -   problem: saving files in IDLE (http://www.velocityreviews.com/forums/t318914-problem-saving-files-in-idle.html)

Florian Wellner 06-27-2003 01:54 PM

problem: saving files in IDLE
 
Hi,

I've got a Problem when I want to save a .py file in
Idle. Most times it works, but sometimes I can't save
my file. In the "Python Shell" Window, I get the message:

Exception in Tkinter callback
Traceback (most recent call last):
File
"/var/tmp/python-2.2.2-build//usr/lib/python2.2/lib-tk/Tkinter.py", line
1343, in __call__
return apply(self.func, args)
File "/usr/lib/idle/IOBinding.py", line 136, in save_as
if self.writefile(filename):
File "/usr/lib/idle/IOBinding.py", line 151, in writefile
chars = str(self.text.get("1.0", "end-1c"))
UnicodeError: ASCII encoding error: ordinal not in range(128)

What can I do?


Thanks,
Tom


Helmut Jarausch 06-27-2003 02:58 PM

Re: problem: saving files in IDLE
 
Florian Wellner wrote:
> Hi,
>
> I've got a Problem when I want to save a .py file in
> Idle. Most times it works, but sometimes I can't save
> my file. In the "Python Shell" Window, I get the message:
>
> Exception in Tkinter callback
> Traceback (most recent call last):
> File
> "/var/tmp/python-2.2.2-build//usr/lib/python2.2/lib-tk/Tkinter.py", line
> 1343, in __call__
> return apply(self.func, args)
> File "/usr/lib/idle/IOBinding.py", line 136, in save_as
> if self.writefile(filename):
> File "/usr/lib/idle/IOBinding.py", line 151, in writefile
> chars = str(self.text.get("1.0", "end-1c"))
> UnicodeError: ASCII encoding error: ordinal not in range(128)
>
> What can I do?
>


Try to upgrade to Python 2.3 (CVS if possible) since this
containes idle 1.0beta2 and is IMHO much better.



--
Helmut Jarausch

Lehrstuhl fuer Numerische Mathematik
RWTH - Aachen University
D 52056 Aachen, Germany



All times are GMT. The time now is 12:08 PM.

Powered by vBulletin®. Copyright ©2000 - 2013, vBulletin Solutions, Inc.
SEO by vBSEO ©2010, Crawlability, Inc.


1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57