joonspk-research / generative_agents

Generative Agents: Interactive Simulacra of Human Behavior
Apache License 2.0
16.26k stars 2.09k forks source link

FileNotFoundError: [Errno 2] No such file or directory: '../../environment/frontend_server/storage/test1/movement/0.json' #40

Open gakkiismywife opened 1 year ago

gakkiismywife commented 1 year ago

when the process running the error output

yizhangliu commented 1 year ago

mkdir 'movement' in 'environment/frontend_server/storage/base_the_ville_isabella_maria_klaus' or 'environment/frontend_server/storage/base_the_ville_n25'

go-maple commented 1 year ago

try to add the code ' movementFolder = f"{sim_folder}/movement" if not os.path.exists(movementFolder): os.mkdir(movementFolder) ' before ' curr_move_file = f"{sim_folder}/movement/{self.step}.json" with open(curr_move_file, "w") as outfile: outfile.write(json.dumps(movements, indent=2)) '

Huayu-Qin commented 1 year ago

try to add the code ' movementFolder = f"{sim_folder}/movement" if not os.path.exists(movementFolder): os.mkdir(movementFolder) ' before ' curr_move_file = f"{sim_folder}/movement/{self.step}.json" with open(curr_move_file, "w") as outfile: outfile.write(json.dumps(movements, indent=2)) '

where should it to be added?thanks

Selenium39 commented 1 year ago

https://github.com/joonspk-research/generative_agents/pull/19 @Huayu-Qin @gakkiismywife