On 3/27/2009 1:30 PM, Benjamin Wohlwend wrote:
> Hi Giovanni,
>
> On Fri, Mar 27, 2009 at 1:08 PM, Giovanni Bajo <[email protected]> wrote:
>> The attached patch fixes this problem.
>
> wow, that was fast! Thank you! The executable that PyInstaller
> generates works now with your patch, except that, apparently, it
> doesn't pick up the needed JPEG plugin from Qt/PyQt. I also tried the
> workaround from [1]. Is there another way to tell PyInstaller that it
> should include those plugins and where it can find them?
As I said, the problem is that PyInstaller is unable to ask PyQt where
Qt's plugins have been installed.
But you can hack it around: edit hooks/hookutils.py. You'll find this
function in there:
def qt4_plugins_dir():
return exec_statement("from PyQt4.QtCore import QLibraryInfo; print
QLibraryInfo.location(QLibraryInfo.PluginsPath)")
Replace its content with:
return "c:\\your\\path\\to\\Qt\\plugins"
And run Build.py again. PyInstaller should then do its magic automatically.
I hope to have time to fix this in the following days.
--
Giovanni Bajo
Develer S.r.l.
http://www.develer.com
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"PyInstaller" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/PyInstaller?hl=en
-~----------~----~----~----~------~----~------~--~---