For the records,

I have changed the option ascii in my setup file to 0 and it worked. Im not sure what that means though..

Leo,,

On Tue, May 4, 2010 at 4:39 AM, Werner F. Bruhin <werner.bruhin@free.fr> wrote:
On 03/05/2010 21:14, Leo germani wrote:
> Hi there,
>
> I have a commandline script which uses optparse and pyexiv2 modules. It
> is working fine through windows command line. But when I generate the
> .exe and run it, it returns one of the following errors:
>
> LookupError: unknown encoding: mbcs
>
> or
>
> LookupError: unknown encoding: cp850
>
> Last week Ive made a very similar script and had no problem at all (it
> was another computer). Wonder if anybody has a clue.
>
> My setup script and my actual scripr are pasted bellow
>
> thanks
>
> Leo,,
>
>
> ==== setup script =====
> from distutils.core import setup
> import py2exe
> import sys
>
> # no arguments
> if len(sys.argv) == 1:
>      sys.argv.append("py2exe")
>      sys.argv.append("-q")
>
> # creates a standalone .exe file, no zip files
> setup( options = {"py2exe": {"compressed": 1, "optimize": 2, "ascii": 1,
> "bundle_files": 1}},
bundle_files=1 has been known to cause strange errors, but I think it is
your ascii=1 setting

You might want to look at Andrea's Gui2Exe tool, it has tool tips for
all the py2exe options, which are very handy.

Werner


------------------------------------------------------------------------------
_______________________________________________
Py2exe-users mailing list
Py2exe-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/py2exe-users



--
leogermani.pirex.com.br
leogermani.estudiolivre.org