Pythagora-io / gpt-pilot

The first real AI developer
Other
29.06k stars 2.91k forks source link

[Bug]: Crash when running python main.py: MissingGreenlet: greenlet_spawn has not been called #1010

Open jeremylowery opened 3 weeks ago

jeremylowery commented 3 weeks ago

Version

Command-line (Python) version

Operating System

Ubuntu Linux

What happened?

When I run "python main.py" and enter in my application specification I get the following traceback:

python main.py
[Pythagora] What is the project name?
> Test
[Spec Writer] Describe your app in as much detail as possible
  [continue]: continue
  [example]: Start an example project

[Spec Writer]
[Pythagora] Stopping Pythagora due to error:

File `core/cli/main.py`, line 37, in run_project
    success = await orca.run()
File `core/agents/orchestrator.py`, line 66, in run
    response = await agent.run()
File `core/agents/spec_writer.py`, line 60, in run
    self.next_state.specification = self.current_state.specification.clone()
File `core/db/models/specification.py`, line 48, in clone
    complexity=self.complexity,
MissingGreenlet: greenlet_spawn has not been called; can't call await_only() here. Was IO attempted in an unexpected place? (Background on this error at: https://sqlalche.me/e/20/xd2s)

Python 3.12.4 (built from source) Ubuntu 20.04

config.json

senko commented 2 weeks ago

Can you attach your pythagora.log ?

BTW GPT-3.5 is known not to work well with Pythagora.