joonspk-research / generative_agents

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

First time I run the simulation, it shows "Please start the backend first." #60

Open Leon1Wei opened 1 year ago

Leon1Wei commented 1 year ago

As title says, I tried over and over again, it still shows Please start the backend first.

xcfcode commented 1 year ago

Have you already started the web server via python manage.py runserver?

SergeyAP commented 1 year ago

Same issue for me. @xcfcode yes, backend's process is working. Also I get an issue to backend's log: 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/zachem/projects/generative_agents/reverie/backend_server/reverie.py", line 468, in open_server rs.start_server(int_count) File "/Users/zachem/projects/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/112/movement/0.json' Error. backend is continue working

Checked on Python3.9 and Python 3.10 MacOS/UbuntuServer22.04

SpencerWF commented 1 year ago

Are you running both the frontend and backend on the same computer?

Same issue for me. @xcfcode yes, backend's process is working. Also I get an issue to backend's log: 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/zachem/projects/generative_agents/reverie/backend_server/reverie.py", line 468, in open_server rs.start_server(int_count) File "/Users/zachem/projects/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/112/movement/0.json' Error. backend is continue working

Checked on Python3.9 and Python 3.10 MacOS/UbuntuServer22.04

This issue is known, and documented in issue #2

SergeyAP commented 1 year ago

Are you running both the frontend and backend on the same computer?

Yes, I've tried that on two VMs and the result is the same

SpencerWF commented 1 year ago

Okay, are you sure the VM can access it's own server? Can you try without the VM? I think it might be that a disconnection between your backend and your frontend is the issue.

HananJackie commented 12 months ago

I believe I have the same issue. everything works up until step 3.

with python 3.10 - the first time I open chrome on http://localhost:8000/simulator_home it shows "Please start the backend first." with python 3.9 - the first time I open chrome on http://localhost:8000/simulator_home it shows the map and the characters details, without any ability to scale the map. Once I refresh the browser it says "Please start the backend first.".

TommyZihao commented 11 months ago

same problem

TommyZihao commented 11 months ago

This bug only happens when you run for the first time. To fix this bug, just need to close all terminal, and restart from the python manage.py runserver.

haoznic commented 5 months ago

i modify the meta.json in storage/ project / reverie/ change the "step" and "curr_time" so the simulation can continue. i got this problem when i close / reopen my laptop and reopen the browser, then the connection failed, and i stuck here

austinmw commented 3 months ago

same issue — any fix?