Apologies for a messed-up report earlier. I had attempted pyinstaller -w myscript.spec, but the spec file was left over from previous runs that did not specify -w. My bad.
When I ran pyinstaller -w -i iconfile.icns myscript.py, a correct Mac OS app folder was created, it even sported the desired icon. So MacOS bundle is in and working for python 3. But when double-clicked, the app failed with SIGABRT. Running from the command line, myscript.app/Contents/MacOS/myscript produces the console message, > This application failed to start because it could not find or load the Qt platform plugin "cocoa". > Reinstalling the application may fix this problem. > Abort trap: 6 "find -name '*oco*'" gets no hits in the .app folder. Searching the files in the build folder, I do not find the string "oco" in any of the files, the warn file or any of the out00-* files. Using otool -L Qt* | grep oco shows that four of the Qt DLLs refer to /System/Library/Frameworks/Cocoa.framework/Versions/A/Cocoa but that should not be a problem. None of the Py*.so files refer to "oco" on this test. Martin asked, > Could you find out if the rthook ./PyInstaller/loader/rthooks/pyi_rth_qt5plugins.py> is bundled with the executable? Yes it is. archive_viewer reports, (1468099, 288, 381, 1, b'm', b'struct'), (1468387, 1192, 2059, 1, b'm', b'pyi_os_path'), (1469579, 4596, 10188, 1, b'm', b'pyi_archive'), (1474175, 4644, 12494, 1, b'm', b'pyi_importers'), (1478819, 2005, 4781, 1, b's', b'_pyi_bootstrap'), (1480824, 706, 1422, 1, b's', b'pyi_rth_qt5plugins'), (1481530, 4323, 13642, 1, b's', b'pyi_carchive'), (1485853, 25707, 82120, 1, b's', b'myscript')] -- 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 pyinstaller+unsubscr...@googlegroups.com. To post to this group, send email to pyinstaller@googlegroups.com. Visit this group at http://groups.google.com/group/pyinstaller. For more options, visit https://groups.google.com/d/optout.