hello, I have just found cxfreeze and managed to compile and install it. I am using python 2.6 on a mandriva 2008.1 box. I need some help converting a simple PyQt4 App to windows and linux executables. According to the manual, all i need to do is
cxfreeze 123.py --target-dir /home/soumen/code/build if my script is called 123.py and i need the executables to be made in the given directory (/home/soumen...) I have 2 questions: 1) If i run that command, im getting the following error [sou...@pc070907090 code]$ cxfreeze 123.py --target-dir /home/soumen/code/build coyping /usr/local/lib/python2.6/site-packages/cx_Freeze/bases/Console -> /home/soumen/code/build/123 Traceback (most recent call last): File "/usr/local/bin/cxfreeze", line 5, in <module> main() File "/usr/local/lib/python2.6/site-packages/cx_Freeze/main.py", line 179, in main freezer.Freeze() File "/usr/local/lib/python2.6/site-packages/cx_Freeze/freezer.py", line 418, in Freeze self._FreezeExecutable(executable) File "/usr/local/lib/python2.6/site-packages/cx_Freeze/freezer.py", line 148, in _FreezeExecutable exe.copyDependentFiles, scriptModule) File "/usr/local/lib/python2.6/site-packages/cx_Freeze/freezer.py", line 342, in _WriteModules initModule = finder.IncludeFile(initScript, "cx_Freeze__init__") File "/usr/local/lib/python2.6/site-packages/cx_Freeze/finder.py", line 423, in IncludeFile deferredImports) File "/usr/local/lib/python2.6/site-packages/cx_Freeze/finder.py", line 289, in _LoadModule module.code = compile(fp.read() + "\n", path, "exec") TypeError: compile() expected string without null bytes How do i get over this? Am i missing some steps? Please Help and also, 2) How do i specify if windows executables are to be built or Linux ones? Or, are both built by default? Regards Soumen ------------------------------------------------------------------------------ Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day trial. Simplify your report design, integration and deployment - and focus on what you do best, core application coding. Discover what's new with Crystal Reports now. http://p.sf.net/sfu/bobj-july _______________________________________________ cx-freeze-users mailing list cx-freeze-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/cx-freeze-users