- Notifications
You must be signed in to change notification settings - Fork689
Description
Description:
We're on GHES and using self-hosted runners. We're using this action successfully by populating theRUNNER_TOOL_CACHE with our version sourced from a github-proxy ofactions/python-versions.:
Run actions/setup-python@v4Installed versions Successfully set up CPython (3.12.0)Unfortunately, after attempting to use thepip cache we receive the following error:
Unable to locate executable file: pip. Please verify either the file path exists or the file can be found within a directory specified by the PATH environment variable. Also check the file mode to verify the file is executable.For what its worth, after running setup-python without the cache flag enabled I added a couple steps to the workflow to view the behavior of pip:
Run pip --version/home/runner/_work/_temp/188bb107-50a4-4b41-a141-38988abcb76d.sh: line 1: pip: command not found/home/runner/_work/_temp/f10f49fe-29ae-4ebc-b6d2-9f2080f8c6a0.sh: /home/runner/_work/_tool/Python/3.12.0/x64/bin/pip3: /opt/hostedtoolcache/Python/3.12.0/x64/bin/python3.12: bad interpreter: No such file or directoryI've verified the appropriate environment variable as well:RUNNER_TOOL_CACHE=/home/runner/_work/_tool
Action version:
actions/setup-python@v4 - This is the latest available on our version of GHES.
Platform:
- Ubuntu
- macOS
- Windows
Runner type:
- Hosted
- Self-hosted
Tools version:
3.12.0
Repro steps:
This doesn't appear to have been reported in the past, looking for pointers in the right direction to determine if this is an issue in our runner environment.
Expected behavior:
Cache to work as expected
Actual behavior:
See above