1. Anthony Tuininga
  2. cx_Freeze
  3. Issues
Issue #5 resolved

Packaging fails on Mac when using PyQt

Santiago Reig
created an issue

When packaging an application that uses PyQt on Mac, the cx_Freeze building process fails to complete:

Lions-Mac:Platex User$ sudo /Library/Frameworks/Python.framework/Versions/Current/bin/python setup.py bdist_dmg

..... (full log at http://pastebin.com/166Umc4T )

copying Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/PyQt4/Qt.so -> build/exe.macosx-10.6-intel-2.7/PyQt4.Qt.so copying /Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/PyQt4/QtCore.so -> build/exe.macosx-10.6-intel-2.7/PyQt4.QtCore.so copying QtCore.framework/Versions/4/QtCore -> build/exe.macosx-10.6-intel-2.7/QtCore error: QtCore.framework/Versions/4/QtCore: No such file or directory

I think it fails because it tries to get the file from QtCore.framework/Versions/4/QtCore when it should be /Library/Frameworks/QtCore.framework/Versions/4/QtCore

Comments (2)

  1. Thomas Kluyver

    Discussion on the mailing list found that it seems to work if Qt is built as a library, but not if it is built as a framework. Macports builds it as a library by default.

  2. Log in to comment