Hi, 

I have a problem of image formats when i compile my file with PyInstaller

This is a very simple test file for printing all supported image format 
with PySide (with python 2.7 and PySide v1.2.1 on Windows 7)

#!/usr/bin/python
import PySide.QtGui as QtGui
print QtGui.QImageReader.supportedImageFormats()

with this command python test.py, I have :
[PySide.QtCore.QByteArray('bmp'), PySide.QtCore.QByteArray('gif'), 
PySide.QtCore.QByteArray('ico'), PySide.QtCore.QByteArray('jpeg'), 
PySide.QtCore.QByteArray('jpg'), PySide.QtCore.QByteArray('mng'), 
PySide.QtCore.QByteArray('pbm'), PySide.QtCore.QByteArray('pgm'), 
PySide.QtCore.QByteArray('png'), PySide.QtCore.QByteArray('ppm'), 
PySide.QtCore.QByteArray('tga'), PySide.QtCore.QByteArray('tif'), 
PySide.QtCore.QByteArray('tiff'), PySide.QtCore.QByteArray('xbm'), 
PySide.QtCore.QByteArray('xpm')]

I created a spec file for PyInstaller for compiling my test :
# -*- mode: python -*-
includeDll = ['.']
excludesFiles =  []
a = Analysis(['Test.py'], pathex=includeDll, excludes = excludesFiles)
pyz = PYZ(a.pure)
exe = EXE(pyz, a.scripts, a.dependencies, exclude_binaries=1, 
name=os.path.join('dist', 'Test.exe'), debug=True, strip=None, upx=True, 
console=True )
coll = COLLECT(exe, a.binaries, a.zipfiles, a.datas, strip=None, upx=False, 
name=os.path.join('dist', 'Test'))

The EXE file is correctly created and when I launch it, i have :
[PySide.QtCore.QByteArray('bmp'), PySide.QtCore.QByteArray('pbm'), 
PySide.QtCore.QByteArray('pgm'), PySide.QtCore.QByteArray('png'), 
PySide.QtCore.QByteArray('ppm'), PySide.QtCore.QByteArray('xbm'), 
PySide.QtCore.QByteArray('xpm')]

Consequently, I lost gif, ico, jpeg, jpg, mng, tga, tif, and tiff formats.

Any ideas ?

Thanks

Pierre

-- 
You received this message because you are subscribed to the Google Groups 
"PyInstaller" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/pyinstaller.
For more options, visit https://groups.google.com/d/optout.

Reply via email to