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.

error on self hosted runner

See original GitHub issue

I’m using this link as reference https://github.com/actions/setup-python#using-setup-python-with-a-self-hosted-runner

the error message:

Execute installation script
Check if Python hostedtoolcache folder exist...
Deleting Python 3.8.5
Create Python 3.8.5 folder
Copy Python binaries to hostedtoolcache folder
Create additional symlinks (Required for the UsePythonVersion Azure Pipelines task and the setup-python GitHub Action)
Upgrading PIP...
Error: ./setup.sh: line 52: ./python: cannot execute binary file: Exec format error
Error: The process '/usr/bin/bash' failed with exit code 126
##[debug]Node Action run completed with exit code 1
##[debug]Finishing: Setting Up Python version 3.8.5

OS: ubuntu 20.04 python-version: “3.8.5” architecture: “x64”

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Reactions:1
  • Comments:7 (4 by maintainers)

github_iconTop GitHub Comments

1reaction
dsamecommented, Apr 27, 2022

Hi @dsame

I didn’t have time to test it for a moment. since you have confirmed that it’s working now, would you let me know the environment(os, python, setup-python version) info that you use ? so I can check it later.

Thank you

Hello @weiztech ,

I used the step

      - name: Setup python
        uses: actions/setup-python@v2
        with:
          python-version: 3.7
          architecture: x64
        env:
          RUNNER_TOOL_CACHE: /opt/hostedtoolcache  

there’s a workflow yaml used to run the job https://github.com/akv-demo/setup-python-test/actions/runs/2231537802/workflow

1reaction
jveselycommented, Nov 2, 2021

Doesn’t work on macos either:

Run actions/setup-python@v2.2.2
  with:
    python-version: 3.7
    architecture: x64
    token: ***
Version 3.7 was not found in the local cache
Version 3.7 is available for downloading
Download from "https://github.com/actions/python-versions/releases/download/3.7.12-116024/python-3.7.12-darwin-x64.tar.gz"
Extract downloaded archive
/usr/bin/tar xz -C /Users/psyneulink/actions-runner/_work/_temp/33e27390-041b-4f3b-ab05-d9f99dc6ea25 -f /Users/psyneulink/actions-runner/_work/_temp/02f7a641-fc92-4575-9e56-cfd015f13e2c
Execute installation script
Check if Python hostedtoolcache folder exist...
Deleting Python 3.7.12
Create Python 3.7.12 folder
Copy Python binaries to hostedtoolcache folder
Create additional symlinks (Required for the UsePythonVersion Azure Pipelines task and the setup-python GitHub Action)
Upgrading PIP...
Error: dyld[25949]: Library not loaded: /Users/runner/hostedtoolcache/Python/3.7.12/x64/lib/libpython3.7m.dylib
  Referenced from: /Users/psyneulink/actions-runner/_work/_tool/Python/3.7.12/x64/bin/python3.7
  Reason: tried: '/Users/runner/hostedtoolcache/Python/3.7.12/x64/lib/libpython3.7m.dylib' (no such file), '/usr/local/lib/libpython3.7m.dylib' (no such file), '/usr/lib/libpython3.7m.dylib' (no such file)
Error: ./setup.sh: line 52: 25949 Abort trap: 6           ./python -m ensurepip
Error: The process '/bin/bash' failed with exit code 134
Read more comments on GitHub >

github_iconTop Results From Across the Web

Monitoring and troubleshooting self-hosted runners
You can monitor your self-hosted runners to view their activity and diagnose common issues.
Read more >
Troubleshoot self-hosted runner - CircleCI
The following are errors you could encounter using container runner. Container fails to start due to disk space. The task remains in the...
Read more >
docker-compose from Github Action (self-hosted runner ...
I've run docker-compose up --build --scale cypress=3 --force-recreate whilst remoted onto the self-hosted running, the command is successful.
Read more >
Bitbucket Runners - Self hosted - 403 errors
The error is very random, happens on different projects. There have been no changes to our pipeline.yml files or permissions in our BB...
Read more >
GitHub self-hosted runner can't reach SonarQube
... a self-hosted runner where we are running SonarQube scan, but at the moment of running the workflow we're getting the following error:....
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