473,508 Members | 2,202 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

py2exe Python2.4 and "warning: string/unicode conversion"

Hello All,

I'm shipping an application using py2exe.
With Python2.3 it worked fine but when switching to Python2.4 I started
getting "warning: string/unicode conversion" all over the place.

Any ideas how to solve this (other than using 'filterwarnings')?

Thanks.

Bye.
--
------------------------------------------------------------------------
Miki Tebeka <mi*********@zoran.com>
http://tebeka.bizhat.com
The only difference between children and adults is the price of the toys

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.0 (Cygwin)

iD8DBQFCLVxX8jAdENsUuJsRArWQAJ9jpw1dd1mbRJ2AmxaBGp jITDrV4ACfcc0R
u6SbCoDvfU0iQSEOpzgaPfc=
=VMVh
-----END PGP SIGNATURE-----

Jul 18 '05 #1
2 2213
Miki Tebeka wrote:
I'm shipping an application using py2exe.
With Python2.3 it worked fine but when switching to Python2.4 I started
getting "warning: string/unicode conversion" all over the place.

Any ideas how to solve this (other than using 'filterwarnings')?


It is really surprising that you get this, as the only occurrence of
the string "string/unicode conversion" in Python was *removed* in
Python 2.4. It was present in 2.3, and occurred if strtoul returned
an overflow error.

Are you sure you are using Python 2.4?

Regards,
Martin
Jul 18 '05 #2
Hello "Martin,
> I'm shipping an application using py2exe.
With Python2.3 it worked fine but when switching to Python2.4 I started
getting "warning: string/unicode conversion" all over the place.

Any ideas how to solve this (other than using 'filterwarnings')?


It is really surprising that you get this, as the only occurrence of
the string "string/unicode conversion" in Python was *removed* in
Python 2.4. It was present in 2.3, and occurred if strtoul returned
an overflow error.

Are you sure you are using Python 2.4?

<sigh> Found out that one of the extension modules was compiled with 2.3 </sigh>
Thanks Martin.

Bye.
--
------------------------------------------------------------------------
Miki Tebeka <mi*********@zoran.com>
http://tebeka.bizhat.com
The only difference between children and adults is the price of the toys

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.0 (Cygwin)

iD8DBQFCLt1+8jAdENsUuJsRAuufAJ0WFZIaI1rC8q47K8f9n/mFHJrjLgCdGEos
r89fbYx/PnODBm6rsBwTZxk=
=9Upu
-----END PGP SIGNATURE-----

Jul 18 '05 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

7
3658
by: ma740988 | last post by:
The string object value_f doesn't produce the right output. At issue, - I suspect - is the conversion from string to int with istringstream. An alternate approach? Thanks in advance #include...
32
2315
by: Stephen | last post by:
Is there a standard way to remove the warning that a C compiler might produce from the statement: if (a = b) {} I don't want to do: if ((a = b) != 0) {} Because my "a = b" is actually...
4
4691
by: Ping | last post by:
Hi, All, We can use BitConverter.ToString(byte) to a string, but how to get the byte from a string like "AD-A6-0D-1F"?
2
2242
by: Joebloggs | last post by:
Hi I am trying to do an ldap lookup. I can pick up the domain name in the standard format DOMAIN\USERNAME. The problem is the company I work for expects the query in the format DOMAIN:USERNAME....
10
13609
by: =?Utf-8?B?RWxlbmE=?= | last post by:
I am surprised to discover that c# automatically converts an integer to a string when concatenating with the "+" operator. I thought c# was supposed to be very strict about types. Doesn't it seem...
2
5686
by: Bruce | last post by:
I am trying to compile my project but it is compiling for Unicode. I checked the preprocessor definitions and there is no UNICODE reference but I see /D "_UNICODE" /D "UNICODE" in the command...
2
3311
by: John Nagle | last post by:
I'm trying to clean up a bad ASCII string, one read from a web page that is supposedly in the ASCII character set but has some characters above 127. And I get this: File...
13
9706
by: Rex Mottram | last post by:
I'm using an API which does a lot of callbacks. In classic callback style, each routine provides a void * pointer to carry user-defined data. Sometimes, however, the user-defined pointer is not...
15
19916
by: Andreas Eibach | last post by:
.... but I have an unsigned long value in the printf. This warning came when I used gcc 4.x to compile. .... unsigned long offset = 0; .... Well OK, an "easy" way would be instead of printf...
0
7227
marktang
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,...
0
7127
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
7331
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
7391
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
1
7054
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...
0
7501
tracyyun
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...
0
5633
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
3188
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
0
424
bsmnconsultancy
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...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.