GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — Python 3.5 setup fails with an invalid certificate when running pip · Issue #866 · actions/setup-python

Python 3.5 setup fails with an invalid certificate when running pip #866

New issue
Copy link
New issue
Copy link
Closed
Closed
Python 3.5 setup fails with an invalid certificate when running pip#866
Copy link
Assignees
v-priya-kinthali
Labels
bugSomething isn't workingSomething isn't working

Description

@andy-maier
andy-maier
opened on May 14, 2024
Issue body actions

Description:

Python 3.5 setup fails with an invalid certificate when running pip.

This started happening a few days ago. 7 days ago it still worked.

From a today's run where it failed: https://github.com/zhmcclient/zhmc-ansible-modules/actions/runs/9076784995/job/24940262974

Run actions/setup-python@v5
  with:
    python-version: 3.5
    check-latest: false
    token: ***
    update-environment: true
    allow-prereleases: false
  env:
    PIP_DISABLE_PIP_VERSION_CHECK: 1
    PIP_NO_PYTHON_VERSION_WARNING: 1
Installed versions
  Version 3.5 was not found in the local cache
  Version 3.5 is available for downloading
  Download from "https://github.com/actions/python-versions/releases/download/3.5.10-90026/python-3.5.10-linux-20.04-x64.tar.gz"
  Extract downloaded archive
  /usr/bin/tar xz --warning=no-unknown-keyword --overwrite -C /home/runner/work/_temp/bbd73505-bdd7-43f6-9be8-ea09e3ed6949 -f /home/runner/work/_temp/20ce11ed-ebf4-4b07-b07d-6c43d465aa62
  Execute installation script
  Check if Python hostedtoolcache folder exist...
  Create Python 3.5.10 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...
  Requirement already satisfied: setuptools in /opt/hostedtoolcache/Python/3.5.10/x64/lib/python3.5/site-packages
  Requirement already satisfied: pip in /opt/hostedtoolcache/Python/3.5.10/x64/lib/python3.5/site-packages
  Collecting pip
  Could not fetch URL https://pypi.python.org/simple/pip/: There was a problem confirming the ssl certificate: [SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed (_ssl.c:728) - skipping
  Error: Could not find a version that satisfies the requirement pip (from versions: )
  Error: No matching distribution found for pip
  Error: The process '/usr/bin/bash' failed with exit code 1

Action version:

v5

Platform:

  • Ubuntu
  • macOS
  • Windows

Runner type:

  • Hosted
  • Self-hosted

Tools version:

Python 3.5

Repro steps:

To reproduce, use the setup-python action with Python 3.5.

Expected behavior:

Python 3.5 should be installed as it was 1 week ago.

Actual behavior:

See description, above.

Reacted by João Magalhães, dirkf, Delgan, Jonathan de Jong, Nathan Glenn and Pierre Equoy

Activity

Next
  1. andy-maier
    added
    bugSomething isn't workingSomething isn't working
    needs triage
    on May 14, 2024
  2. joamag commented on May 14, 2024

    @joamag
    joamag
    on May 14, 2024
    More actions

    I'm also able to reproduce this behavior in a self-hosted environment.

  3. joamag
    added a commit that references this issue on May 14, 2024

    chore: restored Python 3.5 automation

    1ab76b3
  4. joamag commented on May 14, 2024

    @joamag
    joamag
    on May 14, 2024
    More actions

    @andy-maier I believe you can use this "temporary fix" (using PIP_TRUSTED_HOST env variable) to bump pip and avoid this error

      - uses: actions/setup-python@v5
        with:
          python-version: 3.5
        env:
          PIP_TRUSTED_HOST: "pypi.python.org pypi.org files.pythonhosted.org"

    Found it here https://stackoverflow.com/questions/25981703/pip-install-fails-with-connection-error-ssl-certificate-verify-failed-certi

    Reacted by Delgan, dirkf, Olivier Dony and amita-seal
  5. v-aparnajyothi-y
    removed
    needs triage
    on May 15, 2024
  6. v-aparnajyothi-y commented on May 15, 2024

    @v-aparnajyothi-y
    v-aparnajyothi-y
    on May 15, 2024
    Contributor
    More actions

    Hello @andy-maier, Thank you for creating this issue and we will look into it :)

  7. dirkf
    added 3 commits that reference this issue on May 15, 2024

    Temporary workaround for Python 3.5 failures

    d4c100f

    [workflows/ci.yml] Temporary workaround for Python 3.5 _pip_ failures

    a08f2b7

    [workflows/ci.yml] Temporary workaround for Python 3.5 _pip_ failures

    095dc79
  8. nicolaasjan
    added a commit that references this issue on May 16, 2024

    [workflows/ci.yml] Temporary workaround for Python 3.5 _pip_ failures

    4b93355
  9. Delgan
    added 2 commits that reference this issue on May 16, 2024

    Fix failure of Github CI for Python 3.5

    981e38b

    Actually fix Github CI for Python 3.5

    f96d9c6
  10. dirkf
    added a commit that references this issue on May 16, 2024

    [workflows/build.yml] Temporary workaround for Python 3.4/5 failures

    6d8de7c
  11. dirkf commented on May 16, 2024

    @dirkf
    dirkf
    on May 16, 2024
    More actions

    The Python 3.4.4 Windows MSI installation is also affected and also responds to the PIP_TRUSTED_HOST work-around. This is minimally documented at https://pip.pypa.io/en/latest/cli/pip/:

    --trusted-host <hostname>
    
        Mark this host or host:port pair as trusted, even though it does not have valid or any HTTPS.
    
        (environment variable: PIP_TRUSTED_HOST)
    

    Presumably pypi.org has reconfigured its servers with some new web-breaking security option so that older SSL implementations can't verify its certificate? If so the "temporary" work-around may be wrongly described.

  12. 22 remaining items

  13. pbodnar
    added a commit that references this issue on Jul 14, 2024

    ci: support Python 3.5 build

    8956177
  14. jacobtylerwalls
    added 3 commits that reference this issue on Aug 4, 2024

    Fix release tests

    359c40f

    Fix release tests

    189934e

    Fix release tests

    f37549e
  15. GalaxySnail
    added 5 commits that reference this issue on Sep 5, 2024

    Skip cert check on python 3.5

    b0947e3

    Skip cert check on python 3.5

    c4a15cf

    Skip cert check on python 3.5

    8cff3ce

    Skip cert check on python 3.5

    d5b47b8

    Skip cert check on python 3.5

    ef88ada
  16. jquast
    added a commit that references this issue on Sep 12, 2024

    Upgrade GitHub Actions to node20 runtime (#131)

    4161153
  17. marynamelynk
    added 2 commits that reference this issue on Feb 9, 2025

    Fix failure of Github CI for Python 3.5

    e010f49

    Actually fix Github CI for Python 3.5

    d107bf4
  18. sjlongland
    added 2 commits that reference this issue on Feb 13, 2026

    github actions: Temporarily disable Python 3.5 for now

    281ac1d

    github actions: Temporarily disable Python 3.5 for now

    b6bffb4
  19. grave0x
    added a commit that references this issue on Jul 16, 2026

    [workflows:tests] restore Python 3.5 usage

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

Metadata

Metadata

Assignees

  • @v-priya-kinthali
    v-priya-kinthali

Labels

bugSomething isn't workingSomething isn't working

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

    You are visitor 01402503 — GeezerVison does not store the pages you look up.
    Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.