Hello,

I have used cx-freeze to bundle a python project on both Windows and Mac. Everything went smoothly on Windows but on Mac, i get the following error at runtime:

    ImportError: 
dlopen(/Users/thomasdeneux/cx_Freeze-4.3.3/cx_Freeze/samples/PyQt4/build/exe.macosx-10.5-x86_64-2.7/PyQt4.QtGui.so,
 2): Library not loaded: @loader_path/../../../libQtGui.4.dylib
      Referenced from: 
/Users/thomasdeneux/cx_Freeze-4.3.3/cx_Freeze/samples/PyQt4/build/exe.macosx-10.5-x86_64-2.7/PyQt4.QtGui.so
      Reason: image not found

As I see the problem comes from PyQt4 libraries that originally lye in different subfolders but are copied in the "frozen" program all to the same folder. Note that even the example PyQt4 example that comes with cx-freeze does not run properly on OSX.

I posted a more lengthy description on StackOverflow (here <http://stackoverflow.com/questions/31379528/failed-making-a-standalone-python-qt-application-with-cx-freeze-or-py2app-on-m>) that by the way describes some simple modifications that i made in cx-freeze code to have a successfull build. Someone told me he had a similar issue and went over it by using homebrew python distribution instead of anaconda (i use anaconda myself), and Py2App instead of cx-freeze. Before i try this do you confirm i have no chance to go any further with my present settings?

(Sorry, you may notice that i have already asked the same question somewhere in July, and take a second chance at getting an answer :) )

Thank you, and all the best,

Thomas
------------------------------------------------------------------------------
_______________________________________________
cx-freeze-users mailing list
cx-freeze-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/cx-freeze-users

Reply via email to