Skip to content
New issue

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

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

Already on GitHub? # to your account

[Bug]: GPT-Pilot crashes when I try to run an existing project again #1103

Open
exelents opened this issue Oct 2, 2024 · 3 comments
Open
Labels
bug Something isn't working

Comments

@exelents
Copy link

exelents commented Oct 2, 2024

Version

Command-line (Python) version

Operating System

Linux (other)

What happened?

When I try to run a project again, to add a new feature - I got an gpt-pilot crash.

[Tech Lead] Do you have a new feature to add to the project? Just write it here
  [continue]: continue
  [end]: No, I'm done
> Replace browser pop-ups as dialogues to HTML-rendered dialogues on web page.
[Spec Writer] Making the following changes to project specification:

Replace browser pop-ups as dialogues to HTML-rendered dialogues on web page.

Updated project specification:

This is a game Snake. You control the snake on a block-wise field. Every time there is an apple on a free of snake space of a field. If snake eat it - it got +1 block in snake's length. If snake cross into window border or it's own tail - it crushes and game ends. The game should have a score - number of eaten apples. It should have a timer - time passed from game start, it stops when snake crushed, and reset at new game start. At the end of the game you should show a 5 best results table. Best results are stored into a text file in game's directory.

Replace browser pop-ups as dialogues to HTML-rendered dialogues on web page.
[Spec Writer] 
[Spec Writer] Do you accept these changes to the project specification?
  [yes]: Yes (default)
  [no]: No
>
[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 35, in run
    return await self.update_spec(iteration_mode=False)
File `core/agents/spec_writer.py`, line 112, in update_spec
    await self.ui.close_diff()
AttributeError: 'PlainConsoleUI' object has no attribute 'close_diff'

@exelents exelents added the bug Something isn't working label Oct 2, 2024
@aamasimak
Copy link

I get the same error on Windows
[Spec Writer] Do you accept these changes to the project specification?
[yes]: Yes (default)
[no]: No

yes
[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'
Exception ignored in: <function _ProactorBasePipeTransport.del at 0x000002074F60E320>
Traceback (most recent call last):
File "C:\Users\path\AppData\Local\Programs\Python\Python310\lib\asyncio\proactor_events.py", line 116, in del
self.close()
File "C:\Users\path\AppData\Local\Programs\Python\Python310\lib\asyncio\proactor_events.py", line 108, in close
self._loop.call_soon(self._call_connection_lost, None)
File "C:\Users\path\AppData\Local\Programs\Python\Python310\lib\asyncio\base_events.py", line 745, in call_soon
self._check_closed()
File "C:\Users\path\AppData\Local\Programs\Python\Python310\lib\asyncio\base_events.py", line 510, in _check_closed
raise RuntimeError('Event loop is closed')
RuntimeError: Event loop is closed

@SamDc73
Copy link

SamDc73 commented Oct 4, 2024

Getting the same error on Linux Fedora

@exelents
Copy link
Author

exelents commented Oct 7, 2024

I have found how to fix it:

  • open core/ui/console.py
  • Add this method:
    async def close_diff(self):
        pass

To class PlainConsoleUI.

Seems this is some dummy methods, that are placeholders.

Could somebody make a MR to repo, please? :)

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

No branches or pull requests

3 participants