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' #49

Closed
uripeled2 opened this issue Jun 30, 2023 · 1 comment
Closed

Comments

@uripeled2
Copy link
Contributor

I am using python 3.9 and I install anthropic==0.3.1 and when I am running:
from anthropic import AsyncAnthropic
I am getting:
Traceback (most recent call last):
File "", line 1, in
File "venv/lib/python3.9/site-packages/anthropic/init.py", line 3, in
from . import types
File "venv/lib/python3.9/site-packages/anthropic/types/init.py", line 5, in
from .completion import Completion as Completion
File "venv/lib/python3.9/site-packages/anthropic/types/completion.py", line 3, in
from .._models import BaseModel
File "venv/lib/python3.9/site-packages/anthropic/_models.py", line 11, in
from pydantic.fields import ModelField
ImportError: cannot import name 'ModelField' from 'pydantic.fields' (venv/lib/python3.9/site-packages/pydantic/fields.py)

@rattrayalex
Copy link
Collaborator

Fixed in v0.3.2

ciuzaak added a commit to ciuzaak/Claude-Telegram-Bot that referenced this issue Jul 1, 2023
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