[Pythonmac-SIG] py2app, PyQt4, QImage, jpg converter plugin
tangle1 at mindspring.com
tangle1 at mindspring.com
Fri Jun 26 03:55:38 CEST 2009
I have read previous posts on this issue and it is not clear to me if there is a solution. Any help or hints would be greatly appreciated!!
I am using py2app for first time. My script uses PyQt and specifically calls QImage to load jpg images. It works when I run the script from python interpreter.
When run as app built by py2app, the QImage(path to jpg image) returns a null image and 'jpg','jpeg' are not in list returned by QImageReader.supportedImageFormats().
How do I get py2app to build my.app that points to Qt jpg converter plugin?
Here is a copy of setup.py: (I copied from http://www.rkblog.rk.edu.pl/w/p/building-mac-os-x-applications-py2app/)
----------------------------------------------------------------------
from setuptools import setup
APP = ['mvrv.py']
OPTIONS = {'argv_emulation': True, 'includes': ['sip','PyQt4._qt','PyQt4.QtCore','PyQt4.QtGui'],
'excludes':['PyQt4.QtDesigner','PyQt4.QtNetwork','PyQt4.QtOpenGl','PyQt4.QtScript','PyQt4.QtSql','PyQt4.QtTest','PyQt4.QtWebKit','PyQt4.QtXml','PyQt4.phonon']}
setup(
app=APP,
options={'py2app': OPTIONS},
setup_requires=['py2app'],
)
----------------------------------------------------------------------
Originally, I manually installed needed components, then I re-installed using macports. Attached is png that shows 2 windows: top is path to macports install of qt4 and bottom is my original install. When I run python interpreter, everything points to macports install.
Thanks!! Suzanne
-------------- next part --------------
A non-text attachment was scrubbed...
Name: Picture_1.png
Type: image/png
Size: 281997 bytes
Desc: not available
URL: <http://mail.python.org/pipermail/pythonmac-sig/attachments/20090625/5a036548/attachment-0001.png>
More information about the Pythonmac-SIG
mailing list