generative_agents icon indicating copy to clipboard operation
generative_agents copied to clipboard

'Please start the backend first' when backend is started.

Open alric05 opened this issue 2 years ago • 5 comments

I see the message Please start the backend first' when backend is started. Steps:

  • start environment server with manage.py
  • start front end with reverie.py

When i visit localhost:8000/simulator_home, i see the map and list of agents correctly ONLY the first time it loads. Then, if i refresh the page i see the message 'Please start the backend first', eventhough i see that actions are being generated like 'prepare valentines day'... after run 10.

Running on mac os. All correctly installed.

alric05 avatar Aug 29 '23 20:08 alric05

Taking the execution of the world template base_the_ville_isabella_maria_klaus as an example, in the command line, you need to start by using the run [steps] command.

This command will first make around 70 GPT requests to initialize the daily plans of various game characters. Once the initialization is complete, the command-line interface will stop generating new content.

At this point, you can use the arrow keys on the keyboard in the frontend page to control the map display area. The game world will officially start running when the user's view area is moved.

bswaterb avatar Aug 30 '23 06:08 bswaterb

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.

TommyZihao avatar Oct 17 '23 01:10 TommyZihao

have you resolved it?

myrainbowandsky avatar Nov 01 '23 01:11 myrainbowandsky

https://github.com/joonspk-research/generative_agents/blob/fe05a71d3e4ed7d10bf68aa4eda6dd995ec070f4/environment/frontend_server/translator/views.py#L120

It's because of this line. What is this for?

night-fury-web avatar Dec 03 '23 21:12 night-fury-web

@alric05 Where you able to figure out the problem? I'm having the same issues at the moments

hcascavita1 avatar Jan 21 '24 01:01 hcascavita1