New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

QT 5.9 Py3.6 OSX application does not start #3211

Closed
johaven opened this Issue Jan 13, 2018 · 3 comments

Comments

Projects
None yet
3 participants
@johaven

johaven commented Jan 13, 2018

Hello,
i tried 3.2, 3.2.1, 3.3, 3.3.1, the last dev and when build is working the app does not start ....
It worked with Python 2.7 on 3.2.1.

Python 3.6.1 (v3.6.1:69c0db5050, Mar 21 2017, 01:21:04)
[GCC 4.2.1 (Apple Inc. build 5666) (dot 3)] on darwin
OSX 10.12.6
QT 5.9.2 (compiled from source)

43 INFO: PyInstaller: 3.4.dev0+ab8fd9753
43 INFO: Python: 3.6.1
49 INFO: Platform: Darwin-16.7.0-x86_64-i386-64bit
52 INFO: UPX is not available.
53 INFO: checking Tree
54 INFO: checking Tree
55 INFO: Extending PYTHONPATH with paths
['/private/tmp/App']
55 INFO: checking Analysis
55 INFO: Building Analysis because out00-Analysis.toc is non existent
55 INFO: Initializing module dependency graph...
56 INFO: Initializing module graph hooks...
57 INFO: Analyzing base_library.zip ...
2810 INFO: running Analysis out00-Analysis.toc
2818 INFO: Caching module hooks...
2821 INFO: Analyzing app.py
3379 INFO: Processing pre-safe import module hook   urllib3.packages.six.moves
5019 INFO: Processing pre-find module path hook   distutils
5019 INFO: distutils: retargeting to non-venv dir '/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/distutils'
6035 INFO: Loading module hooks...
6035 INFO: Loading module hook "hook-certifi.py"...
6036 INFO: Loading module hook "hook-distutils.py"...
6036 INFO: Loading module hook "hook-encodings.py"...
6094 INFO: Loading module hook "hook-lib2to3.py"...
6096 INFO: Loading module hook "hook-pkg_resources.py"...
6317 INFO: Processing pre-safe import module hook   win32com
6488 INFO: Loading module hook "hook-pydoc.py"...
6488 INFO: Loading module hook "hook-PyQt5.py"...
6535 INFO: Loading module hook "hook-PyQt5.Qt.py"...
6536 INFO: Loading module hook "hook-PyQt5.QtCore.py"...
6589 INFO: Loading module hook "hook-PyQt5.QtGui.py"...
6928 INFO: Loading module hook "hook-PyQt5.QtPrintSupport.py"...
6983 INFO: Loading module hook "hook-PyQt5.QtWidgets.py"...
6984 INFO: Loading module hook "hook-qtawesome.py"...
6985 INFO: Loading module hook "hook-requests.py"...
6985 INFO: Loading module hook "hook-sqlite3.py"...
7044 INFO: Loading module hook "hook-sysconfig.py"...
7052 INFO: Loading module hook "hook-xml.etree.cElementTree.py"...
7053 INFO: Loading module hook "hook-xml.py"...
7130 INFO: Looking for ctypes DLLs
7152 INFO: Analyzing run-time hooks ...
7157 INFO: Including run-time hook 'pyi_rth_pkgres.py'
7159 INFO: Including run-time hook 'pyi_rth_multiprocessing.py'
7163 INFO: Including run-time hook 'pyi_rth_qt5.py'
7175 INFO: Looking for dynamic libraries
7406 INFO: Looking for eggs
7406 INFO: Using Python library /Users/johaven/.virtualenvs/app2/bin/../.Python
7410 INFO: Warnings written to /private/tmp/App/build/testing/warntesting.txt
7460 INFO: Graph cross-reference written to /private/tmp/App/build/testing/xref-testing.html
7477 INFO: Appending 'binaries' from .spec
7477 INFO: Appending 'datas' from .spec
7484 INFO: checking PYZ
7484 INFO: Building PYZ because out00-PYZ.toc is non existent
7484 INFO: Building PYZ (ZlibArchive) /private/tmp/App/build/testing/out00-PYZ.pyz
8097 INFO: Building PYZ (ZlibArchive) /private/tmp/App/build/testing/out00-PYZ.pyz completed successfully.
8109 INFO: checking PKG
8110 INFO: Building PKG because out00-PKG.toc is non existent
8110 INFO: Building PKG (CArchive) out00-PKG.pkg
19502 INFO: Building PKG (CArchive) out00-PKG.pkg completed successfully.
19509 INFO: Bootloader /Users/johaven/.virtualenvs/app2/lib/python3.6/site-packages/PyInstaller/bootloader/Darwin-64bit/runw
19509 INFO: checking EXE
19509 INFO: Building EXE because out00-EXE.toc is non existent
19509 INFO: Building EXE from out00-EXE.toc
19509 INFO: Appending archive to EXE /private/tmp/App/dist/Sync-in
19528 INFO: Fixing EXE for code signing /private/tmp/App/dist/Sync-in
19531 INFO: Building EXE from out00-EXE.toc completed successfully.
19537 INFO: checking BUNDLE
19537 INFO: Building BUNDLE because out00-BUNDLE.toc is non existent
19537 INFO: Building BUNDLE out00-BUNDLE.toc
19568 INFO: moving BUNDLE data files to Resource directory

