fix(docker): apt install python3-pip first — v1.4.3 round 2#6
Closed
notabotchef wants to merge 1 commit intomainfrom
Closed
fix(docker): apt install python3-pip first — v1.4.3 round 2#6notabotchef wants to merge 1 commit intomainfrom
notabotchef wants to merge 1 commit intomainfrom
Conversation
v1.4.2 still failed to build: #12 0.117 /usr/bin/python3: No module named pip The frdel/agent-zero-run base image ships python3 but does NOT bundle the pip module — so `python3 -m pip` fails the same way bare `pip` did. Need to install pip via apt before we can use it. Fix: - apt-get install -y python3-pip first (one extra layer) - python3 -m pip install --break-system-packages (PEP 668) - Loop over candidate A0 venv paths (/opt/venv, /a0/venv, /usr/local/venv) and install into each that exists, so the agent runtime sees the same packages regardless of which Python A0 hands the plugin Bumps to 1.4.3, README What's New entry explains both rounds.
4 tasks
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
v1.4.2's pip fix was incomplete. The next docker-publish run got past the bare
pipissue but immediately hit:frdel/agent-zero-runshipspython3without thepipmodule bundled. So bothpip(v1.4.1) andpython3 -m pip(v1.4.2) fail for the same root cause: pip is simply not installed.Fix
apt-get install python3-pipfirst — guarantees pip exists. Adds ~5 MB and one layer.python3 -m pip install --break-system-packagesfor PEP 668 (Debian Bookworm+)./opt/venv,/a0/venv,/usr/local/venv) and install the same packages into any that exist. Belt-and-suspenders for whichever Python A0 hands the plugin at runtime.Test plan
bash -nof the RUN block — cleanplugin.yaml→ 1.4.3docker-publish.ymlgreen on the v1.4.3 tagFiles
Dockerfile— apt install python3-pip + venv loopplugin.yaml— version 1.4.3README.md— version badge + What's New entry