-
Notifications
You must be signed in to change notification settings - Fork 959
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
Runner macos-13-arm64 20231024.2: ModuleNotFoundError: No module named 'distutils' #2958
Comments
I have tried all kinds of trickery and work arounds to get distutils installed on the runner in my workflw, but I keep getting stifled by all kinds of complaints when doing so, such as;
Any ideas anyone??? |
both of these fail with the above message;
|
@jozefizso I fixed my identical problem by doing this before my npm install;
|
This worked for me. Thank you |
I can't get this to work unfortunately, including with
This just broke today for me on macOS-latest-xlarge |
i can't neither build on macos latest. i'm using electron-forge and need to build node-opcua library |
|
For me the only thing that worked was |
error message: ``` node_modules/macos-alias install: Traceback (most recent call last): node_modules/macos-alias install: File "/Users/runner/work/Follow/Follow/node_modules/node-gyp/gyp/gyp_main.py", line 42, in <module> node_modules/macos-alias install: import gyp # noqa: E402 node_modules/macos-alias install: ^^^^^^^^^^ node_modules/macos-alias install: File "/Users/runner/work/Follow/Follow/node_modules/node-gyp/gyp/pylib/gyp/__init__.py", line 9, in <module> node_modules/macos-alias install: import gyp.input node_modules/macos-alias install: File "/Users/runner/work/Follow/Follow/node_modules/node-gyp/gyp/pylib/gyp/input.py", line 19, in <module> node_modules/macos-alias install: from distutils.version import StrictVersion node_modules/macos-alias install: ModuleNotFoundError: No module named 'distutils' node_modules/macos-alias install: gyp ERR! configure error node_modules/macos-alias install: gyp ERR! stack Error: `gyp` failed with exit code: 1 node_modules/macos-alias install: gyp ERR! stack at ChildProcess.onCpExit (/Users/runner/work/Follow/Follow/node_modules/node-gyp/lib/configure.js:325:16) node_modules/macos-alias install: gyp ERR! stack at ChildProcess.emit (node:events:519:28) node_modules/macos-alias install: gyp ERR! stack at ChildProcess._handle.onexit (node:internal/child_process:293:12) node_modules/macos-alias install: gyp ERR! System Darwin 23.6.0 node_modules/macos-alias install: gyp ERR! command "/Users/runner/hostedtoolcache/node/22.9.0/arm64/bin/node" "/Users/runner/work/Follow/Follow/node_modules/.bin/node-gyp" "rebuild" node_modules/macos-alias install: gyp ERR! cwd /Users/runner/work/Follow/Follow/node_modules/macos-alias node_modules/macos-alias install: gyp ERR! node -v v22.9.0 node_modules/macos-alias install: gyp ERR! node-gyp -v v9.4.1 node_modules/macos-alias install: gyp ERR! not ok node_modules/macos-alias install: Failed ``` Repair refers to: actions/runner#2958 (comment) Test passed. Signed-off-by: Kevin Cui <[email protected]>
error message: ``` node_modules/macos-alias install: Traceback (most recent call last): node_modules/macos-alias install: File "/Users/runner/work/Follow/Follow/node_modules/node-gyp/gyp/gyp_main.py", line 42, in <module> node_modules/macos-alias install: import gyp # noqa: E402 node_modules/macos-alias install: ^^^^^^^^^^ node_modules/macos-alias install: File "/Users/runner/work/Follow/Follow/node_modules/node-gyp/gyp/pylib/gyp/__init__.py", line 9, in <module> node_modules/macos-alias install: import gyp.input node_modules/macos-alias install: File "/Users/runner/work/Follow/Follow/node_modules/node-gyp/gyp/pylib/gyp/input.py", line 19, in <module> node_modules/macos-alias install: from distutils.version import StrictVersion node_modules/macos-alias install: ModuleNotFoundError: No module named 'distutils' node_modules/macos-alias install: gyp ERR! configure error node_modules/macos-alias install: gyp ERR! stack Error: `gyp` failed with exit code: 1 node_modules/macos-alias install: gyp ERR! stack at ChildProcess.onCpExit (/Users/runner/work/Follow/Follow/node_modules/node-gyp/lib/configure.js:325:16) node_modules/macos-alias install: gyp ERR! stack at ChildProcess.emit (node:events:519:28) node_modules/macos-alias install: gyp ERR! stack at ChildProcess._handle.onexit (node:internal/child_process:293:12) node_modules/macos-alias install: gyp ERR! System Darwin 23.6.0 node_modules/macos-alias install: gyp ERR! command "/Users/runner/hostedtoolcache/node/22.9.0/arm64/bin/node" "/Users/runner/work/Follow/Follow/node_modules/.bin/node-gyp" "rebuild" node_modules/macos-alias install: gyp ERR! cwd /Users/runner/work/Follow/Follow/node_modules/macos-alias node_modules/macos-alias install: gyp ERR! node -v v22.9.0 node_modules/macos-alias install: gyp ERR! node-gyp -v v9.4.1 node_modules/macos-alias install: gyp ERR! not ok node_modules/macos-alias install: Failed ``` Repair refers to: actions/runner#2958 (comment) Test passed. Signed-off-by: Kevin Cui <[email protected]>
error message: ``` node_modules/macos-alias install: Traceback (most recent call last): node_modules/macos-alias install: File "/Users/runner/work/Follow/Follow/node_modules/node-gyp/gyp/gyp_main.py", line 42, in <module> node_modules/macos-alias install: import gyp # noqa: E402 node_modules/macos-alias install: ^^^^^^^^^^ node_modules/macos-alias install: File "/Users/runner/work/Follow/Follow/node_modules/node-gyp/gyp/pylib/gyp/__init__.py", line 9, in <module> node_modules/macos-alias install: import gyp.input node_modules/macos-alias install: File "/Users/runner/work/Follow/Follow/node_modules/node-gyp/gyp/pylib/gyp/input.py", line 19, in <module> node_modules/macos-alias install: from distutils.version import StrictVersion node_modules/macos-alias install: ModuleNotFoundError: No module named 'distutils' node_modules/macos-alias install: gyp ERR! configure error node_modules/macos-alias install: gyp ERR! stack Error: `gyp` failed with exit code: 1 node_modules/macos-alias install: gyp ERR! stack at ChildProcess.onCpExit (/Users/runner/work/Follow/Follow/node_modules/node-gyp/lib/configure.js:325:16) node_modules/macos-alias install: gyp ERR! stack at ChildProcess.emit (node:events:519:28) node_modules/macos-alias install: gyp ERR! stack at ChildProcess._handle.onexit (node:internal/child_process:293:12) node_modules/macos-alias install: gyp ERR! System Darwin 23.6.0 node_modules/macos-alias install: gyp ERR! command "/Users/runner/hostedtoolcache/node/22.9.0/arm64/bin/node" "/Users/runner/work/Follow/Follow/node_modules/.bin/node-gyp" "rebuild" node_modules/macos-alias install: gyp ERR! cwd /Users/runner/work/Follow/Follow/node_modules/macos-alias node_modules/macos-alias install: gyp ERR! node -v v22.9.0 node_modules/macos-alias install: gyp ERR! node-gyp -v v9.4.1 node_modules/macos-alias install: gyp ERR! not ok node_modules/macos-alias install: Failed ``` Repair refers to: actions/runner#2958 (comment) Test passed. Signed-off-by: Kevin Cui <[email protected]>
error message: ``` node_modules/macos-alias install: Traceback (most recent call last): node_modules/macos-alias install: File "/Users/runner/work/Follow/Follow/node_modules/node-gyp/gyp/gyp_main.py", line 42, in <module> node_modules/macos-alias install: import gyp # noqa: E402 node_modules/macos-alias install: ^^^^^^^^^^ node_modules/macos-alias install: File "/Users/runner/work/Follow/Follow/node_modules/node-gyp/gyp/pylib/gyp/__init__.py", line 9, in <module> node_modules/macos-alias install: import gyp.input node_modules/macos-alias install: File "/Users/runner/work/Follow/Follow/node_modules/node-gyp/gyp/pylib/gyp/input.py", line 19, in <module> node_modules/macos-alias install: from distutils.version import StrictVersion node_modules/macos-alias install: ModuleNotFoundError: No module named 'distutils' node_modules/macos-alias install: gyp ERR! configure error node_modules/macos-alias install: gyp ERR! stack Error: `gyp` failed with exit code: 1 node_modules/macos-alias install: gyp ERR! stack at ChildProcess.onCpExit (/Users/runner/work/Follow/Follow/node_modules/node-gyp/lib/configure.js:325:16) node_modules/macos-alias install: gyp ERR! stack at ChildProcess.emit (node:events:519:28) node_modules/macos-alias install: gyp ERR! stack at ChildProcess._handle.onexit (node:internal/child_process:293:12) node_modules/macos-alias install: gyp ERR! System Darwin 23.6.0 node_modules/macos-alias install: gyp ERR! command "/Users/runner/hostedtoolcache/node/22.9.0/arm64/bin/node" "/Users/runner/work/Follow/Follow/node_modules/.bin/node-gyp" "rebuild" node_modules/macos-alias install: gyp ERR! cwd /Users/runner/work/Follow/Follow/node_modules/macos-alias node_modules/macos-alias install: gyp ERR! node -v v22.9.0 node_modules/macos-alias install: gyp ERR! node-gyp -v v9.4.1 node_modules/macos-alias install: gyp ERR! not ok node_modules/macos-alias install: Failed ``` Repair refers to: actions/runner#2958 (comment) Test passed. Signed-off-by: Kevin Cui <[email protected]> Co-authored-by: Kevin Cui <[email protected]>
Describe the bug
Our builds started to fail with error
ModuleNotFoundError: No module named 'distutils'
.This error occurs in
macos-13-arm64 v20231024.2
images. There were no issues with previous images including the v20231017.1To Reproduce
Create a workflow which installs the
[email protected]
npm package.Run the workflow on
macos-13-xlarge
runner. It will use themacos-13-arm64 20231024.2
which breaks existing workflows.Expected behavior
The
[email protected]
would install normally as on previous images.Runner Version and Platform
Version of your runner?
2.311.0
OS of the machine running the runner?
macOS
What's not working?
The text was updated successfully, but these errors were encountered: