devika icon indicating copy to clipboard operation
devika copied to clipboard

Can't make changes after outputting the first iteration.

Open sonicino2 opened this issue 1 year ago • 2 comments

Here's the code. In windows, I believe this is dealing with the devika.py.

Exception in thread Thread-10106 (): Traceback (most recent call last): File "c:\python312\Lib\threading.py", line 1073, in _bootstrap_inner self.run() File "c:\python312\Lib\threading.py", line 1010, in run self._target(*self._args, **self._kwargs) File "C:\Users\sonic\Downloads\Devika\devika.py", line 103, in thread = Thread(

File "C:\Users\sonic\Downloads\Devika\src\agents\agent.py", line 220, in subsequent_execute system_os=os_system, ^^^^^^^^^ UnboundLocalError: cannot access local variable 'os_system' where it is not associated with a value

sonicino2 avatar Mar 23 '24 00:03 sonicino2

Getting similar issue

Exception in thread Thread-29412 (): Traceback (most recent call last): File "/opt/anaconda3/lib/python3.11/threading.py", line 1045, in _bootstrap_inner self.run() File "/opt/anaconda3/lib/python3.11/threading.py", line 982, in run self._target(*self._args, **self._kwargs) File "/Users/macbook/Documents/devika/devika.py", line 103, in target=lambda: Agent(base_model=base_model).subsequent_execute(message, project_name) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/Users/macbook/Documents/devika/src/agents/agent.py", line 233, in subsequent_execute system_os=os_system, ^^^^^^^^^ UnboundLocalError: cannot access local variable 'os_system' where it is not associated with a value

flamasz avatar Mar 23 '24 02:03 flamasz

Could be because execute agent api is not getting called after first iteration, A workaround was creating new project everytime

RohitX0X avatar Mar 23 '24 05:03 RohitX0X

fetch the latest changes. already fixed

ARajgor avatar Apr 03 '24 18:04 ARajgor