MSUSAzureAccelerators / Azure-Cognitive-Search-Azure-OpenAI-Accelerator

Virtual Assistant - GPT Smart Search Engine - Bot Framework + Azure OpenAI + Azure AI Search + Azure SQL + Bing API + Azure Document Intelligence + LangChain + CosmosDB
https://gptsmartsearchapp.azurewebsites.net
MIT License
336 stars 555 forks source link

No module named 'openai.error' #35

Open wuimin opened 1 year ago

wuimin commented 1 year ago

when deploy the both backend and frontend application, there's error of "no module named openai.error. then the application canot work. the details is as the following:

ModuleNotFoundError: No module named 'openai.error' Traceback: File "/tmp/8dbe04b52defefa/antenv/lib/python3.10/site-packages/streamlit/runtime/scriptrunner/script_runner.py", line 534, in _run_script exec(code, module.dict) File "/tmp/8dbe04b52defefa/pages/1_Search.py", line 8, in from openai.error import OpenAIError

wuimin commented 1 year ago

the issue was solved, because of the openai version