I have created a MacOS self hosed runner for build and test machine purposes, in the middle of the running I a getting the the following error although I have installed python on mac/bin/sh: python: command not found
So I have added the
uses: actions/setup-python@v3
with:
python-version: 2.7
but it gives me the following error Error: dyld[52057]: Library not loaded: /Users/runner/hostedtoolcache/Python/2.7.18/x64/lib/libpython2.7.dylib Referenced from: <CDBDD2D2-8089-3055-BF48-1818C0431C7D> /Users/dev/actions-runner/_work/_tool/Python/2.7.18/x64/bin/python2.7 Reason: tried: '/Users/runner/hostedtoolcache/Python/2.7.18/x64/lib/libpython2.7.dylib' (no such file), '/System/Volumes/Preboot/Cryptexes/OS/Users/runner/hostedtoolcache/Python/2.7.18/x64/lib/libpython2.7.dylib' (no such file), '/Users/runner/hostedtoolcache/Python/2.7.18/x64/lib/libpython2.7.dylib' (no such file), '/usr/local/lib/libpython2.7.dylib' (no such file), '/usr/lib/libpython2.7.dylib' (no such file, not in dyld cache) Error: ./setup.sh: line 52: 52057 Abort trap: 6 ./python -m ensurepip Error: The process '/bin/bash' failed with exit code 134
Does anyone know how to overcome this?