Hi, I just tried your command it worked fine for me. The only thing I can suggest is that you have a space in your command line when you execute? That would give you the error you indicated.
The other possibility is to create a setup.py (see the samples included with 4.0.1) and then you need not remember/type the command line every time you want to build. Anthony On Tue, Mar 10, 2009 at 10:15 AM, Ian Peters-Campbell <[email protected]> wrote: > Hey all, > > I am trying to package up a script using cx_Freeze and running into a > problem. What I am trying to do is the following: > > c:\Python25\Scripts\cxfreeze > --include-modules=encodings.ascii,encodings.utf_8 -O MyScript.py > > Unfortunately cxfreeze exits with a usage message and an error stating: > cxfreeze: error: only one script can be specified > > If I remove encodings.utf_8 from the include-modules list compilation works > as expected but during execution I run into the problem of not having the > utf-8 module. > > This is happening with Python 2.5.1 and cxfreeze 4.0.1 on Windows Server > 2003 R2 SP2 > > Can anyone tell me what I need to change in my call to get this working > correctly? > > Thanks much > Ian > > > ------------------------------------------------------------------------------ > > _______________________________________________ > cx-freeze-users mailing list > [email protected] > https://lists.sourceforge.net/lists/listinfo/cx-freeze-users > > ------------------------------------------------------------------------------ _______________________________________________ cx-freeze-users mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/cx-freeze-users
