Repository navigation
action failing because of missing python-pip #22
Copy link
Copy link
Open
Description
Activity
- changed the title
[-]action failing because of missing python[/-][+]action failing because of missing python-pip[/+]on Jan 2, 2022 The problem is still present.
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: 100It 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 withget-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.
Reacted by neo- added a commit that references this issue
on Jan 8, 2023 Try my PR #23
Metadata
Metadata
Assignees
Labels
No labels
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 candidateI'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.Arduino_FreeRTOS_Library