For reference, I can successfully make PyQt apps with Pyinstaller on Python
2, PyQt 4.10, MacOS 10.9 "Mavericks".

Laurence Anthony

On 26 January 2015 at 00:47, David Cortesi <[email protected]> wrote:

> To recap. PyInstaller makes a nice Mac OS bundle out of PyQt program.
> However for me it won't start because "it could not find or load the Qt
> platform plugin "cocoa"." This Python3, PyQt5.4, MacOS 10.10.1 "Yosemite".
>
> I've read a bit more about "deploying" Qt apps on Mac OS. Supposedly Qt
> looks for its plugins on several paths. One of them is the executable path,
> which ought to be myapp.app/Contents/MacOS. However, copying
> libqcocoa.dylib into MacOS did nothing.
>
> Qt's distro contains the path plugins/platforms/libqcocoa.dylib. So I put
> libqcocoa.dylib in the following places:
>
> my.app/Contents/MacOS/libqcocoa.dylib
> my.app/Contents/MacOS/platforms/libqcocoa.dylib
> my.app/Contents/MacOS/plugins/platforms/libqcocoa.dylib
> my.app/Contents/Resources/libqcocoa.dylib
> my.app/Contents/Resources/platforms/libqcocoa.dylib
> my.app/Contents/Resources/plugins/platforms/libqcocoa.dylib
>
> Nope. Still doesn't find it.
>
> Supposedly it looks where env var QT_PLUGIN_PATH points. I exported that
> with values of "." and of the complete path to MacOS and of the complete
> path to Resources. Nope. Just for laughs I also exported QT_PLUGIN_PATH
> with the value of the Qt distribution folder on this system. Nope.
>
> Qt supposedly looks in the executable's path for a file qt.conf. I made a
> file qt.conf containing
>
>    [Paths]
>    Plugins=.
>
> and put that in MacOS. Nope. Then I put the same file in Resources. Nope.
>
> So that's where it stands now. If I can think of another variation I'll
> try it.
>
> Dave Cortesi
>
>  --
> 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.
>

-- 
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