Pythagora-io / gpt-pilot

The first real AI developer
Other
29.62k stars 2.95k forks source link

[Bug]: Stopping Pythagora due to error #1073

Open Mladenkg opened 1 month ago

Mladenkg commented 1 month ago

Version

VisualStudio Code extension

Pythagora v0.2.18 / GPT Pilot v0.2.10-gitb9cd3a8

Operating System

Windows 10

What happened?

Just stop and i got error: 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 67, in run response = await agent.run() File core/agents/bug_hunter.py, line 44, in run return await self.check_logs() File core/agents/bug_hunter.py, line 76, in check_logs convo = convo.assistant(hunting_cycle["human_readable_instructions"]).template( File core/agents/convo.py, line 76, in template self.user(message) File core/llm/convo.py, line 96, in user return self.add("user", content, name) File core/llm/convo.py, line 61, in add raise ValueError("Empty message content") ValueError: Empty message content

rafiahmad16 commented 1 month ago

After update i received an error `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 67, 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 82, in initialize_spec self.next_state.specification.description = reviewed_spec UnboundLocalError: cannot access local variable 'reviewed_spec' where it is not associated with a value`

evinh commented 1 month ago

Exact same results as @rafiahmad16. Are there any temporary workarounds?

kunwarVivek commented 1 month ago

facing similar issues.

rafiahmad16 commented 1 month ago

@kunwarVivek @evinh yes i removed if condition in core/agents/spec_writter.py on line https://github.com/Pythagora-io/gpt-pilot/blob/98de63e9ac57792e4a0c20cb0ee8d4161b29a9ed/core/agents/spec_writer.py#L76C9-L78C93

if len(user_description) < ANALYZE_THRESHOLD and complexity != Complexity.SIMPLE:
            initial_spec = await self.analyze_spec(user_description)
            reviewed_spec = await self.review_spec(desc=user_description, spec=initial_spec)

to

initial_spec = await self.analyze_spec(user_description)
reviewed_spec = await self.review_spec(desc=user_description, spec=initial_spec)
moamen270 commented 1 month ago

facing the same issue.

ypodo commented 1 month ago

The same is true here:

[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 67, in run response = await agent.run() File core/agents/spec_writer.py, line 33, in run return await self.update_spec(iteration_mode=True) File core/agents/spec_writer.py, line 112, in update_spec await self.ui.close_diff() AttributeError: 'PlainConsoleUI' object has no attribute 'close_diff'