assafelovic / gpt-researcher

GPT based autonomous agent that does online comprehensive research on any given topic
https://gptr.dev
MIT License
13.06k stars 1.61k forks source link

"FileNotFoundError: [Errno 2] No such file or directory" with particular prompts #641

Open JustUser1410 opened 3 days ago

JustUser1410 commented 3 days ago

When using multi-agents module I started getting "FileNotFoundError" whenever there is a space at character position 40. For example: "Exploring the effects of climate change on marine ecosystems" or "Analyzing the impact of social media on political discourse" Will produce the same error: FileNotFoundError: [Errno 2] No such file or directory: './outputs/run_1719876530_Exploring the effects of climate change /0f86e1ad025547eda9bce70cbf122d73.md'

Turns out, whenever you create/rename folder and there is a space at the end of its name, Windows will truncate it and script won't be able to find it anymore.

assafelovic commented 3 days ago

Can you try pulling the latest and see if it resolves this issue @JustUser1410 ?