Skip to content

action failing because of missing python-pip #22

Description

@feilipu

I've looked at the Issues log and there's a few resolved issues (eg #20) around the python-pip module being missing.

E: Package 'python-pip' has no installation candidate

I've tried to change the action to v0.1.2 from stable, and this doesn't resolve the problem.
Could you please point to the current correct resolution for this issue?
TIA.

Current arduino_ci.yml.

---
name: Arduino_CI

on: [push, pull_request]

jobs:
  arduino_ci:
    runs-on: ubuntu-latest

    steps:
      - uses: actions/checkout@v2
      - uses: Arduino-CI/action@v0.1.2  # or latest, or a pinned version

Arduino_FreeRTOS_Library

Activity

  1. changed the title [-]action failing because of missing python[/-] [+]action failing because of missing python-pip[/+] on Jan 2, 2022
  2. angrest commented on Sep 16, 2022

    @angrest

    The problem is still present.

  3. matburnham commented on Sep 28, 2022

    @matburnham

    I get similar issues trying to use the above GitHub action:

    Step 12/16 : RUN true   && apt-get update   && apt-get install -qq --no-install-recommends       git       curl       g++       time       python       python-pip       python3       python3-pip   && apt-get clean   && rm -rf /var/lib/apt/lists/*   && pip install pyserial   && pip3 install pyserial
       ---> Running in 406c943edf05
      Get:1 http://security.debian.org/debian-security bullseye-security InRelease [48.4 kB]
      Get:2 http://deb.debian.org/debian bullseye InRelease [116 kB]
      Get:3 http://deb.debian.org/debian bullseye-updates InRelease [44.1 kB]
      Get:4 http://security.debian.org/debian-security bullseye-security/main amd64 Packages [186 kB]
      Get:5 http://deb.debian.org/debian bullseye/main amd64 Packages [8184 kB]
      Get:6 http://deb.debian.org/debian bullseye-updates/main amd64 Packages [6344 B]
      Fetched 8585 kB in 2s (5345 kB/s)
      Reading package lists...
      E: Package 'python-pip' has no installation candidate
      The command '/bin/sh -c true   && apt-get update   && apt-get install -qq --no-install-recommends       git       curl       g++       time       python       python-pip       python3       python3-pip   && apt-get clean   && rm -rf /var/lib/apt/lists/*   && pip install pyserial   && pip3 install pyserial' returned a non-zero code: 100
    

    It looks like python-pip (for Python 2) is not longer supported on Debian bullseye. Specifically "Python 2 support was dropped for Bullseye". There are some workarounds (e.g. use an older repository, get it with get-pip.py) but as the action runs inside a Docker container it's non-trivial to figure out a quick and dirty monkeypatch to try each out.

    552260f appears to fix the problem using get-pip.py. You can invoke it as a GitHub action instead of stable-1.x:

    --- a/.github/workflows/Arduino-CI.yaml
    +++ b/.github/workflows/Arduino-CI.yaml
    @@ -18,4 +18,4 @@ jobs:
         runs-on: ubuntu-latest
         steps:
           - uses: actions/checkout@v2
    -      - uses: Arduino-CI/action@stable-1.x
    +      - uses: Arduino-CI/action@552260fdcead3b5c7eba3cd4b8b203734649f646

    Hopefully, it'll be turned into a PR if it's a sustainable fix.

  4. ziotibia81 commented on Jan 8, 2023

    @ziotibia81

    Try my PR #23

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

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions