-
Notifications
You must be signed in to change notification settings - Fork 347
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
ModuleNotFoundError: No module named 'openai.lib._parsing' #51
Comments
upgrading autogen worked for me |
i have other problem with autogen (0.7.2): File ~/anaconda3/envs/python310/lib/python3.10/site-packages/autogen/init.py:9 ImportError: cannot import name 'ModelToolNotSupportedError' from 'autogen.exception_utils' (/home/pinguin/anaconda3/envs/python310/lib/python3.10/site-packages/autogen/exception_utils.py) |
You can try reinstalling the OpenAI package |
I have solved this problem by reinstalling OpenAI and pyautogen. |
I ran into a problem when deploy the model.
Here is the error:
ModuleNotFoundError Traceback (most recent call last)
in <cell line: 2>()
1 import os
----> 2 import autogen
3 from textwrap import dedent
4 from finrobot.utils import register_keys_from_json
5 from finrobot.agents.workflow import SingleAssistantShadow
6 frames
/usr/local/lib/python3.10/dist-packages/autogen/oai/client.py in
34 from openai import APIError, APITimeoutError, AzureOpenAI, OpenAI
35 from openai import version as OPENAIVERSION
---> 36 from openai.lib._parsing._completions import type_to_response_format_param
37 from openai.resources import Completions
38 from openai.types.chat import ChatCompletion
ModuleNotFoundError: No module named 'openai.lib._parsing'
The text was updated successfully, but these errors were encountered: