Traceback (most recent call last):
File "/Library/Frameworks/Python.framework/Versions/3.11/lib/python3.11/site-packages/PyInstaller/building/utils.py", line 276, in process_collected_binary
osxutils.binary_to_target_arch(cached_name, target_arch, display_name=src_name)
File "/Library/Frameworks/Python.framework/Versions/3.11/lib/python3.11/site-packages/PyInstaller/utils/osx.py", line 347, in binary_to_target_arch
convert_binary_to_thin_arch(filename, target_arch)
File "/Library/Frameworks/Python.framework/Versions/3.11/lib/python3.11/site-packages/PyInstaller/utils/osx.py", line 315, in convert_binary_to_thin_arch
raise SystemError(f"lipo command ({cmd_args}) failed with error code {p.returncode}!\noutput: {p.stdout}")
SystemError: lipo command (['lipo', '-thin', 'x86_64', '/Users/god-logger/Library/Application Support/pyinstaller/bincache00py31164bit/x86_64/adhoc/no-entitlements/PySide6/Qt/plugins/styles/libqmacstyle.dylib', '-output', '/Users/god-logger/Library/Application Support/pyinstaller/bincache00py31164bit/x86_64/adhoc/no-entitlements/PySide6/Qt/plugins/styles/libqmacstyle.dylib']) failed with error code 69!
output: You have not agreed to the Xcode license agreements. Please run 'sudo xcodebuild -license' from within a Terminal window to review and agree to the Xcode and Apple SDKs license.
The above exception was the direct cause of the following exception:
Traceback (most recent call last):
File "/Library/Frameworks/Python.framework/Versions/3.11/bin/pyinstaller", line 8, in <module>
sys.exit(_console_script_run())
^^^^^^^^^^^^^^^^^^^^^
File "/Library/Frameworks/Python.framework/Versions/3.11/lib/python3.11/site-packages/PyInstaller/__main__.py", line 205, in _console_script_run
run()
File "/Library/Frameworks/Python.framework/Versions/3.11/lib/python3.11/site-packages/PyInstaller/__main__.py", line 189, in run
run_build(pyi_config, spec_file, **vars(args))
File "/Library/Frameworks/Python.framework/Versions/3.11/lib/python3.11/site-packages/PyInstaller/__main__.py", line 61, in run_build
PyInstaller.building.build_main.main(pyi_config, spec_file, **kwargs)
File "/Library/Frameworks/Python.framework/Versions/3.11/lib/python3.11/site-packages/PyInstaller/building/build_main.py", line 1042, in main
build(specfile, distpath, workpath, clean_build)
File "/Library/Frameworks/Python.framework/Versions/3.11/lib/python3.11/site-packages/PyInstaller/building/build_main.py", line 982, in build
exec(code, spec_namespace)
File "/Users/god-logger/Develop/test-tool/app/app.spec", line 18, in <module>
exe = EXE(
^^^^
File "/Library/Frameworks/Python.framework/Versions/3.11/lib/python3.11/site-packages/PyInstaller/building/api.py", line 609, in __init__
self.pkg = PKG(
^^^^
File "/Library/Frameworks/Python.framework/Versions/3.11/lib/python3.11/site-packages/PyInstaller/building/api.py", line 238, in __init__
self.__postinit__()
File "/Library/Frameworks/Python.framework/Versions/3.11/lib/python3.11/site-packages/PyInstaller/building/datastruct.py", line 184, in __postinit__
self.assemble()
File "/Library/Frameworks/Python.framework/Versions/3.11/lib/python3.11/site-packages/PyInstaller/building/api.py", line 289, in assemble
src_name = process_collected_binary(
^^^^^^^^^^^^^^^^^^^^^^^^^
File "/Library/Frameworks/Python.framework/Versions/3.11/lib/python3.11/site-packages/PyInstaller/building/utils.py", line 301, in process_collected_binary
raise SystemError(f"Failed to process binary {cached_name!r}!") from e
SystemError: Failed to process binary '/Users/god-logger/Library/Application Support/pyinstaller/bincache00py31164bit/x86_64/adhoc/no-entitlements/PySide6/Qt/plugins/styles/libqmacstyle.dylib'!
혹은
Failed to process binary /Library/Application Support/pyinstaller/bincache00py31164bit/x86_64/adhoc/no-entitlements/lib-dynload/_struct.cpython-311-darwin.so'!
PyInstaller 실행시 위와 비슷한 에러가 나온다면, mac os 를 업데이트 이후에 xcode build license에 동의하지 않아 진행되지 않는 경우일 가능성이 높다.
해결방안
sudo xcodebuild -license
위 코드 입력 후 [엔터] 한번 치고, 이후에 agree 라고 입력 후 엔터를 치면 pyinstaller가 잘 되는것을 확인할 수 있다.
반응형
'이슈' 카테고리의 다른 글
Http Request 30초 Timeout 이슈 (8) | 2023.12.12 |
---|---|
Jenkins Update 이후 배포 불가 현상시 해결 (0) | 2023.11.16 |
P12 (샤오미 패드 2022) Wifi 5ghz 안잡히는 이슈 (0) | 2023.10.04 |
통신사 테더링시 웹소켓 연결이 안되는 이슈! (0) | 2023.09.22 |