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

ImportError: cannot import name 'ModelField' from 'pydantic.fields' #52

Open
michaelzhouy opened this issue May 6, 2024 · 0 comments
Open

Comments

@michaelzhouy
Copy link

File "/data_local/02-hw/AutoAgents/autoagents/actions/action/init.py", line 1, in
from .action import Action
File "/data_local/02-hw/AutoAgents/autoagents/actions/action/action.py", line 14, in
from autoagents.system.llm import LLM
File "/data_local/02-hw/AutoAgents/autoagents/system/llm.py", line 7, in
from .provider.anthropic_api import Claude2 as Claude
File "/data_local/02-hw/AutoAgents/autoagents/system/provider/anthropic_api.py", line 10, in
import anthropic
File "/root/anaconda3/envs/auto-agents/lib/python3.11/site-packages/anthropic/init.py", line 3, in
from . import types
File "/root/anaconda3/envs/auto-agents/lib/python3.11/site-packages/anthropic/types/init.py", line 5, in
from .completion import Completion as Completion
File "/root/anaconda3/envs/auto-agents/lib/python3.11/site-packages/anthropic/types/completion.py", line 3, in
from .._models import BaseModel
File "/root/anaconda3/envs/auto-agents/lib/python3.11/site-packages/anthropic/_models.py", line 11, in
from pydantic.fields import ModelField
ImportError: cannot import name 'ModelField' from 'pydantic.fields' (/root/anaconda3/envs/auto-agents/lib/python3.11/site-packages/pydantic/fields.py)

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

1 participant