private-gpt icon indicating copy to clipboard operation
private-gpt copied to clipboard

Import error asking me to `pip install llama-cpp-python` even though its already installed

Open that-one-arab opened this issue 1 year ago • 12 comments
trafficstars

When running the python -m private_gpt command I get the below error

ImportError: Could not import llama_cpp library.Please install llama_cpp with `pip install llama-cpp-python`.See the full installation guide for GPU support at `https://github.com/abetlen/llama-cpp-python`

I am using ubuntu 20.04, and using virtualenvwrapper as my python environment manager.

that-one-arab avatar Dec 18 '23 17:12 that-one-arab

I have the same issue when installing via docker compose build. Have not been able to solve it so far. Idea's are welcome!

he-man86 avatar Dec 18 '23 21:12 he-man86

@he-man86 I wasn't using docker though

that-one-arab avatar Dec 19 '23 04:12 that-one-arab

I have tried this command and it's worked (i'm using GPU support build) CMAKE_ARGS='-DLLAMA_CUBLAS=on' poetry run pip install --force-reinstall --no-cache-dir llama-cpp-python

thanhtung100397 avatar Dec 19 '23 05:12 thanhtung100397

I am having the same issue. any solutions will be helpful

rajni-keyss avatar Dec 21 '23 07:12 rajni-keyss

Try looking into my latest PR: https://github.com/imartinez/privateGPT/pull/1428/

I basically fixed this error by downloading the model from docker with an entrypoint.sh script @he-man86

If you are not using docker usually running the setup script suffices. https://github.com/imartinez/privateGPT/blob/main/scripts/setup @that-one-arab

For doc see: https://docs.privategpt.dev/overview/welcome/quickstart

git clone https://github.com/imartinez/privateGPT && cd privateGPT && \
python3.11 -m venv .venv && source .venv/bin/activate && \
pip install --upgrade pip poetry && poetry install --with ui,local && ./scripts/setup

# Launch the privateGPT API server **and** the gradio UI
python3.11 -m private_gpt

# In another terminal, create a new browser window on your private GPT!
open http:////127.0.0.1:8001/

mbianchidev avatar Dec 22 '23 14:12 mbianchidev

Stale issue

github-actions[bot] avatar Jan 08 '24 05:01 github-actions[bot]

Running into this on Windows 10. Any suggestions?

copeland3300 avatar Jan 10 '24 05:01 copeland3300

Same issue here under wsl

italocjs avatar Jan 18 '24 15:01 italocjs

Still happening on windows10

MarkChrisE2091 avatar Jan 21 '24 05:01 MarkChrisE2091

Happens on a clean Debian 12 install as well.

fernandodiacenco avatar Jan 22 '24 18:01 fernandodiacenco

I have followed this guide and managed to install it https://www.youtube.com/watch?v=VXMlf8tADxg&t=426s

italocjs avatar Jan 22 '24 19:01 italocjs

Could not load Llama model from path: /media1_TB/datasets/Dip_current_project/Chat_bot_Project/Llama_Chat_Bot/Birbal_Voice_Assistant_Web/model/llama-2-7b-chat.ggmlv3.q8_0.bin. Received error Failed to load model from file: /media/1_TB/datasets/Dip_current_project/Chat_bot_Project/Llama_Chat_Bot/Birbal_Voice_Assistant_Web/model/llama-2-7b-chat.ggmlv3.q8_0.bin (type=value_error) how to resolve this error

dipakbg145 avatar Apr 10 '24 06:04 dipakbg145