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
MAC系统11.1无法打开软件 #87
Comments
我的Mac是 Catalina(10.15.7)的,生产环境,暂时不打算升级 big sur。 # 下载源码
git clone --depth=1 https://github.com/rachpt/lanzou-gui.git lanzou-gui
cd lanzou-gui
# 最小化安装
rm lanzou/login_assister.py
sed -i 's/True/False/' lanzou/__init__.py
# 安装依赖
pip3 install --user PyQt5 requests requests_toolbelt browser_cookie3 pyinstaller
# 打包
pyinstaller ./build_app.spec
cd dist
# 运行软件
open lanzou-gui.app |
pyinstaller和pyqt5打包后依旧无法使用。 268 INFO: PyInstaller: 5.0.dev0
268 INFO: Python: 3.7.9 (conda)
285 INFO: Platform: Darwin-20.2.0-x86_64-i386-64bit
289 INFO: UPX is not available.
291 INFO: Extending PYTHONPATH with paths
['/Users/yangyu/Documents/GitHub/lanzou-gui',
'/Users/yangyu/Documents/GitHub/lanzou-gui']
309 INFO: checking Analysis
309 INFO: Building Analysis because Analysis-00.toc is non existent
309 INFO: Initializing module dependency graph...
314 INFO: Caching module graph hooks...
336 WARNING: Several hooks defined for module 'win32ctypes.core'. Please take care they do not conflict.
358 INFO: Analyzing base_library.zip ...
2551 INFO: Processing pre-find module path hook distutils from '/Users/yangyu/anaconda3/envs/buildd/lib/python3.7/site-packages/pyinstaller-5.0.dev0-py3.7.egg/PyInstaller/hooks/pre_find_module_path/hook-distutils.py'.
2555 INFO: distutils: retargeting to non-venv dir '/Users/yangyu/anaconda3/envs/buildd/lib/python3.7'
3876 INFO: Caching module dependency graph...
4003 INFO: running Analysis Analysis-00.toc
4015 INFO: Analyzing main.py
4287 INFO: Processing pre-safe import module hook urllib3.packages.six.moves from '/Users/yangyu/anaconda3/envs/buildd/lib/python3.7/site-packages/pyinstaller-5.0.dev0-py3.7.egg/PyInstaller/hooks/pre_safe_import_module/hook-urllib3.packages.six.moves.py'.
5727 INFO: Processing pre-safe import module hook six.moves from '/Users/yangyu/anaconda3/envs/buildd/lib/python3.7/site-packages/pyinstaller-5.0.dev0-py3.7.egg/PyInstaller/hooks/pre_safe_import_module/hook-six.moves.py'.
10889 INFO: Processing pre-find module path hook site from '/Users/yangyu/anaconda3/envs/buildd/lib/python3.7/site-packages/pyinstaller-5.0.dev0-py3.7.egg/PyInstaller/hooks/pre_find_module_path/hook-site.py'.
10891 INFO: site: retargeting to fake-dir '/Users/yangyu/anaconda3/envs/buildd/lib/python3.7/site-packages/pyinstaller-5.0.dev0-py3.7.egg/PyInstaller/fake-modules'
12428 INFO: Processing module hooks...
12428 INFO: Loading module hook 'hook-cryptography.py' from '/Users/yangyu/anaconda3/envs/buildd/lib/python3.7/site-packages/_pyinstaller_hooks_contrib/hooks/stdhooks'...
12817 INFO: Loading module hook 'hook-pycparser.py' from '/Users/yangyu/anaconda3/envs/buildd/lib/python3.7/site-packages/_pyinstaller_hooks_contrib/hooks/stdhooks'...
12820 INFO: Loading module hook 'hook-certifi.py' from '/Users/yangyu/anaconda3/envs/buildd/lib/python3.7/site-packages/_pyinstaller_hooks_contrib/hooks/stdhooks'...
12828 INFO: Loading module hook 'hook-Crypto.py' from '/Users/yangyu/anaconda3/envs/buildd/lib/python3.7/site-packages/_pyinstaller_hooks_contrib/hooks/stdhooks'...
12844 INFO: Loading module hook 'hook-lz4.py' from '/Users/yangyu/anaconda3/envs/buildd/lib/python3.7/site-packages/_pyinstaller_hooks_contrib/hooks/stdhooks'...
12850 INFO: Loading module hook 'hook-sqlite3.py' from '/Users/yangyu/anaconda3/envs/buildd/lib/python3.7/site-packages/pyinstaller-5.0.dev0-py3.7.egg/PyInstaller/hooks'...
12942 INFO: Loading module hook 'hook-pkg_resources.py' from '/Users/yangyu/anaconda3/envs/buildd/lib/python3.7/site-packages/pyinstaller-5.0.dev0-py3.7.egg/PyInstaller/hooks'...
13411 INFO: Processing pre-safe import module hook win32com from '/Users/yangyu/anaconda3/envs/buildd/lib/python3.7/site-packages/_pyinstaller_hooks_contrib/hooks/pre_safe_import_module/hook-win32com.py'.
13703 WARNING: Hidden import "pkg_resources.py2_warn" not found!
13703 WARNING: Hidden import "pkg_resources.markers" not found!
13708 INFO: Excluding import of __main__ from module pkg_resources
13709 INFO: Loading module hook 'hook-PyQt5.py' from '/Users/yangyu/anaconda3/envs/buildd/lib/python3.7/site-packages/pyinstaller-5.0.dev0-py3.7.egg/PyInstaller/hooks'...
13957 WARNING: Hidden import "sip" not found!
13959 INFO: Loading module hook 'hook-xml.etree.cElementTree.py' from '/Users/yangyu/anaconda3/envs/buildd/lib/python3.7/site-packages/pyinstaller-5.0.dev0-py3.7.egg/PyInstaller/hooks'...
13962 INFO: Loading module hook 'hook-lib2to3.py' from '/Users/yangyu/anaconda3/envs/buildd/lib/python3.7/site-packages/pyinstaller-5.0.dev0-py3.7.egg/PyInstaller/hooks'...
14046 INFO: Loading module hook 'hook-_tkinter.py' from '/Users/yangyu/anaconda3/envs/buildd/lib/python3.7/site-packages/pyinstaller-5.0.dev0-py3.7.egg/PyInstaller/hooks'...
14246 INFO: checking Tree
14246 INFO: Building Tree because Tree-00.toc is non existent
14246 INFO: Building Tree Tree-00.toc
14278 INFO: checking Tree
14278 INFO: Building Tree because Tree-01.toc is non existent
14278 INFO: Building Tree Tree-01.toc
14403 INFO: checking Tree
14403 INFO: Building Tree because Tree-02.toc is non existent
14403 INFO: Building Tree Tree-02.toc
14408 INFO: Loading module hook 'hook-encodings.py' from '/Users/yangyu/anaconda3/envs/buildd/lib/python3.7/site-packages/pyinstaller-5.0.dev0-py3.7.egg/PyInstaller/hooks'...
14521 INFO: Loading module hook 'hook-distutils.util.py' from '/Users/yangyu/anaconda3/envs/buildd/lib/python3.7/site-packages/pyinstaller-5.0.dev0-py3.7.egg/PyInstaller/hooks'...
14528 INFO: Excluding import of lib2to3.refactor from module distutils.util
14529 INFO: Loading module hook 'hook-keyring.py' from '/Users/yangyu/anaconda3/envs/buildd/lib/python3.7/site-packages/pyinstaller-5.0.dev0-py3.7.egg/PyInstaller/hooks'...
14786 INFO: Loading module hook 'hook-setuptools.py' from '/Users/yangyu/anaconda3/envs/buildd/lib/python3.7/site-packages/pyinstaller-5.0.dev0-py3.7.egg/PyInstaller/hooks'...
15644 INFO: Import to be excluded not found: 'setuptools.py27compat'
15645 INFO: Import to be excluded not found: 'setuptools.py33compat'
15646 INFO: Loading module hook 'hook-PyQt5.QtGui.py' from '/Users/yangyu/anaconda3/envs/buildd/lib/python3.7/site-packages/pyinstaller-5.0.dev0-py3.7.egg/PyInstaller/hooks'...
15757 INFO: Loading module hook 'hook-pickle.py' from '/Users/yangyu/anaconda3/envs/buildd/lib/python3.7/site-packages/pyinstaller-5.0.dev0-py3.7.egg/PyInstaller/hooks'...
15762 INFO: Excluding import of argparse from module pickle
15762 INFO: Loading module hook 'hook-importlib_metadata.py' from '/Users/yangyu/anaconda3/envs/buildd/lib/python3.7/site-packages/pyinstaller-5.0.dev0-py3.7.egg/PyInstaller/hooks'...
15766 INFO: Loading module hook 'hook-heapq.py' from '/Users/yangyu/anaconda3/envs/buildd/lib/python3.7/site-packages/pyinstaller-5.0.dev0-py3.7.egg/PyInstaller/hooks'...
15777 INFO: Excluding import of doctest from module heapq
15780 INFO: Loading module hook 'hook-difflib.py' from '/Users/yangyu/anaconda3/envs/buildd/lib/python3.7/site-packages/pyinstaller-5.0.dev0-py3.7.egg/PyInstaller/hooks'...
15785 INFO: Excluding import of doctest from module difflib
15785 INFO: Loading module hook 'hook-PyQt5.QtWidgets.py' from '/Users/yangyu/anaconda3/envs/buildd/lib/python3.7/site-packages/pyinstaller-5.0.dev0-py3.7.egg/PyInstaller/hooks'...
15893 INFO: Loading module hook 'hook-multiprocessing.util.py' from '/Users/yangyu/anaconda3/envs/buildd/lib/python3.7/site-packages/pyinstaller-5.0.dev0-py3.7.egg/PyInstaller/hooks'...
15896 INFO: Excluding import of test.support from module multiprocessing.util
15896 INFO: Excluding import of test from module multiprocessing.util
15896 INFO: Loading module hook 'hook-sysconfig.py' from '/Users/yangyu/anaconda3/envs/buildd/lib/python3.7/site-packages/pyinstaller-5.0.dev0-py3.7.egg/PyInstaller/hooks'...
15917 INFO: Loading module hook 'hook-xml.py' from '/Users/yangyu/anaconda3/envs/buildd/lib/python3.7/site-packages/pyinstaller-5.0.dev0-py3.7.egg/PyInstaller/hooks'...
16062 INFO: Loading module hook 'hook-distutils.py' from '/Users/yangyu/anaconda3/envs/buildd/lib/python3.7/site-packages/pyinstaller-5.0.dev0-py3.7.egg/PyInstaller/hooks'...
16064 INFO: Loading module hook 'hook-PyQt5.QtCore.py' from '/Users/yangyu/anaconda3/envs/buildd/lib/python3.7/site-packages/pyinstaller-5.0.dev0-py3.7.egg/PyInstaller/hooks'...
16090 INFO: Loading module hook 'hook-setuptools.msvc.py' from '/Users/yangyu/anaconda3/envs/buildd/lib/python3.7/site-packages/pyinstaller-5.0.dev0-py3.7.egg/PyInstaller/hooks'...
16094 INFO: Excluding import of numpy from module setuptools.msvc
16140 INFO: checking Tree
16140 INFO: Building Tree because Tree-03.toc is non existent
16140 INFO: Building Tree Tree-03.toc
16149 INFO: Looking for ctypes DLLs
16277 INFO: Analyzing run-time hooks ...
16290 INFO: Including run-time hook '/Users/yangyu/anaconda3/envs/buildd/lib/python3.7/site-packages/pyinstaller-5.0.dev0-py3.7.egg/PyInstaller/hooks/rthooks/pyi_rth_multiprocessing.py'
16295 INFO: Including run-time hook '/Users/yangyu/anaconda3/envs/buildd/lib/python3.7/site-packages/pyinstaller-5.0.dev0-py3.7.egg/PyInstaller/hooks/rthooks/pyi_rth_pkgres.py'
16297 INFO: Including run-time hook '/Users/yangyu/anaconda3/envs/buildd/lib/python3.7/site-packages/_pyinstaller_hooks_contrib/hooks/rthooks/pyi_rth_certifi.py'
16299 INFO: Including run-time hook '/Users/yangyu/anaconda3/envs/buildd/lib/python3.7/site-packages/pyinstaller-5.0.dev0-py3.7.egg/PyInstaller/hooks/rthooks/pyi_rth_pyqt5.py'
16332 INFO: Looking for dynamic libraries
17066 INFO: Looking for eggs
17066 INFO: Python library not in binary dependencies. Doing additional searching...
17080 INFO: Using Python library /Users/yangyu/anaconda3/envs/buildd/lib/libpython3.7m.dylib
17089 INFO: Warnings written to /Users/yangyu/Documents/GitHub/lanzou-gui/build/build_app/warn-build_app.txt
17217 INFO: Graph cross-reference written to /Users/yangyu/Documents/GitHub/lanzou-gui/build/build_app/xref-build_app.html
17265 INFO: checking PYZ
17266 INFO: Building PYZ because PYZ-00.toc is non existent
17266 INFO: Building PYZ (ZlibArchive) /Users/yangyu/Documents/GitHub/lanzou-gui/build/build_app/PYZ-00.pyz
18554 INFO: Building PYZ (ZlibArchive) /Users/yangyu/Documents/GitHub/lanzou-gui/build/build_app/PYZ-00.pyz completed successfully.
18597 INFO: checking PKG
18597 INFO: Building PKG because PKG-00.toc is non existent
18597 INFO: Building PKG (CArchive) PKG-00.pkg
34726 INFO: Building PKG (CArchive) PKG-00.pkg completed successfully.
34749 INFO: Bootloader /Users/yangyu/anaconda3/envs/buildd/lib/python3.7/site-packages/pyinstaller-5.0.dev0-py3.7.egg/PyInstaller/bootloader/Darwin-64bit/runw
34749 INFO: checking EXE
34749 INFO: Building EXE because EXE-00.toc is non existent
34749 INFO: Building EXE from EXE-00.toc
34749 INFO: Appending archive to EXE /Users/yangyu/Documents/GitHub/lanzou-gui/dist/lanzou-gui
34847 INFO: Fixing EXE for code signing /Users/yangyu/Documents/GitHub/lanzou-gui/dist/lanzou-gui
34851 INFO: Building EXE from EXE-00.toc completed successfully.
34864 INFO: checking BUNDLE
34864 INFO: Building BUNDLE because BUNDLE-00.toc is non existent
34865 INFO: Building BUNDLE BUNDLE-00.toc
34980 INFO: moving BUNDLE data files to Resource directory 因为直接使用预编译的pyinstaller会报错pyinstaller_issue,所以我编译安装了pyinstaller。 猜测可能big sur下pyinstaller和pyqt5的支持有些问题。 |
直接运行源码可以成功吗? |
我已经解决问题了,应该是一些兼容性的问题 直接运行源码会有点小bug,我做了一些代码上的小修改 s1 = f'{xxxxx=}'
s2 = f'{xxxxx}' 系统版本 Mac OS 11.1 Big Sur pip install PyQt5==5.10 BTW |
fstring 里面用 = 是python3.8 的 feature。 |
如题,请问是系统的问题吗?
The text was updated successfully, but these errors were encountered: