Skip to content

Spurious warnings when trying to set up python 3.5 on ubuntu/macos #532

Description

@anntzer

Description:
Trying to set up Python 3.5 on ubuntu or macos triggers the following warnings, which we can't do anything about:

  • "You are using pip version 20.3.4, however version 22.3 is available. You should consider upgrading via the 'pip install --upgrade pip' command."
  • "Cache entry deserialization failed, entry ignored" (twice, and only on macos).

Obviously Python 3.5 is EOL and having a warning about EOL would be entirely fine, e.g. that's what's happen when setting up Python 2.7 ("DEPRECATION: Python 2.7 will reach the end of its life on January 1st, 2020. Please upgrade your Python as Python 2.7 won't be maintained after that date. A future version of pip will drop support for Python 2.7. More details about Python 2 support in pip, can be found at https://pip.pypa.io/en/latest/development/release-process/#python-2-support"). But the warnings regarding pip and cache deserialization are just confusing.
At least the pip version warning could perhaps be suppressed via pip --disable-pip-version-check ...(?)

Action version: v4

Platform:

  • Ubuntu
  • macOS
  • Windows

Runner type:

  • Hosted
  • Self-hosted

Tools version: 3.5.10

Repro steps:

name: build

on: [push, pull_request]

jobs:
  build:
    strategy:
      matrix:
        os: [macos-latest, ubuntu-latest, windows-latest]
        python-version: ["2.7", "3.0", "3.1", "3.2", "3.3", "3.4", "3.5", "3.6", "3.7", "3.8", "3.9", "3.10", "3.11"]
      fail-fast: false
    runs-on: ${{ matrix.os }}
    steps:
    - uses: actions/checkout@v3
    - uses: actions/setup-python@v4
      with:
        python-version: ${{ matrix.python-version }}

(see e.g. https://github.com/anntzer/gha-playground/actions/runs/3340491406)

Expected behavior:
No warning regarding pip or cache deserialization, possibly a warning regarding Python 3.5 being EOL.

Actual behavior:
Warnings regarding pip and cache deserialization.

Activity

  1. dmitry-shibanov commented on Oct 27, 2022

    @dmitry-shibanov
    Contributor

    Hello @anntzer. Thank you for your report. We'll investigate the issue.

  2. dmitry-shibanov commented on Nov 21, 2022

    @dmitry-shibanov
    Contributor

    Hello @anntzer. We had a related pull request in python-versions to add this option.

    For now you can set up PIP_DISABLE_PIP_VERSION_CHECK environment variable like this:

        runs-on: ${{ matrix.os }}
        env:
          PIP_DISABLE_PIP_VERSION_CHECK: 1
  3. dmitry-shibanov commented on Nov 30, 2022

    @dmitry-shibanov
    Contributor

    Hello @anntzer, just a gentle ping.

  4. anntzer commented on Nov 30, 2022

    @anntzer
    Author

    What do you need from me?

  5. dmitry-shibanov commented on Feb 6, 2023

    @dmitry-shibanov
    Contributor

    Hello @anntzer. For now I'm going to close the issue. If you need to suppress warnings related to the pip or python you can pass PIP_DISABLE_PIP_VERSION_CHECK and PIP_NO_PYTHON_VERSION_WARNING at the job or step level.

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

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