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.g et("1.0", "end-1c"))
UnicodeError: ASCII encoding error: ordinal not in range(128)
What can I do?
Thanks,
Tom 0 1484 This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics |
by: Florian Wellner |
last post by:
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
|
by: Thomas Rivas |
last post by:
Unable to launch IDLE(fork?) from the new Py 2.3. Anybody else have this
problem. Solutions?
Thanks.
Tom Rivas
|
by: Mark Carter |
last post by:
Is there a way of programmatically saving the text in an IDLE session?
|
by: Moosebumps |
last post by:
So say I am working on two separate .py files in IDLE that are part of the
same program. Does anyone have problems where when you modify one file, and
then run the other, the changes you made in the first aren't updated?
I usually just close all the files, and restart IDLE, but this is a pain.
Maybe because I always use right click -> edit with IDLE (on Windows). That
starts up a separate Python Shell too, which I always close.
MB
|
by: Richard Hanson |
last post by:
Over the last few days, I reinstalled Win2kSP2 to a spare harddrive I
had just swapped into my Fujitsu LifeBook P1120 (long story <wink>).
Subsequently, I DL'ed the newest Python alpha (2.4a2), and when trying
to install it, I immediately got this error:
This installation package cannot be installed by the
Windows Installer service. You must install a
Windows service pack that contains a newer version
of the Windows Installer service.
| |
by: mchl gdbt |
last post by:
Hi,
I have several thousand tiffs generated by application A which are read by
application B. I need to remove a few colours from the tiffs and I decided
to try with the python imaging library.
Running under debug mode permits saving my tiff files (with Image.DEBUG=0,
the save doesn't work! see below) , but it truncates the crazy tags in my
tiff and changes the resolution of the image
|
by: ChrisWinterscheid |
last post by:
We are running DB2 8.1 on AIX 5.2.
DB2level shows:
DB21085I Instance "db2inst1" uses "32" bits and DB2 code release
"SQL08016"
with level identifier "02070106".
Informational tokens are "DB2 v8.1.1.56", "s040616", "U497635", and FixPak
"6".
Product is installed at "/usr/opt/db2_08_01".
|
by: JohnJohnUSA |
last post by:
I am using Python IDLE 2.4.3 on Windows XP. I use File->New Window
to create a new program. In the Save As dialog, it always takes me to
the python program directory (where python is installed). Since this
is not where I want to save my source file, I have to select the
directory I want.
Is there a way that I can have python always bring up the Save As
dialog pointing to the directory of my choice? In other words, I
would like to...
|
by: siggi |
last post by:
Hi all,
when I do >>>sys.path in IDLE (winXP), i get a horrendously long list of
paths, paths I may have used during a lot of trials and errors. How can I
clean up sys.path? I mean, trim it of unnecessary paths?
So far, I know only the command >>>sys.path.append(r'c:....etc...'), but how
to delete or insert at the beginning of the list, I know not.
Thanks,
|
by: Ivan Reborin |
last post by:
Hello all,
I'm new to python, new as newbies get, so please, don't take wrongly
if this seems like a stupid or overly simple question.
I'm going through examples in a book I have ("Beginning python", by
Hetland Marcus) and I just started doing wxPython examples.
But every sample I try, for example:
|
by: marktang |
last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look !
Part I. Meaning of...
| |
by: Hystou |
last post by:
Overview:
Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
|
by: tracyyun |
last post by:
Dear forum friends,
With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
|
by: isladogs |
last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM).
In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules.
He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms.
Adolph will...
|
by: TSSRALBI |
last post by:
Hello
I'm a network technician in training and I need your help.
I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs.
The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols.
I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
|
by: adsilva |
last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
|
by: 6302768590 |
last post by:
Hai team
i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
| |
by: muto222 |
last post by:
How can i add a mobile payment intergratation into php mysql website.
|
by: bsmnconsultancy |
last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...
| |