Skip to content
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

Open
Calab222 opened this issue Jan 14, 2025 · 1 comment
Open

ModuleNotFoundError: No module named 'openai.lib._parsing' #51

Calab222 opened this issue Jan 14, 2025 · 1 comment

Comments

@Calab222
Copy link

Calab222 commented Jan 14, 2025

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'

@getorca
Copy link

getorca commented Jan 15, 2025

upgrading autogen worked for me

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants