Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

action failing because of missing python-pip #22

Open
feilipu opened this issue Jan 2, 2022 · 3 comments
Open

action failing because of missing python-pip #22

feilipu opened this issue Jan 2, 2022 · 3 comments

Comments

@feilipu
Copy link

feilipu commented Jan 2, 2022

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

@feilipu feilipu changed the title action failing because of missing python action failing because of missing python-pip Jan 2, 2022
@angrest
Copy link

angrest commented Sep 16, 2022

The problem is still present.

@matburnham
Copy link

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.

sofian added a commit to SofaPirate/Plaquette that referenced this issue Jan 8, 2023
@ziotibia81
Copy link

Try my PR #23

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants