gpt-researcher icon indicating copy to clipboard operation
gpt-researcher copied to clipboard

Long prompts give FileNotFoundError

Open costabm opened this issue 2 weeks ago • 1 comments

Short prompts work well, but with a longer prompt such as:

"When designing long-span road bridges to dynamic loads such as wind or waves, it might be relevant to establish design limits on the vertical and horizontal accelerations of the bridge, to keep traffic safe under a typical 1-year return period storm. Help me find several references of key bridges where such acceleration limits have been established in the design stage, whether in terms of RMS or 1-hour extreme values. It needs to be road bridges, not pedestrian nor rail."

I get:

File "C:\Users\user\PycharmProjects\gpt-researcher\backend\server\server_utils.py", line 28, in init with open(self.log_file, 'w') as f: ^^^^^^^^^^^^^^^^^^^^^^^^ FileNotFoundError: [Errno 2] No such file or directory: 'outputs\task_1739276129_When designing long-span road bridges to dynamic loads such as wind or waves it might be relevant to establish design limits on the vertical and horizontal accelerations of the bridge to keep traffic safe under a t.json' INFO: connection closed

My guess of the problem is that it seems that it tries to create a .json file with the full prompt in the file name, which my Windows won't allow.

costabm avatar Feb 11 '25 12:02 costabm