question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Exit code: ENOENT. spawn /usr/bin/python error after updating macOS

See original GitHub issue
  • Electron-Builder Version: 22.14.13
  • Node Version: 16.13.2
  • Electron Version: 17.1.2
  • Electron Type (current, beta, nightly): current
  • Target: universal

I recently updated my MacBook Air M1 (macOS Monterey) to 12.3 and started receiving this error when running “electron-builder”:

  • electron-builder  version=22.14.13 os=21.4.0
  • loaded configuration  file=package.json ("build" field)
  • writing effective config  file=dist/builder-effective-config.yaml
  • packaging       platform=darwin arch=arm64 electron=17.1.2 appOutDir=dist/mac-arm64
  • default Electron icon is used  reason=application icon is not set
  • skipped macOS application code signing  reason=cannot find valid "Developer ID Application" identity or custom non-Apple code signing certificate, it could cause some undefined behaviour, e.g. macOS localized description not visible, see https://electron.build/code-signing allIdentities=     0 identities found
                                                Valid identities only
     0 valid identities found
  • building        target=macOS zip arch=arm64 file=dist/my-app-0.2.0-arm64-mac.zip
  • building        target=DMG arch=arm64 file=dist/my-app-0.2.0-arm64.dmg
  • Detected arm64 process, HFS+ is unavailable. Creating dmg with APFS - supports Mac OSX 10.12+
  • building block map  blockMapFile=dist/my-app-0.2.0-arm64-mac.zip.blockmap
  ⨯ Exit code: ENOENT. spawn /usr/bin/python ENOENT  failedTask=build stackTrace=Error: Exit code: ENOENT. spawn /usr/bin/python ENOENT
    at /Users/helder/Documents/patientdiary/node_modules/builder-util/src/util.ts:133:18
    at exithandler (node:child_process:404:5)
    at ChildProcess.errorhandler (node:child_process:416:5)
    at ChildProcess.emit (node:events:390:28)
    at Process.ChildProcess._handle.onexit (node:internal/child_process:288:12)
    at onErrorNT (node:internal/child_process:477:16)
    at processTicksAndRejections (node:internal/process/task_queues:83:21)
error Command failed with exit code 1.
info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Reactions:31
  • Comments:22

github_iconTop GitHub Comments

37reactions
helderjbecommented, Mar 17, 2022

FYI, this may be a dupe of #6606

You are right, upgrading to 23.0.2 fixed this issue.

I had searched for this for some time but I couldn’t find anything, thanks for the help!

22reactions
helderjbecommented, Mar 20, 2022

npm install electron-builder@23.0.2

Read more comments on GitHub >

github_iconTop Results From Across the Web

Create Electron dmg file macOS Monterey 12.3.1 - AppStudio
... dmg file Make Electron Appliction /usr/bin/python ENONET error. log ... Exit code: ENOENT. spawn /usr/bin/python ENOENT failedTask=build ...
Read more >
Meteor-Desktop - Electron broken because Apple removed ...
When I'm trying to build a new version of our Electron app for ... installer: Error: Exit code: ENOENT. spawn /usr/bin/python ENOENT at ......
Read more >
mac m1 打包amd 64 会报错Exit code: ENOENT. spawn /usr ...
Exit code : ENOENT. spawn /usr/bin/python ENOENT failedTask=build stackTrace=Error: Exit code: ENOENT. spawn /usr/bin/python ENOENT.
Read more >
Python 2.7 is removed from macOS in version 12.3+ - Issuehunt
Apple states: "Python 2.7 was removed from macOS in this update. ... Exit code: ENOENT. spawn /usr/bin/python ENOENT failedTask=build stackTrace=Error: Exit ...
Read more >
macOS Monterey 12.3 will remove Python 2.7 (/usr/bin/python)
Hot on the heels of macOS Monterey 12.2, Apple have publicly released the macOS Monterey 12.3 Beta Release Notes. Despite this being a...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found