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

[Bug] #638

Open
DefamationStation opened this issue Aug 11, 2024 · 2 comments
Open

[Bug] #638

DefamationStation opened this issue Aug 11, 2024 · 2 comments

Comments

@DefamationStation
Copy link

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
Copy link

yblis commented Aug 12, 2024

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
Copy link

I replaced mistralai with mistralai==0.4.2.

Thanks Bro!
This works for me.

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

No branches or pull requests

3 participants