openclaw - ✅(Solved) Fix [Bug]: moltbot-sandbox-fs: python3: not found — file bridge fails despite python3 being installed [1 pull requests, 1 participants]

Official PRs (…)
ON THIS PAGE

Recommended Tools

×6

Utilities matched from this issue’s tags and category — try them while you read without losing context.

GitHub issue graph ai analysis

Paste a GitHub issue URL. We fetch that issue, discover linked issues from bodies/comments/timeline, collect linked pull requests, and produce a structured English report.

The report is written in English Markdown for sharing and archival.

Helpful · Quick feedback

Loading…
GitHub stats
openclaw/openclaw#58527Fetched 2026-04-08 02:01:35
View on GitHub
Comments
0
Participants
1
Timeline
5
Reactions
0
Participants
Timeline (top)
labeled ×2closed ×1cross-referenced ×1locked ×1

All workspace file writes fail with:

moltbot-sandbox-fs: 2: python3: not found Python 3 is confirmed installed at /usr/bin/python3. The moltbot-sandbox-fs bridge script appears to run in a shell context that doesn't inherit the system PATH, so it can't find python3 even though it exists.

Error Message

Any agent write tool call to the workspace returns the above error.

Root Cause

All workspace file writes fail with:

moltbot-sandbox-fs: 2: python3: not found Python 3 is confirmed installed at /usr/bin/python3. The moltbot-sandbox-fs bridge script appears to run in a shell context that doesn't inherit the system PATH, so it can't find python3 even though it exists.

Fix Action

Fixed

PR fix notes

PR #58573: fix(sandbox): resolve pinned fs helper python without PATH

Description (problem / solution / changelog)

Summary

  • resolve the pinned sandbox mutation helper python interpreter from absolute candidates before falling back to PATH
  • run the helper via python -c so stdin remains available for write payload bytes
  • add a regression test covering an empty-PATH shell invocation

Testing

  • pnpm vitest run src/agents/sandbox/fs-bridge-mutation-helper.test.ts

Closes #58527

Changed files

  • src/agents/sandbox/fs-bridge-mutation-helper.test.ts (modified, +32/-2)
  • src/agents/sandbox/fs-bridge-mutation-helper.ts (modified, +21/-3)
RAW_BUFFERClick to expand / collapse

Bug type

Behavior bug (incorrect output/state without crash)

Beta release blocker

No

Summary

All workspace file writes fail with:

moltbot-sandbox-fs: 2: python3: not found Python 3 is confirmed installed at /usr/bin/python3. The moltbot-sandbox-fs bridge script appears to run in a shell context that doesn't inherit the system PATH, so it can't find python3 even though it exists.

Steps to reproduce

Any agent write tool call to the workspace returns the above error.

Expected behavior

Workspace file writes succeed

Actual behavior

moltbot-sandbox-fs: 2: python3: not found

OpenClaw version

v2026.3.28

Operating system

DigitalOcean VPS, Docker container (no systemd), Ubuntu

Install method

No response

Model

anthropic/claude-sonnet-4-6

Provider / routing chain

api-key via ANTHROPIC_API_KEY (direct Anthropic API, no proxy)

Additional provider/model setup details

No response

Logs, screenshots, and evidence

Impact and severity

No response

Additional information

No response

extent analysis

TL;DR

The most likely fix is to modify the moltbot-sandbox-fs bridge script to use the absolute path to the python3 executable.

Guidance

  • Verify the python3 executable path is correctly set to /usr/bin/python3 in the system configuration.
  • Update the moltbot-sandbox-fs bridge script to use the absolute path /usr/bin/python3 instead of relying on the system PATH.
  • Check the shell context in which the moltbot-sandbox-fs bridge script is running to ensure it has the necessary environment variables set.
  • Consider setting the PATH environment variable explicitly in the script or the container configuration to include /usr/bin.

Example

# Example of updating the script to use the absolute path
/usr/bin/python3 script.py

Notes

The solution assumes that the python3 executable is indeed installed at /usr/bin/python3 and that the issue is solely due to the PATH not being inherited by the shell context in which the script runs.

Recommendation

Apply workaround: Update the moltbot-sandbox-fs bridge script to use the absolute path to the python3 executable, as this directly addresses the error message indicating that python3 cannot be found.

Vote matrix · Quick signals

Works
Did the solution work? Tap to confirm.
Easy Fix
Was it a quick fix?
Time Saver
Did it save you time?
Blocking
Was it severely blocking?
Common Issue
Are others likely hitting this too?
Flaky / Intermittent
Is it intermittent?
Verified / Reproducible
Can you reproduce it reliably?
Loading…

FAQ

Expected behavior

Workspace file writes succeed

Still need to ship something?

×6

Another batch ranked right after the header list — different links, same matching logic.

Back to top recommendations

TRENDING