This repository was archived by the owner on Apr 4, 2026. It is now read-only.
fix: install ipython in /opt/venv-a0 so code_execution_tool can find it#2
Merged
fix: install ipython in /opt/venv-a0 so code_execution_tool can find it#2
Conversation
ipython was installed in /opt/venv (Python 3.13) but the runtime uses
/opt/venv-a0 (Python 3.12.4). code_execution_tool.py runs `ipython -c`
which fails with "command not found" because ipython is not in PATH.
Root cause: install_python.sh line 22 installs ipython in /opt/venv,
but line 58 only upgrades pip in /opt/venv-a0. The comment in
install_A0.sh ("moved to base image") refers to the wrong venv.
Fix in two places for defense in depth:
- requirements.txt: add ipython>=8.0.0 (installed in venv-a0 via uv)
- install_python.sh: also pip install ipython in venv-a0 during build
Made-with: Cursor
…dent Made-with: Cursor
7067ab0 to
347f846
Compare
7 tasks
Nafania
added a commit
that referenced
this pull request
Mar 31, 2026
- #3: duplicate response loop breaker (breaks after 3 identical responses) - #4: dynamic output truncation threshold based on context window size - #2: resolve §§secret() / $$secret() placeholders in MCP server env/args/url/headers - #19: scheduler update_task tool method + prompt documentation Already applied (verified, skipping): #22 parallel MCP init, agent0ai#62 context window optimization Upstream: PR agent0ai#1265, PR agent0ai#857, PR agent0ai#1150, PR agent0ai#1105 Made-with: Cursor
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 subscribe to this conversation on GitHub.
Already have an account?
Sign in.
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
bash: ipython: command not foundwhen agent executes Python codeipythonwas installed in/opt/venv(Python 3.13) but the runtime uses/opt/venv-a0(Python 3.12.4), soipythonwas not in PATHipythonto bothrequirements.txtandinstall_python.shfor defense in depthRoot Cause Trace
install_python.shline 22pip install ipythonin/opt/venv(3.13)install_python.shline 58pip install pipin/opt/venv-a0(3.12)setup_venv.shsource /opt/venv-a0/bin/activatecode_execution_tool.pyline 165ipython -c {code}Changes
requirements.txt— addedipython>=8.0.0docker/base/fs/ins/install_python.sh— addedipythonto pip install in/opt/venv-a0Test plan
ipythonin/opt/venv-a0/bin/Made with Cursor