Skip to content

Pyenv shim already exists. Commands constantly timeout in WSL2 environment #3891

@samargy

Description

@samargy

What version of Codex is running?

codex-cli 0.36.0

Which model were you using?

gpt-5-codex-medium

What platform is your computer?

Linux 6.6.87.2-microsoft-standard-WSL2 x86_64 x86_64

What steps can reproduce the bug?

Get codex to attempt to run any command.

What is the expected behavior?

Command runs fine.

What do you see instead?

$ rg "class Post" -n my_repo/models -g"*.py"
command timed out after 60285 milliseconds
pyenv: cannot rehash: /home/MY_USER/.pyenv/shims/.pyenv-shim exists
✗ (124) • 1m 00s

Additional information

I have made attempts of deleting pyenv, reinstalling. Rehashing etc.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workingtool-callsIssues related to tool callingwindows-osIssues related to Codex on Windows systems

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions