Skip to content

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

@vigo

Description

@vigo

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 :))))

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workingtool-callsIssues related to tool calling

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions