Skip to content

Codex faills with sandbox error trying to execute python file #848

@OlexandrVovk

Description

@OlexandrVovk

IF YOU GOT SAME PROBLEM TRY TO ROLLBACK TO 0.1.2504251709 VERSION:
npm install -g @openai/[email protected]

Which model were you using?

o4-mini

What platform is your computer?

Microsoft Windows NT 10.0.26100.0 x64

What steps can reproduce the bug?

I use windows11 with wsl2 to run codex. Figured out that it can't run python files and returns sandbox error if codex is in full-auto mode. It can create and modify, but can't run. To reproduce error - call codex in full-auto mode with dumb prompt like "create python script that calculates 2**20 and return result to me"

What is the expected behavior?

It must run python file and return result of execution

What do you see instead?

Error: Sandbox was mandated, but no sandbox is available!

Additional information

Also got similar issue on ubuntu 22. Tried to launch codex via docker container using codex/codex-cli/scripts/run_in_container.sh command but it didn't help.

My setup:
Node.js v22.15.0
Codex 0.1.2504301751
Python 3.12.3

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions