joonspk-research / generative_agents

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

No such file or directory: '../../environment/frontend_server/storage/test-simulation/movement/0.json' #59

Open zhlei07 opened 1 year ago

zhlei07 commented 1 year ago

Klaus Mueller persona.scratch.importance_trigger_curr:: 145 150 aldhfoaf/???? the Ville:Dorm for Oak Hill College:Klaus Mueller's room:bed Traceback (most recent call last): File "/Users/zhlei/generative_agents/reverie/backend_server/reverie.py", line 468, in open_server rs.start_server(int_count) File "/Users/zhlei/generative_agents/reverie/backend_server/reverie.py", line 401, in start_server with open(curr_move_file, "w") as outfile: FileNotFoundError: [Errno 2] No such file or directory: '../../environment/frontend_server/storage/test-simulation/movement/0.json'

xcfcode commented 1 year ago

mkdir ./generative_agents/environment/frontend_server/storage/base_the_ville_isabella_maria_klaus/movement then start the simulation

MrElysium commented 1 year ago

add code before File "/Users/zhlei/generative_agents/reverie/backend_server/reverie.py", line 400

          curr_move_path = f"{sim_folder}/movement"
          # If the folder doesn't exist, we create it.
          if not os.path.exists(curr_move_path):
            os.makedirs(curr_move_path)