OpenBMB / ChatDev

Create Customized Software using Natural Language Idea (through LLM-powered Multi-Agent Collaboration)
https://arxiv.org/abs/2307.07924
Apache License 2.0
25.67k stars 3.23k forks source link

error running #396

Closed winos closed 3 months ago

winos commented 4 months ago

Hi, actually ii try test the tool, but when i running the console show it:

command python3 run.py --task "test a agency tech" --name "flash"

Traceback (most recent call last): File "run.py", line 24, in from chatdev.chat_chain import ChatChain File "/home/ChatDev/chatdev/chat_chain.py", line 12, in from chatdev.chat_env import ChatEnv, ChatEnvConfig File "/home/ChatDev/chatdev/chat_env.py", line 52, in class ChatEnv: File "/home/ChatDev/chatdev/chat_env.py", line 107, in ChatEnv def exist_bugs(self) -> tuple[bool, str]: TypeError: 'type' object is not subscriptable

what do i do?

shiowen commented 3 months ago

The specific error in your traceback is related to using tuple[bool, str], which is a feature of Python 3.9 and later. If you are using an earlier version of Python, this syntax will not work.

You can fix it by trying to upgrade to Python 3.9 or later version