Hi, I am having a problem generating binaries on Solaris 8 using ActivePython 2.5.4 and cxFreeze 4.1... I was under the impression that it may be related to Eric's fix because cxfreeze is looking for a file called ' /usr/lib/64/libresolv.so.2' and not finding it when generating the frozen binaries. The file is clearly there, minus the leading blanks...
cxfreeze emme2notify --install-dir=dist-cx41py25-st7 Traceback (most recent call last): File "/usr/local/python25/bin/cxfreeze", line 5, in <module> main() File "/usr/local/python25/lib/python2.5/site-packages/cx_Freeze/main.py", line 179, in main freezer.Freeze() File "/usr/local/python25/lib/python2.5/site-packages/cx_Freeze/freezer.py", line 418, in Freeze self._FreezeExecutable(executable) File "/usr/local/python25/lib/python2.5/site-packages/cx_Freeze/freezer.py", line 123, in _FreezeExecutable scriptModule = finder.IncludeFile(exe.script, exe.moduleName) File "/usr/local/python25/lib/python2.5/site-packages/cx_Freeze/finder.py", line 422, in IncludeFile module = self._LoadModule(moduleName, open(path, "U"), path, info, IOError: [Errno 2] No such file or directory: 'emme2notify' inro20:/compil/Emme/Python_tools/trunk/src# cxfreeze emme2notify.py --install-dir=dist-cx41py25-st7 creating directory dist-cx41py25-st7 coyping /usr/local/python25/lib/python2.5/site-packages/cx_Freeze/bases/Console -> dist-cx41py25-st7/emme2notify coyping /usr/lib/64/libresolv.so.2 -> dist-cx41py25-st7/libresolv.so.2 Traceback (most recent call last): File "/usr/local/python25/bin/cxfreeze", line 5, in <module> main() File "/usr/local/python25/lib/python2.5/site-packages/cx_Freeze/main.py", line 179, in main freezer.Freeze() File "/usr/local/python25/lib/python2.5/site-packages/cx_Freeze/freezer.py", line 418, in Freeze self._FreezeExecutable(executable) File "/usr/local/python25/lib/python2.5/site-packages/cx_Freeze/freezer.py", line 125, in _FreezeExecutable includeMode = True) File "/usr/local/python25/lib/python2.5/site-packages/cx_Freeze/freezer.py", line 107, in _CopyFile self._CopyFile(source, target, copyDependentFiles) File "/usr/local/python25/lib/python2.5/site-packages/cx_Freeze/freezer.py", line 100, in _CopyFile shutil.copyfile(source, target) File "/usr/local/python25/lib/python2.5/shutil.py", line 51, in copyfile fsrc = open(src, 'rb') IOError: [Errno 2] No such file or directory: ' /usr/lib/64/libresolv.so.2' I have also tried cxfreeze 4.0.1 but am getting an error at runtime using the same python and Solaris: "unknown encoding: string-escape" Any help would be appreciated. Regards, Chris > Re: [cx-freeze-users] cx_freeze not working on Solaris (problem & > solution) > > Anthony Tuininga > Wed, 21 Jan 2009 12:16:48 -0800 > > Eric, > > Thanks for the report and the solution. I've checked it into > Subversion so it will be included in the next release. > > As for reports, this works as well as anything else. There is a > SourceForge tracker that you could use as well but I'm fine with this, > too. For anything more complex than the one line change I prefer the > output from svn diff (or diff -u). Thanks again. > > Anthony > > On Wed, Jan 21, 2009 at 9:17 AM, Eric Brunel > <eric.bru...@pragmadev.com> wrote: > > Hello all, > > > > I tried cx_freeze on a Solaris box and it didn't work because some > > library dependencies weren't spotted. I investigated a bit and found > > out the 'ldd' command on Solaris outputs the dependency list with a > > tab after the '=>'. So the line.strip().split(" => ") in > > Freezer._GetDependentFiles (module freezer.py, line 200 in version > > 4.0.1) doesn't work and the wrong library dependencies are returned. > > > > Apparently, replacing this line by: > > parts = line.expandtabs().strip().split(" => ") > > seemed to solve the problem for me. > > > > Just thought it would be nice to include this in the next version. I > > didn't find a more "official" way to report bugs than this list. If > > there is, please tell me: I'll be glad to do it. > > > > Thanks! > > -- > > - Eric Brunel ------------------------------------------------------------------------------ Come build with us! The BlackBerry® Developer Conference in SF, CA is the only developer event you need to attend this year. Jumpstart your developing skills, take BlackBerry mobile applications to market and stay ahead of the curve. Join us from November 9-12, 2009. Register now! http://p.sf.net/sfu/devconf _______________________________________________ cx-freeze-users mailing list cx-freeze-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/cx-freeze-users