Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > Python > problem: saving files in IDLE

Reply
Thread Tools

problem: saving files in IDLE

 
 
Florian Wellner
Guest
Posts: n/a
 
      06-27-2003
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(12

What can I do?


Thanks,
Tom

 
Reply With Quote
 
 
 
 
Helmut Jarausch
Guest
Posts: n/a
 
      06-27-2003
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(12
>
> 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

 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
IDLE file saving problem newb.py Python 5 09-01-2009 07:08 AM
How to specify default directory for saving files in IDLE JohnJohnUSA Python 1 07-04-2006 09:19 PM
Saving DataTable to session vs saving a Custom object. John Kandell ASP .Net 4 12-10-2004 05:08 AM
Saving IDLE output Mark Carter Python 0 09-05-2003 10:43 AM
problem: saving files in IDLE Thomas Weber Python 0 06-27-2003 11:23 AM



Advertisments