question: codex-cli doesn't see (or inherit) the current environment

Resolved 💬 5 comments Opened Nov 5, 2025 by vigo Closed Jan 10, 2026

maybe i'm missing something. on my current shell session, virtualenv (from pyenv) is active, python packages are installed, database, redis etc all ok. when i call "codex" i see:

Ran python - <<'PY'
  │ from django.contrib.messages.storage.fallback import FallbackStorage
  │ import inspect
  │ … +2 lines
  └ /opt/homebrew/Library/Homebrew/cmd/shellenv.sh: line 18: /bin/ps: Operation not permitted
    /Users/vigo/Repos/Dropbox/Files/shell-2022/fzf-custom-comprun.bash: line 26:
    _fzf_setup_completion: command not found
    … +2 lines
      File "<stdin>", line 1, in <module>
    ModuleNotFoundError: No module named 'django'

i normally use codex web and i have a setup script to required things to develop. as far as i understand, on my local machine, codex starts kind of clean-slate (i don't know maybe non-interactive shell) and can not run tests etc...

i see:

Tests not run (local environment lacks Django). Suggested next step: install backend
requirements and run.....

any tips? config options? help help :))))

View original on GitHub ↗

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