Skip to content
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

ENOENT. spawn /usr/bin/python error after updating macOS 12.3 (Monterey) #9

Closed
a4xrbj1 opened this issue May 6, 2022 · 1 comment
Closed
Labels
bug Something isn't working

Comments

@a4xrbj1
Copy link

a4xrbj1 commented May 6, 2022

MacOS 12.3 removed built-in Python 2, build process breaks for MacOS in Electron since then.

ERROR  electronBuilder:  error while building installer:  Error: Exit code: ENOENT. spawn /usr/bin/python ENOENT
    at /Users/andreaswest/Documents/workspace/frontend/node_modules/builder-util/src/util.ts:133:18
    at exithandler (child_process.js:390:5)
    at ChildProcess.errorhandler (child_process.js:402:5)
    at ChildProcess.emit (events.js:400:28)
    at Process.ChildProcess._handle.onexit (internal/child_process.js:280:12)
    at onErrorNT (internal/child_process.js:469:16)
    at processTicksAndRejections (internal/process/task_queues.js:82:21)

See also Electron-Builder issue #6726

To Reproduce

Steps to reproduce the behavior:
Build an Electron app for MacOS (desktopHCP turned off) with MacOS 12.3 or higher

Expected behavior

Electron MacOS app should be build without any error/problem

Versions (please complete the following information):

Additional context

Tried installing Python 2.7 manually but it still breaks.

@a4xrbj1 a4xrbj1 added the bug Something isn't working label May 6, 2022
@a4xrbj1
Copy link
Author

a4xrbj1 commented May 7, 2022

Is fixed by upgrading electron-builder to version 23.0.2

@a4xrbj1 a4xrbj1 closed this as completed May 7, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant