@
fyl00 #10
$sudo pyinstaller -F -c --debug
main.py125 INFO: PyInstaller: 3.4.dev0+133d18156
125 INFO: Python: 3.6.2
136 INFO: Platform: Darwin-17.0.0-x86_64-i386-64bit
138 INFO: wrote /Users/goodryb/PycharmProjects/aliyunUI/src/main.spec
149 INFO: UPX is available.
151 INFO: Extending PYTHONPATH with paths
['/Users/goodryb/PycharmProjects/aliyunUI/src',
'/Users/goodryb/PycharmProjects/aliyunUI/src']
151 INFO: checking Analysis
152 INFO: Building Analysis because out00-Analysis.toc is non existent
152 INFO: Initializing module dependency graph...
155 INFO: Initializing module graph hooks...
157 INFO: Analyzing base_library.zip ...
5699 INFO: running Analysis out00-Analysis.toc
5712 INFO: Caching module hooks...
5720 INFO: Analyzing /Users/goodryb/PycharmProjects/aliyunUI/src/
main.py6276 INFO: Processing pre-safe import module hook urllib3.packages.six.moves
9115 INFO: Loading module hooks...
9115 INFO: Loading module hook "
hook-requests.py"...
9117 INFO: Loading module hook "
hook-PyQt5.py"...
9280 INFO: Loading module hook "
hook-xml.etree.cElementTree.py"...
9282 INFO: Loading module hook "
hook-encodings.py"...
9407 INFO: Loading module hook "
hook-PyQt5.Qt.py"...
9414 INFO: Loading module hook "
hook-certifi.py"...
9417 INFO: Loading module hook "
hook-PyQt5.QtWidgets.py"...
9419 INFO: Loading module hook "
hook-xml.py"...
9519 INFO: Loading module hook "
hook-pydoc.py"...
9520 INFO: Loading module hook "
hook-PyQt5.QtCore.py"...
9677 INFO: Loading module hook "
hook-PyQt5.QtGui.py"...
10381 INFO: Loading module hook "
hook-PyQt5.QtPrintSupport.py"...
10537 INFO: Looking for ctypes DLLs
10547 INFO: Analyzing run-time hooks ...
10552 INFO: Including run-time hook '
pyi_rth_qt5.py'
10572 INFO: Looking for dynamic libraries
11050 INFO: Looking for eggs
11050 INFO: Using Python library /usr/local/Cellar/python3/3.6.2/Frameworks/Python.framework/Versions/3.6/Python
11056 INFO: Warnings written to /Users/goodryb/PycharmProjects/aliyunUI/src/build/main/warnmain.txt
11119 INFO: Graph cross-reference written to /Users/goodryb/PycharmProjects/aliyunUI/src/build/main/xref-main.html
11144 INFO: checking PYZ
11145 INFO: Building PYZ because out00-PYZ.toc is non existent
11145 INFO: Building PYZ (ZlibArchive) /Users/goodryb/PycharmProjects/aliyunUI/src/build/main/out00-PYZ.pyz
11882 INFO: Building PYZ (ZlibArchive) /Users/goodryb/PycharmProjects/aliyunUI/src/build/main/out00-PYZ.pyz completed successfully.
11898 INFO: checking PKG
11899 INFO: Building PKG because out00-PKG.toc is non existent
11899 INFO: Building PKG (CArchive) out00-PKG.pkg
23726 INFO: Building PKG (CArchive) out00-PKG.pkg completed successfully.
23734 INFO: Bootloader /usr/local/lib/python3.6/site-packages/PyInstaller/bootloader/Darwin-64bit/run_d
23734 INFO: checking EXE
23734 INFO: Building EXE because out00-EXE.toc is non existent
23734 INFO: Building EXE from out00-EXE.toc
23735 INFO: Appending archive to EXE /Users/goodryb/PycharmProjects/aliyunUI/src/dist/main
23793 INFO: Fixing EXE for code signing /Users/goodryb/PycharmProjects/aliyunUI/src/dist/main
23804 INFO: Building EXE from out00-EXE.toc completed successfully.
单文件打开的时候
$./main
[97057] PyInstaller Bootloader 3.x
[97057] LOADER: executable is /Users/goodryb/PycharmProjects/aliyunUI/src/dist/main
[97057] LOADER: homepath is /Users/goodryb/PycharmProjects/aliyunUI/src/dist
[97057] LOADER: _MEIPASS2 is NULL
[97057] LOADER: archivename is /Users/goodryb/PycharmProjects/aliyunUI/src/dist/main
[97057] LOADER: Extracting binaries
[97057] LOADER: Executing self as child
[97057] LOADER: set _MEIPASS2 to /var/folders/ks/5f8mgk0s18v3vvtm6fcwjrvr0000gn/T/_MEIFM9gJa
[97058] PyInstaller Bootloader 3.x
[97058] LOADER: executable is /Users/goodryb/PycharmProjects/aliyunUI/src/dist/main
[97058] LOADER: homepath is /Users/goodryb/PycharmProjects/aliyunUI/src/dist
[97058] LOADER: _MEIPASS2 is /var/folders/ks/5f8mgk0s18v3vvtm6fcwjrvr0000gn/T/_MEIFM9gJa
[97058] LOADER: archivename is /Users/goodryb/PycharmProjects/aliyunUI/src/dist/main
[97058] LOADER: Already in the child - running user's code.
[97058] LOADER: Python library: /var/folders/ks/5f8mgk0s18v3vvtm6fcwjrvr0000gn/T/_MEIFM9gJa/Python
[97058] LOADER: Loaded functions from Python library.
[97058] LOADER: Manipulating environment (sys.path, sys.prefix)
[97058] LOADER: Pre-init sys.path is /var/folders/ks/5f8mgk0s18v3vvtm6fcwjrvr0000gn/T/_MEIFM9gJa/base_library.zip:/var/folders/ks/5f8mgk0s18v3vvtm6fcwjrvr0000gn/T/_MEIFM9gJa
[97058] LOADER: sys.prefix is /var/folders/ks/5f8mgk0s18v3vvtm6fcwjrvr0000gn/T/_MEIFM9gJa
[97058] LOADER: Setting runtime options
[97058] LOADER: Initializing python
[97058] LOADER: Overriding Python's sys.path
[97058] LOADER: Post-init sys.path is /var/folders/ks/5f8mgk0s18v3vvtm6fcwjrvr0000gn/T/_MEIFM9gJa/base_library.zip:/var/folders/ks/5f8mgk0s18v3vvtm6fcwjrvr0000gn/T/_MEIFM9gJa
[97058] LOADER: Setting sys.argv
[97058] LOADER: setting sys._MEIPASS
[97058] LOADER: importing modules from CArchive
[97058] LOADER: extracted struct
[97058] LOADER: callfunction returned...
[97058] LOADER: extracted pyimod01_os_path
[97058] LOADER: callfunction returned...
[97058] LOADER: extracted pyimod02_archive
[97058] LOADER: callfunction returned...
[97058] LOADER: extracted pyimod03_importers
[97058] LOADER: callfunction returned...
[97058] LOADER: Installing PYZ archive with Python modules.
[97058] LOADER: PYZ archive: out00-PYZ.pyz
[97058] LOADER: Running
pyiboot01_bootstrap.py[97058] LOADER: Running
pyi_rth_qt5.py[97058] LOADER: Running
main.pyobjc[97058]: Class RunLoopModeTracker is implemented in both /var/folders/ks/5f8mgk0s18v3vvtm6fcwjrvr0000gn/T/_MEIFM9gJa/QtCore (0x10de2a010) and /usr/local/Cellar/qt/5.9.1/lib/QtCore.framework/Versions/5/QtCore (0x112cdf010). One of the two will be used. Which one is undefined.
objc[97058]: Class NotificationReceiver is implemented in both /var/folders/ks/5f8mgk0s18v3vvtm6fcwjrvr0000gn/T/_MEIFM9gJa/QtWidgets (0x10f153218) and /usr/local/Cellar/qt/5.9.1/lib/QtWidgets.framework/Versions/5/QtWidgets (0x1131f7218). One of the two will be used. Which one is undefined.
objc[97058]: Class QCocoaPageLayoutDelegate is implemented in both /var/folders/ks/5f8mgk0s18v3vvtm6fcwjrvr0000gn/T/_MEIFM9gJa/QtPrintSupport (0x10f372ef0) and /usr/local/Cellar/qt/5.9.1/lib/QtPrintSupport.framework/Versions/5/QtPrintSupport (0x10ff4fef0). One of the two will be used. Which one is undefined.
objc[97058]: Class QCocoaPrintPanelDelegate is implemented in both /var/folders/ks/5f8mgk0s18v3vvtm6fcwjrvr0000gn/T/_MEIFM9gJa/QtPrintSupport (0x10f372f40) and /usr/local/Cellar/qt/5.9.1/lib/QtPrintSupport.framework/Versions/5/QtPrintSupport (0x10ff4ff40). One of the two will be used. Which one is undefined.
QObject::moveToThread: Current thread (0x7ffd8270ba70) is not the object's thread (0x7ffd824e26a0).
Cannot move to target thread (0x7ffd8270ba70)
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.
[1] 97057 abort ./main