Reputation: 11
I'm a Mac user, and I'm using Python 3.12 in a virtual environment. I'm encountering a ModuleNotFoundError when trying to run my AutoGPT project. After executing "python -m autogpt," I receive the following error:
ModuleNotFoundError: No module named 'openai.util'
I have already tried updating the openai package, I have run requirements.txt ind the docs folder and autogpt.sh run --help
I hope someone can assist me.
Upvotes: 0
Views: 925
Reputation: 11
I have resolved the issue with the ModuleNotFoundError: No module named 'openai.util' it has been resolved by using a lower version of openai.
As for the specific openai versions to install to avoid the error, you can consider either openai==0.27.10 or openai==0.27.0, which should work without encountering the APIConnectionError.
AutoGPT starts now, but If I type in a command it crashes with this error: raise error.APIConnectionError("Error communicating with OpenAI") from e openai.error.APIConnectionError: Error communicating with OpenAI
Can someone assist me?
Upvotes: 0