Open Mladenkg opened 3 months 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`
Exact same results as @rafiahmad16. Are there any temporary workarounds?
facing similar issues.
@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)
facing the same issue.
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'
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() Filecore/agents/orchestrator.py
, line 67, in run response = await agent.run() Filecore/agents/bug_hunter.py
, line 44, in run return await self.check_logs() Filecore/agents/bug_hunter.py
, line 76, in check_logs convo = convo.assistant(hunting_cycle["human_readable_instructions"]).template( Filecore/agents/convo.py
, line 76, in template self.user(message) Filecore/llm/convo.py
, line 96, in user return self.add("user", content, name) Filecore/llm/convo.py
, line 61, in add raise ValueError("Empty message content") ValueError: Empty message content