Skip to content

[Bug]: Error When Running the Program from the Command Line  #1105

@suhaib0edu

Description

@suhaib0edu

Version

Command-line (Python) version

Operating System

Ubuntu Linux

What happened?

Error When Running the Program

When trying to run the program using the following command:

$ python3 main.py

I received the following message:

[Pythagora] What is the project name?
> UIchatGPT
[Spec Writer] Describe your app in as much detail as possible
  [example]: Start an example project
  [import]: Import an existing project
 
#### **Integration with Third-Party Services:**
1. **OpenAI API:** The program integrates with the OpenAI API to call the artificial intelligence model and send/receive data.
2. **Authentication Using API Key:** The program requires setting the user's API key to access OpenAI services.
 
### Summary
This program is a simple yet effective application for chatting with ChatGPT, providing users with an easy and quick way to interact with the artificial intelligence model through an interactive interface.
[Spec Writer] Checking the complexity of the prompt ...

[Pythagora] Stopping Pythagora due to error:

File core/cli/main.py, line 38, in run_project
    success = await orca.run()
File core/agents/orchestrator.py, line 78, in run
    response = await agent.run()
File core/agents/spec_writer.py, line 37, in run
    return await self.initialize_spec()
File core/agents/spec_writer.py, line 74, in initialize_spec
    self.next_state.specification = self.current_state.specification.clone()
File core/db/models/specification.py, line 55, 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)

Error Details

It seems that the MissingGreenlet error indicates that there is an attempt to call an asynchronous function (await_only()) in an unexpected place, which may result from not calling greenlet_spawn in the correct context.

Note: I was working on the program through the command line only.

Request for Help

Can you help me identify the cause of this error and how to fix it? Thank you in advance for any assistance!

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions