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

Update project.py, Fix Type Error #361

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

Ahmet0691
Copy link
Contributor

@Ahmet0691 Ahmet0691 commented Apr 4, 2024

Exception in thread Thread-8 ():
Traceback (most recent call last):
File "...\AppData\Local\Programs\Python\Python310\lib\threading.py", line 1009, in _bootstrap_inner self.run()
File "...\AppData\Local\Programs\Python\Python310\lib\threading.py", line 946, in run self._target(*self._args, **self._kwargs)
File "...\devika\devika.py", line 93, in thread = Thread(target=lambda: agent.subsequent_execute(message, project_name)) File "...\devika\src\agents\agent.py", line 189, in subsequent_execute conversation = self.project_manager.get_all_messages_formatted(project_name) File "...\ddevi1\devika\src\project.py", line 123, in get_all_messages_formatted if message["from_devika"]:
TypeError: string indices must be integers

solves the problem that caused the error

`Exception in thread Thread-8 ():
Traceback (most recent call last):
File "C:\Users\ahmet\AppData\Local\Programs\Python\Python310\lib\threading.py", line 1009, in _bootstrap_inner
self.run()
File "C:\Users\ahmet\AppData\Local\Programs\Python\Python310\lib\threading.py", line 946, in run
self._target(*self._args, **self._kwargs)
File "C:\Users\ahmet\OneDrive\Masaüstü\ddevi1\devika\devika.py", line 93, in
thread = Thread(target=lambda: agent.subsequent_execute(message, project_name))
File "C:\Users\ahmet\OneDrive\Masaüstü\ddevi1\devika\src\agents\agent.py", line 189, in subsequent_execute
conversation = self.project_manager.get_all_messages_formatted(project_name)
File "C:\Users\ahmet\OneDrive\Masaüstü\ddevi1\devika\src\project.py", line 123, in get_all_messages_formatted
if message["from_devika"]:
TypeError: string indices must be integers`
solves the problem that caused the error
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants