SystemError: Failed to process binary

222 views
Skip to first unread message

db...@ualberta.ca

unread,
Oct 10, 2024, 5:38:02 PM10/10/24
to PyInstaller
Hi, everyone

I recently moved to a new computer (MacStudio 2023, running MacOS 15.0.1) and PyInstaller now gives me a strange error when I try to bundle an app. I've been happily using PyInstaller with it for a number of years without any problems.

I use the following command:

python3 -m PyInstaller eFieldBook.spec --clean --noconfirm

and I get this output

The above exception was the direct cause of the following exception:


Traceback (most recent call last):

  File "<frozen runpy>", line 198, in _run_module_as_main

  File "<frozen runpy>", line 88, in _run_code

  File "/Library/Frameworks/Python.framework/Versions/3.12/lib/python3.12/site-packages/PyInstaller/__main__.py", line 308, in <module>

    run()

  File "/Library/Frameworks/Python.framework/Versions/3.12/lib/python3.12/site-packages/PyInstaller/__main__.py", line 215, in run

    run_build(pyi_config, spec_file, **vars(args))

  File "/Library/Frameworks/Python.framework/Versions/3.12/lib/python3.12/site-packages/PyInstaller/__main__.py", line 70, in run_build

    PyInstaller.building.build_main.main(pyi_config, spec_file, **kwargs)

  File "/Library/Frameworks/Python.framework/Versions/3.12/lib/python3.12/site-packages/PyInstaller/building/build_main.py", line 1227, in main

    build(specfile, distpath, workpath, clean_build)

  File "/Library/Frameworks/Python.framework/Versions/3.12/lib/python3.12/site-packages/PyInstaller/building/build_main.py", line 1167, in build

    exec(code, spec_namespace)

  File "eFieldBook.spec", line 22, in <module>

    exe = EXE(pyz,

          ^^^^^^^^

  File "/Library/Frameworks/Python.framework/Versions/3.12/lib/python3.12/site-packages/PyInstaller/building/api.py", line 639, in __init__

    self.pkg = PKG(

               ^^^^

  File "/Library/Frameworks/Python.framework/Versions/3.12/lib/python3.12/site-packages/PyInstaller/building/api.py", line 254, in __init__

    self.__postinit__()

  File "/Library/Frameworks/Python.framework/Versions/3.12/lib/python3.12/site-packages/PyInstaller/building/datastruct.py", line 184, in __postinit__

    self.assemble()

  File "/Library/Frameworks/Python.framework/Versions/3.12/lib/python3.12/site-packages/PyInstaller/building/api.py", line 314, in assemble

    src_name = process_collected_binary(

               ^^^^^^^^^^^^^^^^^^^^^^^^^

  File "/Library/Frameworks/Python.framework/Versions/3.12/lib/python3.12/site-packages/PyInstaller/building/utils.py", line 334, in process_collected_binary

    raise SystemError(f"Failed to process binary {cached_name!r}!") from e

SystemError: Failed to process binary '/Users/David/Library/Application Support/pyinstaller/bincache00py31264bit/arm64/adhoc/no-entitlements/lib-dynload/_struct.cpython-312-darwin.so'!


I really have no idea how to interpret this, any suggestions from wiser heads would be much appreciated. Happy to supply any additional info that would help.

David

bwoodsend

unread,
Oct 11, 2024, 5:38:17 AM10/11/24
to PyInstaller
That's just a vanilla python.org/downloads build of Python, right? Can we have the rest of the console output?

David Beck

unread,
Oct 11, 2024, 10:20:38 AM10/11/24
to pyins...@googlegroups.com

bwoodsend

unread,
Oct 11, 2024, 3:37:40 PM10/11/24
to PyInstaller

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

Have you tried just doing what it says?

David Beck

unread,
Oct 14, 2024, 4:15:26 PM10/14/24
to pyins...@googlegroups.com
Oh shoot, sorry I missed that. Very stupid of me. Thanks for your help.

David

On Oct 11, 2024, at 1:37 PM, bwoodsend <bwoo...@gmail.com> wrote:

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

Have you tried just doing what it says?


--
You received this message because you are subscribed to a topic in the Google Groups "PyInstaller" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/pyinstaller/p-m89ONXVzM/unsubscribe.
To unsubscribe from this group and all its topics, send an email to pyinstaller...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/pyinstaller/c2e725cf-513d-4fd4-bf34-d3cb735f9c52n%40googlegroups.com.

Reply all
Reply to author
Forward
0 new messages