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

Embedders tutorial . Error ModuleNotFoundError: No module named 'ollama' #1121

Closed
groggy67 opened this issue Oct 1, 2024 · 1 comment
Closed
Labels
bug Something isn't working integration:ollama

Comments

@groggy67
Copy link

groggy67 commented Oct 1, 2024

Following the Embedders tutorial in https://haystack.deepset.ai/integrations/ollama#installation

Using Python 3.12.3 and Ubuntu 24.04 in WSL2
Installed ollama-haystack using poetry (ollama-haystack = "^1.0.1")
using Docker for the model i.e.
docker run -d -p 11434:11434 --name ollama ollama/ollama:latest
docker exec ollama ollama pull orca-mini
and checked its running using docker ps -a

On running the code I get the error :
File "/home/../.venv/lib/python3.12/site-packages/haystack_integrations/components/embedders/ollama/document_embedder.py", line 6, in
from ollama import Client
ModuleNotFoundError: No module named 'ollama'

Can you assist me please ?

@groggy67 groggy67 added the bug Something isn't working label Oct 1, 2024
@groggy67
Copy link
Author

groggy67 commented Oct 1, 2024

My apologies, for some reason using poetry to add the dependency didn't work. I created a new virtual env using venv and its all good .

@groggy67 groggy67 closed this as completed Oct 1, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working integration:ollama
Projects
None yet
Development

No branches or pull requests

2 participants