python startup.py "Write a cli snake game"
2023-09-04 11:11:53.376 | INFO | metagpt.config:init:44 - Config loading done.
Traceback (most recent call last):
File "startup.py", line 7, in
from metagpt.roles import Architect, Engineer, ProductManager
File "/home/ubuntu/jasleen/metagpt/metagpt/roles/init.py", line 9, in
from metagpt.roles.role import Role
File "/home/ubuntu/jasleen/metagpt/metagpt/roles/role.py", line 65, in
class RoleContext(BaseModel):
File "pydantic/main.py", line 179, in pydantic.main.ModelMetaclass.new
File "pydantic/typing.py", line 399, in pydantic.typing.resolve_annotations
"""Special type construct to mark class variables.
File "/usr/lib/python3.8/typing.py", line 270, in _eval_type
return t._evaluate(globalns, localns)
File "/usr/lib/python3.8/typing.py", line 518, in _evaluate
eval(self.forward_code, globalns, localns),
File "", line 1, in
TypeError: 'type' object is not subscriptable
Try to use python3.9.x
Same as #287