joonspk-research / generative_agents

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

Enter option Error. #38

Open MAC1713 opened 1 year ago

MAC1713 commented 1 year ago

Everything is working normally, until the:"Enter option:"step, when I wrote "run 10", and press Enter key, it show me an "Error"


Here's the code: xxx@xxxMacBook-Air backend_server % python reverie.py Enter the name of the forked simulation: base_the_ville_isabella_maria_klaus Enter the name of the new simulation: demo_town_1 Note: The agents in this simulation package are computational constructs powered by generative agents architecture and LLM. We clarify that these agents lack human-like agency, consciousness, and independent decision-making. --- Enter option: run 10 Error. Enter option: And in http://localhost:8000/simulator_home, there's nothing happened, everything keep in default value.

agaldino commented 1 year ago

You can try altering the reverie.py on line 594 to show the Exception.

Like this:

 except Exception as error: 
        print ("Error.", error)
        pass

I've had the same problem and it was the Open AI quota.

PeachyTaozi commented 1 year ago

help! same error happening to me, have you solved it already?

MAC1713 commented 1 year ago

I've tried agaldino's way, and it's worked. The Exception said my OpenAi's API key is expired, so that resulted in an error.