Pyinstaller: BrokenPipeError: [Errno 32] Broken pipe and I didn't import subprocess

Viewed 23

I did some research online, and they said its caused by a subprocess, but my python file didn't have a subprocess header(I didn't import the subprocess) and btw i'm using macos monterey this is the ERROR:

77 INFO: Python: 3.10.7
90 INFO: Platform: macOS-12.6-arm64-arm-64bit
91 INFO: wrote /Users/jl/Coding/Python/apt.spec
93 INFO: UPX is not available.
93 INFO: Extending PYTHONPATH with paths
['/Users/jl/Coding/Python']
Traceback (most recent call last):
  File "/Library/Frameworks/Python.framework/Versions/3.10/lib/python3.10/site-packages/PyInstaller/isolated/_parent.py", line 337, in call
    return isolated.call(function, *args, **kwargs)
  File "/Library/Frameworks/Python.framework/Versions/3.10/lib/python3.10/site-packages/PyInstaller/isolated/_parent.py", line 266, in call
    ok, output = loads(b64decode(self._read_handle.readline()))
EOFError: EOF read where object expected

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/Library/Frameworks/Python.framework/Versions/3.10/bin/pyinstaller", line 8, in <module>
    sys.exit(run())
  File "/Library/Frameworks/Python.framework/Versions/3.10/lib/python3.10/site-packages/PyInstaller/__main__.py", line 179, in run
    run_build(pyi_config, spec_file, **vars(args))
  File "/Library/Frameworks/Python.framework/Versions/3.10/lib/python3.10/site-packages/PyInstaller/__main__.py", line 60, in run_build
    PyInstaller.building.build_main.main(pyi_config, spec_file, **kwargs)
  File "/Library/Frameworks/Python.framework/Versions/3.10/lib/python3.10/site-packages/PyInstaller/building/build_main.py", line 962, in main
    build(specfile, distpath, workpath, clean_build)
  File "/Library/Frameworks/Python.framework/Versions/3.10/lib/python3.10/site-packages/PyInstaller/building/build_main.py", line 884, in build
    exec(code, spec_namespace)
  File "/Users/jl/Coding/Python/apt.spec", line 7, in <module>
    a = Analysis(
  File "/Library/Frameworks/Python.framework/Versions/3.10/lib/python3.10/site-packages/PyInstaller/building/build_main.py", line 376, in __init__
    self.hookspath += discover_hook_directories()
  File "/Library/Frameworks/Python.framework/Versions/3.10/lib/python3.10/site-packages/PyInstaller/isolated/_parent.py", line 368, in wrapped
    return call(function, *args, **kwargs)
  File "/Library/Frameworks/Python.framework/Versions/3.10/lib/python3.10/site-packages/PyInstaller/isolated/_parent.py", line 336, in call
    with Python() as isolated:
  File "/Library/Frameworks/Python.framework/Versions/3.10/lib/python3.10/site-packages/PyInstaller/isolated/_parent.py", line 232, in __exit__
    self._write_handle.flush()
BrokenPipeError: [Errno 32] Broken pipe```
0 Answers
Related