tom-doerr / zsh_codex

This is a ZSH plugin that enables you to use OpenAI's Codex AI in the command line.
MIT License
1.35k stars 63 forks source link

ModuleNotFoundError No module named 'openai' #43

Open lopugit opened 2 months ago

lopugit commented 2 months ago

I seem to be getting this error 🤔

I think it's a python env issue but I'm not sure?

➜  v6 git:(feature/DDA-2350-V6-components) ✗ # testTraceback (most recent call last):
  File "/Users/lopu/.oh-my-zsh/custom/plugins/zsh_codex/create_completion.py", line 3, in <module>
    from openai import OpenAI
ModuleNotFoundError: No module named 'openai'
lopugit commented 2 months ago

Hmm, overwriting python's env system fixed it but I don't think that's an ideal solution

pip3 install openai --break-system-packages

Not sure why it just suddenly stopped working, maybe I updated python or pip ??

tom-doerr commented 1 month ago

Yeah not sure what's going on there. Sometimes it helps to to python3 -m pip install ...., but I think this might not be one of those cases.