Codex `login` has silent dependency on python3

Resolved 💬 3 comments Opened Jul 13, 2025 by tabletcorry Closed Oct 27, 2025

What version of Codex is running?

codex-cli 0.6.0

Which model were you using?

N/A

What platform is your computer?

Linux 6.12.28 aarch64 unknown

What steps can reproduce the bug?

Execute codex login inside of container that lacks the python3 binary.

What is the expected behavior?

Either of:

  • Work regardless of the presence of python3 since that is an odd dependency for a rust program.
  • Present a reasonable error message to allow the user to resolve the issue.

What do you see instead?

Program terminates with completely unclear error message:

Error logging in: No such file or directory (os error 2)

I had to use strace to figure out the cause of the issue.

Additional information

Obviously it is fairly rare for a platform to lack python3, but it does happen, especially when using tools inside minimal container images. So I can workaround this, but it seems an oddly sharp edge to have.

Presumably caused by this code, though I didn't check for other instances: https://github.com/openai/codex/blob/main/codex-rs/login/src/lib.rs#L31

View original on GitHub ↗

This issue has 3 comments on GitHub. Read the full discussion on GitHub ↗