Open DefamationStation opened 3 months ago
Hello,
I encountered the same issue, it seems to be due to a new version of mistralai
, so I opted for an older version prior to version 1.0.0. In the requirements.txt
, I replaced mistralai
with mistralai==0.4.2
.
I replaced
mistralai
withmistralai==0.4.2
.
Thanks Bro! This works for me.
Describe the bug
devika modulenotfounderror
How To Reproduce
Steps to reproduce the behavior (example):
Windows 11, python 3.11.9
mistralai package exists 100% confirmed
devika>python devika.py 24.08.11 19:38:33: root: INFO : Initializing Devika... 24.08.11 19:38:33: root: INFO : checking configurations... 24.08.11 19:38:33: root: INFO : Initializing Prerequisites Jobs... 24.08.11 19:38:35: root: INFO : Loading sentence-transformer BERT models... 24.08.11 19:38:37: root: INFO : BERT model loaded successfully. Traceback (most recent call last): File "C:\Users\frenz\Downloads\LLMs\devika\devika.py", line 24, in
from src.agents import Agent
File "C:\Users\frenz\Downloads\LLMs\devika\src\agents__init.py", line 1, in
from .agent import Agent
File "C:\Users\frenz\Downloads\LLMs\devika\src\agents\agent.py", line 1, in
from .planner import Planner
File "C:\Users\frenz\Downloads\LLMs\devika\src\agents\planner\ init.py", line 1, in
from .planner import Planner
File "C:\Users\frenz\Downloads\LLMs\devika\src\agents\planner\planner.py", line 3, in
from src.llm import LLM
File "C:\Users\frenz\Downloads\LLMs\devika\src\llm\ init__.py", line 1, in
from .llm import LLM
File "C:\Users\frenz\Downloads\LLMs\devika\src\llm\llm.py", line 11, in
from .mistral_client import MistralAi
File "C:\Users\frenz\Downloads\LLMs\devika\src\llm\mistral_client.py", line 2, in
from mistralai.models.chat_completion import ChatMessage
ModuleNotFoundError: No module named 'mistralai.models.chat_completion'