geekan / MetaGPT

🌟 The Multi-Agent Framework: First AI Software Company, Towards Natural Language Programming
https://deepwisdom.ai/
MIT License
44.45k stars 5.3k forks source link

在运行案例时报错,求解决 #1323

Closed 1linS closed 1 week ago

1linS commented 4 months ago

await startup(idea="write a cli blackjack game") # blackjack: 二十一点
报错 `2024-06-05 17:17:24.659 | INFO | metagpt.team:invest:90 - Investment: $3.0. 2024-06-05 17:17:24.661 | INFO | metagpt.roles.role:_act:391 - Alice(Product Manager): to do PrepareDocuments(PrepareDocuments) 2024-06-05 17:17:24.663 | WARNING | metagpt.utils.common:wrapper:649 - There is a exception in role's execution, in order to resume, we delete the newest role communication message in the role's memory. 2024-06-05 17:17:24.664 | ERROR | metagpt.utils.common:wrapper:631 - Exception occurs, start to serialize the project, exp: Traceback (most recent call last): File "c:\ProgramData\anaconda3\envs\metagpt\lib\site-packages\metagpt\utils\common.py", line 640, in wrapper return await func(self, *args, **kwargs) File "c:\ProgramData\anaconda3\envs\metagpt\lib\site-packages\metagpt\roles\role.py", line 550, in run rsp = await self.react() TypeError: expected str, bytes or os.PathLike object, not NoneType

During handling of the above exception, another exception occurred:

Traceback (most recent call last): File "c:\ProgramData\anaconda3\envs\metagpt\lib\site-packages\metagpt\utils\common.py", line 626, in wrapper result = await func(self, *args, *kwargs) File "c:\ProgramData\anaconda3\envs\metagpt\lib\site-packages\metagpt\team.py", line 134, in run await self.env.run() Exception: Traceback (most recent call last): File "c:\ProgramData\anaconda3\envs\metagpt\lib\site-packages\metagpt\utils\common.py", line 640, in wrapper return await func(self, args, **kwargs) File "c:\ProgramData\anaconda3\envs\metagpt\lib\site-packages\metagpt\roles\role.py", line 550, in run rsp = await self.react() File "c:\ProgramData\anaconda3\envs\metagpt\lib\site-packages\metagpt\roles\role.py", line 517, in react rsp = await self._react() ... filename = fspath(filename) # Does type-checking of filename. TypeError: expected str, bytes or os.PathLike object, not NoneType`

usamimeri commented 4 months ago

你能提供更详细的信息吗,例如MetaGPT版本、运行的代码

better629 commented 1 week ago

Due to the lack of updates or replies by the user for a long time, we will close it. Please reopen it if necessary.