stitionai / devika

Devika is an Agentic AI Software Engineer that can understand high-level human instructions, break them down into steps, research relevant information, and write code to achieve the given objective. Devika aims to be a competitive open-source alternative to Devin by Cognition AI.
MIT License
18.48k stars 2.39k forks source link

[Bug] #638

Open DefamationStation opened 3 months ago

DefamationStation commented 3 months ago

Describe the bug

devika modulenotfounderror

How To Reproduce

Steps to reproduce the behavior (example):

  1. Install devika
  2. try to run devika

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'

yblis commented 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.

barokoVlad commented 3 months ago

I replaced mistralai with mistralai==0.4.2.

Thanks Bro! This works for me.