Replies: 1 comment
-
did you find a solution to this ? |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi - relatively new to all of this. I keep getting the following error, any help would be greatly appreciated:
---------- GPT PILOT EXITING WITH ERROR ----------
Traceback (most recent call last):
File "D:\GPT\gpt-pilot\pilot-env\Lib\site-packages\peewee.py", line 7117, in get
return clone.execute(database)[0]
~~~~~~~~~~~~~~~~~~~~~~~^^^
File "D:\GPT\gpt-pilot\pilot-env\Lib\site-packages\peewee.py", line 4481, in getitem
return self.row_cache[item]
~~~~~~~~~~~~~~^^^^^^
IndexError: list index out of range
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "D:\GPT\gpt-pilot\pilot-env\Lib\site-packages\peewee.py", line 6711, in get_or_create
return query.get(), False
^^^^^^^^^^^
File "D:\GPT\gpt-pilot\pilot-env\Lib\site-packages\peewee.py", line 7120, in get
raise self.model.DoesNotExist('%s instance matching query does '
database.models.files.FileDoesNotExist: <Model: File> instance matching query does not exist:
SQL: SELECT "t1"."id", "t1"."created_at", "t1"."updated_at", "t1"."app_id", "t1"."name", "t1"."path", "t1"."full_path", "t1"."description" FROM "file" AS "t1" WHERE (((("t1"."app_id" = ?) AND ("t1"."name" = ?)) AND ("t1"."path" = ?)) AND ("t1"."full_path" = ?)) LIMIT ? OFFSET ?
Params: ['dc3754de77094b71ab8afbb3b58836d6', 'index.js', '', 'D:\GPT\gpt-pilot\workspace\Test3\index.js', 1, 0]
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "D:\GPT\gpt-pilot\pilot\main.py", line 68, in
project.start()
File "D:\GPT\gpt-pilot\pilot\helpers\Project.py", line 137, in start
self.developer.start_coding()
File "D:\GPT\gpt-pilot\pilot\helpers\agents\Developer.py", line 52, in start_coding
self.implement_task(i, dev_task)
File "D:\GPT\gpt-pilot\pilot\helpers\agents\Developer.py", line 98, in implement_task
result = self.execute_task(convo_dev_task,
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "D:\GPT\gpt-pilot\pilot\helpers\agents\Developer.py", line 339, in execute_task
result = self.step_command_run(convo, step, i, success_with_cli_response=need_to_see_output)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "D:\GPT\gpt-pilot\pilot\helpers\agents\Developer.py", line 157, in step_command_run
return run_command_until_success(convo, data['command'],
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "D:\GPT\gpt-pilot\pilot\helpers\cli.py", line 457, in run_command_until_success
response = convo.send_message('dev_ops/ran_command.prompt',
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "D:\GPT\gpt-pilot\pilot\helpers\AgentConvo.py", line 92, in send_message
save_development_step(self.agent.project, prompt_path, prompt_data, self.messages, response)
File "D:\GPT\gpt-pilot\pilot\database\database.py", line 295, in save_development_step
project.save_files_snapshot(development_step.id)
File "D:\GPT\gpt-pilot\pilot\helpers\Project.py", line 285, in save_files_snapshot
file_in_db, created = File.get_or_create(
^^^^^^^^^^^^^^^^^^^
File "D:\GPT\gpt-pilot\pilot-env\Lib\site-packages\peewee.py", line 6713, in get_or_create
raise exc
File "D:\GPT\gpt-pilot\pilot-env\Lib\site-packages\peewee.py", line 6708, in get_or_create
return cls.create(**kwargs), True
^^^^^^^^^^^^^^^^^^^^
File "D:\GPT\gpt-pilot\pilot-env\Lib\site-packages\peewee.py", line 6577, in create
inst.save(force_insert=True)
File "D:\GPT\gpt-pilot\pilot-env\Lib\site-packages\peewee.py", line 6787, in save
pk = self.insert(**field_dict).execute()
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "D:\GPT\gpt-pilot\pilot-env\Lib\site-packages\peewee.py", line 1966, in inner
return method(self, database, *args, **kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "D:\GPT\gpt-pilot\pilot-env\Lib\site-packages\peewee.py", line 2037, in execute
return self._execute(database)
^^^^^^^^^^^^^^^^^^^^^^^
File "D:\GPT\gpt-pilot\pilot-env\Lib\site-packages\peewee.py", line 2842, in _execute
return super(Insert, self)._execute(database)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "D:\GPT\gpt-pilot\pilot-env\Lib\site-packages\peewee.py", line 2555, in _execute
cursor = database.execute(self)
^^^^^^^^^^^^^^^^^^^^^^
File "D:\GPT\gpt-pilot\pilot-env\Lib\site-packages\peewee.py", line 3254, in execute
return self.execute_sql(sql, params)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "D:\GPT\gpt-pilot\pilot-env\Lib\site-packages\peewee.py", line 3244, in execute_sql
with exception_wrapper:
File "D:\GPT\gpt-pilot\pilot-env\Lib\site-packages\peewee.py", line 3014, in exit
reraise(new_type, new_type(exc_value, *exc_args), traceback)
File "D:\GPT\gpt-pilot\pilot-env\Lib\site-packages\peewee.py", line 192, in reraise
raise value.with_traceback(tb)
File "D:\GPT\gpt-pilot\pilot-env\Lib\site-packages\peewee.py", line 3246, in execute_sql
cursor.execute(sql, params or ())
peewee.IntegrityError: UNIQUE constraint failed: file.app_id, file.name, file.path
? We would appreciate if you let us store your initial app prompt. If you are OK with that, please just press ENTER
Beta Was this translation helpful? Give feedback.
All reactions