Differences between revisions 9 and 11 (spanning 2 versions)
Revision 9 as of 2004-01-27 20:50:00
Size: 757
Editor: p-proxy-3-int0
Revision 11 as of 2004-01-28 00:22:39
Size: 753
Editor: p508AAA78
Deletions are marked like this. Additions are marked like this.
Line 3: Line 3:
== Solution 1 ==  == Solution 1 ==
Line 10: Line 10:
You can do this by adding a line  You can do this by adding a line
Line 14: Line 14:
to your setup.py file.  to your setup.py file.
Line 19: Line 19:
== Solution 2 ==  == Solution 2 ==


Solution 1

In py2exe 0.5, if the encodings are not found in the built exe, add these two to the includes:

'encodings', 'encodings.*'

You can do this by adding a line

options = {"py2exe": {"packages": ["encodings"]}},

to your setup.py file.

That replaces the '--force-imports encodings' command line option from the [http://starship.python.net/crew/theller/py2exe/ 0.4py2exe]

Solution 2

Adding 'encodings', 'encodings.*' to includes includes ALL encodings. I'm perfectly happy with only having latin-1 present (at least for some application, which will only be used in western europe)

so recommended adding

'encodings', 'encodings.latin_1'


EncodingsAgain (last edited 2008-07-08 11:27:44 by localhost)