On 17/01/15 10:13, David Cortesi wrote:
> I said that under Python 3, pyinstaller made a one-folder bundle of my  PyQt5
> app that failed with the message,
>  
>> This application failed to start because it could not find or load the Qt 
> platform plugin "cocoa".
>  
> Glenn Ramsey said,
> 
>>On my build it looks like this:
>> My.app/Contents/MacOS/qt5_plugins/platforms$ otool -L libqcocoa.dylib...
> 
> at which point I finally twigged to the different directory structure, 
> including
> My.app/Contents.
> 
> You are building a mac app bundle, which I was not, merely a one-folder build.
> 
> So I added the --one-file and --windowed options and ... huh. I still get a
> folder dist/myapp containing a mess of libraries and a "myapp" executable. No
> myapp.app with Contents etc.
> 
> So is the --one-file, --windowed Mac OS app-bundle feature not yet supported 
> for
> Python3? That would explain some of my problem.

Not sure about about the python3 support but to build a Mac bundle you need to
use the BUNDLE command and --onedir mode.

Mine looks like this:

app = BUNDLE(coll,
            name=os.path.join('dist', 'MyApp.app'),
            appname="MyApp",
            version = "0.1"
            )

where coll is the output from the COLLECT command.

Glenn

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