Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Bug]: Stopping Pythagora due to error #1073

Open
Mladenkg opened this issue Jul 30, 2024 · 6 comments
Open

[Bug]: Stopping Pythagora due to error #1073

Mladenkg opened this issue Jul 30, 2024 · 6 comments
Labels
bug Something isn't working

Comments

@Mladenkg
Copy link

Mladenkg commented Jul 30, 2024

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

@Mladenkg Mladenkg added the bug Something isn't working label Jul 30, 2024
@rafiahmad16
Copy link

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
Copy link

evinh commented Aug 1, 2024

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

@kunwarVivek
Copy link

facing similar issues.

@rafiahmad16
Copy link

rafiahmad16 commented Aug 3, 2024

@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
Copy link

facing the same issue.

@ypodo
Copy link

ypodo commented Aug 13, 2024

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'

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

6 participants