2023-08-31 17:22:09.757 | INFO | metagpt.config:init:44 - Config loading done.
Traceback (most recent call last):
File "/Users/tianfei/Documents/personal/metagpt/metagpt/metagpt/startup.py", line 7, in
from metagpt.roles import Architect, Engineer, ProductManager, ProjectManager, QaEngineer
File "/Users/tianfei/Documents/personal/metagpt/metagpt/metagpt/metagpt/roles/init.py", line 9, in
from metagpt.roles.role import Role
File "/Users/tianfei/Documents/personal/metagpt/metagpt/metagpt/metagpt/roles/role.py", line 16, in
from metagpt.actions import Action, ActionOutput
File "/Users/tianfei/Documents/personal/metagpt/metagpt/metagpt/metagpt/actions/init.py", line 10, in
from metagpt.actions.action import Action
File "/Users/tianfei/Documents/personal/metagpt/metagpt/metagpt/metagpt/actions/action.py", line 14, in
from metagpt.llm import LLM
File "/Users/tianfei/Documents/personal/metagpt/metagpt/metagpt/metagpt/llm.py", line 9, in
from metagpt.provider.anthropic_api import Claude2 as Claude
File "/Users/tianfei/Documents/personal/metagpt/metagpt/metagpt/metagpt/provider/anthropic_api.py", line 9, in
import anthropic
File "/Library/Frameworks/Python.framework/Versions/3.9/lib/python3.9/site-packages/anthropic-0.3.6-py3.9.egg/anthropic/init.py", line 3, in
from . import types
File "/Library/Frameworks/Python.framework/Versions/3.9/lib/python3.9/site-packages/anthropic-0.3.6-py3.9.egg/anthropic/types/init.py", line 5, in
from .completion import Completion as Completion
File "/Library/Frameworks/Python.framework/Versions/3.9/lib/python3.9/site-packages/anthropic-0.3.6-py3.9.egg/anthropic/types/completion.py", line 3, in
from .._models import BaseModel
File "/Library/Frameworks/Python.framework/Versions/3.9/lib/python3.9/site-packages/anthropic-0.3.6-py3.9.egg/anthropic/_models.py", line 11, in
from pydantic.fields import ModelField
ImportError: cannot import name 'ModelField' from 'pydantic.fields' (/Library/Frameworks/Python.framework/Versions/3.9/lib/python3.9/site-packages/pydantic/fields.py)
2023-08-31 17:22:09.757 | INFO | metagpt.config:init:44 - Config loading done. Traceback (most recent call last): File "/Users/tianfei/Documents/personal/metagpt/metagpt/metagpt/startup.py", line 7, in
from metagpt.roles import Architect, Engineer, ProductManager, ProjectManager, QaEngineer
File "/Users/tianfei/Documents/personal/metagpt/metagpt/metagpt/metagpt/roles/init.py", line 9, in
from metagpt.roles.role import Role
File "/Users/tianfei/Documents/personal/metagpt/metagpt/metagpt/metagpt/roles/role.py", line 16, in
from metagpt.actions import Action, ActionOutput
File "/Users/tianfei/Documents/personal/metagpt/metagpt/metagpt/metagpt/actions/init.py", line 10, in
from metagpt.actions.action import Action
File "/Users/tianfei/Documents/personal/metagpt/metagpt/metagpt/metagpt/actions/action.py", line 14, in
from metagpt.llm import LLM
File "/Users/tianfei/Documents/personal/metagpt/metagpt/metagpt/metagpt/llm.py", line 9, in
from metagpt.provider.anthropic_api import Claude2 as Claude
File "/Users/tianfei/Documents/personal/metagpt/metagpt/metagpt/metagpt/provider/anthropic_api.py", line 9, in
import anthropic
File "/Library/Frameworks/Python.framework/Versions/3.9/lib/python3.9/site-packages/anthropic-0.3.6-py3.9.egg/anthropic/init.py", line 3, in
from . import types
File "/Library/Frameworks/Python.framework/Versions/3.9/lib/python3.9/site-packages/anthropic-0.3.6-py3.9.egg/anthropic/types/init.py", line 5, in
from .completion import Completion as Completion
File "/Library/Frameworks/Python.framework/Versions/3.9/lib/python3.9/site-packages/anthropic-0.3.6-py3.9.egg/anthropic/types/completion.py", line 3, in
from .._models import BaseModel
File "/Library/Frameworks/Python.framework/Versions/3.9/lib/python3.9/site-packages/anthropic-0.3.6-py3.9.egg/anthropic/_models.py", line 11, in
from pydantic.fields import ModelField
ImportError: cannot import name 'ModelField' from 'pydantic.fields' (/Library/Frameworks/Python.framework/Versions/3.9/lib/python3.9/site-packages/pydantic/fields.py)