When starting:

objc[5755]: Class RunLoopModeTracker is implemented in both /var/folders/2n/7x1m7btn0nbf4nk31qgg3_n00000gn/T/_MEIlrpUMi/QtCore (0x10f11ffe0) and /Users/johaven/Qt/5.9.2/clang_64/lib/QtCore.framework/Versions/5/QtCore (0x112ff3fe0). One of the two will be used. Which one is undefined.
objc[5755]: Class NotificationReceiver is implemented in both /var/folders/2n/7x1m7btn0nbf4nk31qgg3_n00000gn/T/_MEIlrpUMi/QtWidgets (0x110395218) and /Users/johaven/Qt/5.9.2/clang_64/lib/QtWidgets.framework/Versions/5/QtWidgets (0x113576218). One of the two will be used. Which one is undefined.
objc[5755]: Class QCocoaPageLayoutDelegate is implemented in both /var/folders/2n/7x1m7btn0nbf4nk31qgg3_n00000gn/T/_MEIlrpUMi/QtPrintSupport (0x1105b0ef0) and /Users/johaven/Qt/5.9.2/clang_64/lib/QtPrintSupport.framework/Versions/5/QtPrintSupport (0x1130c5ef0). One of the two will be used. Which one is undefined.
objc[5755]: Class QCocoaPrintPanelDelegate is implemented in both /var/folders/2n/7x1m7btn0nbf4nk31qgg3_n00000gn/T/_MEIlrpUMi/QtPrintSupport (0x1105b0f40) and /Users/johaven/Qt/5.9.2/clang_64/lib/QtPrintSupport.framework/Versions/5/QtPrintSupport (0x1130c5f40). One of the two will be used. Which one is undefined.
QObject::moveToThread: Current thread (0x7feb8fb540a0) is not the object's thread (0x7feb8ee5ae90).
Cannot move to target thread (0x7feb8fb540a0)

You might be loading two sets of Qt binaries into the same process. Check that all plugins are compiled against the right Qt binaries. Export DYLD_PRINT_LIBRARIES=1 and check that only one set of binaries are being loaded.
This application failed to start because it could not find or load the Qt platform plugin "cocoa"
in "".

Available platform plugins are: cocoa, minimal, offscreen.

Reinstalling the application may fix this problem.
Abort trap: 6
@johaven

This comment has been minimized.

johaven commented Jan 13, 2018

I think it is related to: #3175

@johaven

This comment has been minimized.

johaven commented Jan 13, 2018

Seems to work fine with PyQt 5.9.2 from pip but not from compiled version

@bjones1

This comment has been minimized.

Member

bjones1 commented Jan 31, 2018

I'm closing this, since #3233 should fix it -- see the instructions there.

@bjones1 bjones1 closed this Jan 31, 2018

@htgoebel htgoebel added this to the PyInstaller 3.4 milestone Sep 2, 2018

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment