problem: saving files in IDLE

F

Florian Wellner

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
 
H

Helmut Jarausch

Florian said:
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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,755
Messages
2,569,537
Members
45,022
Latest member
MaybelleMa

Latest Threads

Top