Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Unable to locate 'pip' when using cache #858

Closed
Assignees
gowridurgad
Labels
bugSomething isn't working
@jb-2020

Description

@jb-2020

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 directory

I'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

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions


    [8]ページ先頭

    ©2009-2025 Movatter.jp