MetaGPT icon indicating copy to clipboard operation
MetaGPT copied to clipboard

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

Open 1linS opened this issue 1 year ago • 1 comments

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`

1linS avatar Jun 05 '24 09:06 1linS

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

usamimeri avatar Jun 05 '24 13:06 usamimeri

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

better629 avatar Oct 09 '24 17:10 better629