ChatGPTify icon indicating copy to clipboard operation
ChatGPTify copied to clipboard

ModuleNotFoundError: No module named 'openai.error'

Open Mattallmighty opened this issue 2 years ago • 1 comments

Issue:

ModuleNotFoundError: No module named 'openai.error'

It appears that the chatgpt package has a dependency on an older version of the openai library, resulting in a ModuleNotFoundError for the openai.error module.

Resolution:

The solution for this issue is to install a version of the openai library that includes the required module. In this case, installing version 0.27.0 worked:

pip install openai==0.27.0

Suggest maintainers of the repo move from chatgpt-wrapper to llm-workflow-engine for long-term support/maintainability.

Mattallmighty avatar Jan 20 '24 04:01 Mattallmighty