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

M1 Mac Monterey 12.3 build failed with error "cannot cleanup" #6723

Closed
jiadesen opened this issue Mar 15, 2022 · 5 comments
Closed

M1 Mac Monterey 12.3 build failed with error "cannot cleanup" #6723

jiadesen opened this issue Mar 15, 2022 · 5 comments
Labels

Comments

@jiadesen
Copy link

  • Electron-Builder Version: ^22.14.13
  • Node Version: v16.14.0
  • Electron Version: ^17.1.2
  • Electron Type (current, beta, nightly): current
  • Target: macos

Build log:

> electron-builder -m --arm64 --x64

  • electron-builder  version=22.14.13 os=21.4.0
  • loaded configuration  file=package.json ("build" field)
  • writing effective config  file=output/app/builder-effective-config.yaml
  • packaging       platform=darwin arch=x64 electron=17.1.2 appOutDir=output/app/mac
  • 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=DMG arch=x64 file=output/app/filename-x64.dmg
  • Detected arm64 process, HFS+ is unavailable. Creating dmg with APFS - supports Mac OSX 10.12+
  • packaging       platform=darwin arch=arm64 electron=17.1.2 appOutDir=output/app/mac-arm64
  • 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=DMG arch=arm64 file=output/app/filename-arm64.dmg
  • Detected arm64 process, HFS+ is unavailable. Creating dmg with APFS - supports Mac OSX 10.12+
  ⨯ Cannot cleanup: 

Error #1 --------------------------------------------------------------------------------
Error: Exit code: ENOENT. spawn /usr/bin/python ENOENT
    at /Users/xxx/electron-project/node_modules/.pnpm/[email protected]/node_modules/builder-util/src/util.ts:133:18
    at exithandler (node:child_process:406:5)
    at ChildProcess.errorhandler (node:child_process:418:5)
    at ChildProcess.emit (node:events:520:28)
    at Process.ChildProcess._handle.onexit (node:internal/child_process:289:12)
    at onErrorNT (node:internal/child_process:478:16)
    at processTicksAndRejections (node:internal/process/task_queues:83:21)

Error #2 --------------------------------------------------------------------------------
Error: Exit code: ENOENT. spawn /usr/bin/python ENOENT
    at /Users/xxx/electron-project/node_modules/.pnpm/[email protected]/node_modules/builder-util/src/util.ts:133:18
    at exithandler (node:child_process:406:5)
    at ChildProcess.errorhandler (node:child_process:418:5)
    at ChildProcess.emit (node:events:520:28)
    at Process.ChildProcess._handle.onexit (node:internal/child_process:289:12)
    at onErrorNT (node:internal/child_process:478:16)
    at processTicksAndRejections (node:internal/process/task_queues:83:21)  failedTask=build stackTrace=Error: Cannot cleanup: 
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              Error #1 --------------------------------------------------------------------------------
Error: Exit code: ENOENT. spawn /usr/bin/python ENOENT
    at /Users/xxx/electron-project/node_modules/.pnpm/[email protected]/node_modules/builder-util/src/util.ts:133:18
    at exithandler (node:child_process:406:5)
    at ChildProcess.errorhandler (node:child_process:418:5)
    at ChildProcess.emit (node:events:520:28)
    at Process.ChildProcess._handle.onexit (node:internal/child_process:289:12)
    at onErrorNT (node:internal/child_process:478:16)
    at processTicksAndRejections (node:internal/process/task_queues:83:21)
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              Error #2 --------------------------------------------------------------------------------
Error: Exit code: ENOENT. spawn /usr/bin/python ENOENT
    at /Users/xxx/electron-project/node_modules/.pnpm/[email protected]/node_modules/builder-util/src/util.ts:133:18
    at exithandler (node:child_process:406:5)
    at ChildProcess.errorhandler (node:child_process:418:5)
    at ChildProcess.emit (node:events:520:28)
    at Process.ChildProcess._handle.onexit (node:internal/child_process:289:12)
    at onErrorNT (node:internal/child_process:478:16)
    at processTicksAndRejections (node:internal/process/task_queues:83:21)
    at throwError (/Users/xxx/electron-project/node_modules/.pnpm/[email protected]/node_modules/builder-util/src/asyncTaskManager.ts:88:11)
    at checkErrors (/Users/xxx/electron-project/node_modules/.pnpm/[email protected]/node_modules/builder-util/src/asyncTaskManager.ts:53:9)
    at AsyncTaskManager.awaitTasks (/Users/xxx/electron-project/node_modules/.pnpm/[email protected]/node_modules/builder-util/src/asyncTaskManager.ts:67:7)
    at processTicksAndRejections (node:internal/process/task_queues:96:5)
    at Packager.doBuild (/Users/xxx/electron-project/node_modules/.pnpm/[email protected]/node_modules/app-builder-lib/src/packager.ts:453:5)
    at Object.executeFinally (/Users/xxx/electron-project/node_modules/.pnpm/[email protected]/node_modules/builder-util/src/promise.ts:12:14)
    at Packager._build (/Users/xxx/electron-project/node_modules/.pnpm/[email protected]/node_modules/app-builder-lib/src/packager.ts:376:31)
    at Packager.build (/Users/xxx/electron-project/node_modules/.pnpm/[email protected]/node_modules/app-builder-lib/src/packager.ts:337:12)
    at Object.executeFinally (/Users/xxx/electron-project/node_modules/.pnpm/[email protected]/node_modules/builder-util/src/promise.ts:12:14)
 ELIFECYCLE  Command failed with exit code 1.
@github-actions github-actions bot added the mac label Mar 15, 2022
@dwrtz
Copy link

dwrtz commented Mar 15, 2022

I upgraded to macos version 12.3 yesterday and now I'm seeing this issue

@SerhiiGadzhilov
Copy link

SerhiiGadzhilov commented Mar 15, 2022

@jiadesen @dwrtz
Looks like this is a duplicate of #6606
It has already been fixed under #6617
It should work with version 23.0.2
As alternative solution you can install Python 2 manually and set environment variable PYTHON_PATH

@jiadesen
Copy link
Author

@jiadesen @dwrtz Looks like this is a duplicate of #6606 It has already been fixed under #6617 It should work with version 23.0.2 As alternative solution you can install Python 2 manually and set environment variable PYTHON_PATH

23.0.2 works very well, thanks.

@mmaietta
Copy link
Collaborator

Closing per #6723 (comment)

@utd1878
Copy link

utd1878 commented Jun 20, 2022

@jiadesen @dwrtz Looks like this is a duplicate of #6606 It has already been fixed under #6617 It should work with version 23.0.2 As alternative solution you can install Python 2 manually and set environment variable PYTHON_PATH

It was the Python 2 install that fixed it in my environment.

I lied. Still not working...getting the 'Above command failed, retrying 5 more times' error on the dmg step

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

5 participants