Skip to content

Occasionally getting candidates is not iterable error #903

Open
@jonathonlacher

Description

@jonathonlacher

Description:
I'm occasionally getting the following error when this Action is ran:

Run actions/setup-python@v5
Installed versions
  Version 3.12.3 was not found in the local cache
  Error: candidates is not iterable

image

Action version:
v5.1.0

Platform:

  • Ubuntu
  • macOS
  • Windows

Runner type:

  • Hosted
  • Self-hosted

Tools version:

3.12.3

Repro steps:
Repo is on GHES, so not able to link to it.

  1. I have a reusable workflow that is used by a number of other projects.
  2. The reusable workflow has a step that uses the setup-python action.
    ...
    runs:
      using: "composite"
      steps:
      - uses: actions/setup-python@v5
        with:
          python-version: '3.12.3'
  3. On occasion, I think starting with in the last day, I sometimes see the error. A re-run typically works successfully.

Not sure if the complexities of GHES are the cause, though I have seen some indications searching all of github.com that at least 1 other person has gotten this error before when using this action.

They potentially say it's related to rate limiting, though the error, at least to me, isn't clear enough to indicate that.

This also might be relevant: setup-python is one of the default bundled Actions with GHES, so my understanding is the that the runner should only be calling out to github.com for accessing the python-versions maniest and corresponding release.

Expected behavior:

Here is what I expect, for the Action to download the release tar.

image

Actual behavior:

The action fails to find the version available for downloading.

Metadata

Metadata

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