Skip to content

Error caused by setup-python due to outdated pip #254

Description

@Paebbels

Describe the bug
When setting up Python 3.10 via setup-python@v2 I get errors in my jobs like this:

Error: WARNING: You are using pip version 21.2.3; however, version 21.3 is available.

The full message of setup-python is this:

Run actions/setup-python@v2
  with:
    python-version: 3.10
    token: ***
  env:
    PYTHON: 3.10
    ARTIFACT: pyEDAA-ProjectModel-typing-html
Version 3.10 was not found in the local cache
Version 3.10 is available for downloading
Download from "https://github.com/actions/python-versions/releases/download/3.10.0-117470/python-3.10.0-linux-20.04-x64.tar.gz"
Extract downloaded archive
/usr/bin/tar xz --warning=no-unknown-keyword -C /home/runner/work/_temp/4fba8822-4fd9-4675-88c4-995c6a971aa3 -f /home/runner/work/_temp/6ae9d2ae-9db0-4802-9194-1b39c0403289
Execute installation script
Check if Python hostedtoolcache folder exist...
Create Python 3.10.0 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...
Looking in links: /tmp/tmprmtirwrx
Requirement already satisfied: setuptools in /opt/hostedtoolcache/Python/3.10.0/x64/lib/python3.10/site-packages (57.4.0)
Requirement already satisfied: pip in /opt/hostedtoolcache/Python/3.10.0/x64/lib/python3.10/site-packages (21.2.3)
Collecting pip
Downloading pip-21.3-py3-none-any.whl (1.7 MB)
Installing collected packages: pip
Successfully installed pip-21.3
Error: WARNING: You are using pip version 21.2.3; however, version 21.3 is available.
You should consider upgrading via the '/opt/hostedtoolcache/Python/3.10.0/x64/bin/python -m pip install --upgrade pip' command.
Create complete file
Successfully setup CPython (3.10.0)

Which version of the action are you using?

  • v1
  • v2
  • Some other tag (such as v2.0.1 or master)

Environment

  • self-hosted
  • Linux
  • Windows
  • Mac
  • GitHub Actions: Ubuntu 20.04

Python Versions

  • 3.10.x (latest) as selected by setup-python

To Reproduce
Steps to reproduce the behavior:

jobs:
  Reproducer:
    runs-on: ubuntu-latest
    steps:
      - name: 🐍 Setup Python 3.10
        uses: actions/setup-python@v2
        with:
          python-version: 3.10

Run/Repo URL
https://github.com/edaa-org/pyEDAA.ProjectModel/runs/3918266378?check_suite_focus=true#step:3:26

Screenshots
image

Additional Context
none


/cc @umarcor

Activity

  1. umarcor commented on Oct 17, 2021

    @umarcor

    This is maybe a dup of #233?

  2. hugovk commented on Oct 18, 2021

    @hugovk
    Contributor

    Yes, duplicate of #233, fixed by actions/python-versions#117.

  3. nikita-bykov commented on Oct 19, 2021

    @nikita-bykov
    Contributor

    Closed this issue as a duplicate of #233

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workingduplicateThis issue or pull request already exists

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions