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

Issue while installation #2005

Closed
8 of 9 tasks
ashunaveed opened this issue Jul 19, 2024 · 13 comments
Closed
8 of 9 tasks

Issue while installation #2005

ashunaveed opened this issue Jul 19, 2024 · 13 comments
Labels
bug Something isn't working

Comments

@ashunaveed
Copy link

Pre-check

  • I have searched the existing issues and none cover this bug.

Description

While i try to install, i am getting following error:
(gpt) C:\Users\genco\OneDrive\Desktop\private-gpt-main>pip install build
Collecting build
Downloading build-1.2.1-py3-none-any.whl.metadata (4.3 kB)
Requirement already satisfied: packaging>=19.1 in c:\programdata\anaconda3\envs\gpt\lib\site-packages (from build) (23.2)
Collecting pyproject_hooks (from build)
Downloading pyproject_hooks-1.1.0-py3-none-any.whl.metadata (1.3 kB)
Requirement already satisfied: colorama in c:\programdata\anaconda3\envs\gpt\lib\site-packages (from build) (0.4.6)
Downloading build-1.2.1-py3-none-any.whl (21 kB)
Downloading pyproject_hooks-1.1.0-py3-none-any.whl (9.2 kB)
Installing collected packages: pyproject_hooks, build
Successfully installed build-1.2.1 pyproject_hooks-1.1.0

(gpt) C:\Users\genco\OneDrive\Desktop\private-gpt-main>poetry install --extras "ui llms-ollama embeddings-ollama vector-stores-qdrant"
Installing dependencies from lock file

Package operations: 15 installs, 0 updates, 2 removals

  • Removing build (1.0.3)
  • Removing pyproject-hooks (1.0.0)
  • Installing ffmpy (0.3.1): Failed

ChefBuildError

Backend subprocess exited when trying to invoke get_requires_for_build_wheel

C:\ProgramData\anaconda3\envs\gpt\python.exe: can't open file 'C:\ProgramData\anaconda3\envs\gpt\Lib\site-packages\pyproject_hooks\_in_process\_in_process.py': [Errno 2] No such file or directory

at C:\ProgramData\anaconda3\envs\gpt\Lib\site-packages\poetry\installation\chef.py:164 in _prepare
160│
161│ error = ChefBuildError("\n\n".join(message_parts))
162│
163│ if error is not None:
→ 164│ raise error from None
165│
166│ return path
167│
168│ def _prepare_sdist(self, archive: Path, destination: Path | None = None) -> Path:

Note: This error originates from the build backend, and is likely not a problem with poetry but with ffmpy (0.3.1) not supporting PEP 517 builds. You can verify this by running 'pip wheel --no-cache-dir --use-pep517 "ffmpy (==0.3.1)"'.

Steps to Reproduce

simply followed the guidelines.

Expected Behavior

complete installation

Actual Behavior

failed installation.

Environment

windows 11 with nvidia rtx 4060 with ollama.

Additional Information

No response

Version

No response

Setup Checklist

  • Confirm that you have followed the installation instructions in the project’s documentation.
  • Check that you are using the latest version of the project.
  • Verify disk space availability for model storage and data processing.
  • Ensure that you have the necessary permissions to run the project.

NVIDIA GPU Setup Checklist

  • Check that the all CUDA dependencies are installed and are compatible with your GPU (refer to CUDA's documentation)
  • Ensure an NVIDIA GPU is installed and recognized by the system (run nvidia-smi to verify).
  • Ensure proper permissions are set for accessing GPU resources.
  • Docker users - Verify that the NVIDIA Container Toolkit is configured correctly (e.g. run sudo docker run --rm --gpus all nvidia/cuda:11.0.3-base-ubuntu20.04 nvidia-smi)
@ashunaveed ashunaveed added the bug Something isn't working label Jul 19, 2024
@jaluma
Copy link
Collaborator

jaluma commented Jul 23, 2024

Can you try to install using this guide?

python3.11 -m venv .venv
source .venv/bin/activate
pip install poetry
poetry install --extras "ui llms-ollama embeddings-ollama vector-stores-qdrant"

@stephendwolff
Copy link

I got exactly the same error on macos using the python3.11 venv poetry install commands you list.

  - Installing ffmpy (0.3.1): Failed

  ChefBuildError

  Backend subprocess exited when trying to invoke get_requires_for_build_wheel
  
  /var/folders/1g/pdzxzrjs4ljbbqlz2k6kb82w0000gn/T/tmp5yp59e35/.venv/bin/python: can't open file '/Users/stephen/Documents/Development/HawkingHealth/private-gpt/venv/lib/python3.11/site-packages/pyproject_hooks/_in_process/_in_process.py': [Errno 2] No such file or directory
  

  at venv/lib/python3.11/site-packages/poetry/installation/chef.py:164 in _prepare
      160│ 
      161│                 error = ChefBuildError("\n\n".join(message_parts))
      162│ 
      163│             if error is not None:
    → 164│                 raise error from None
      165│ 
      166│             return path
      167│ 
      168│     def _prepare_sdist(self, archive: Path, destination: Path | None = None) -> Path:

Note: This error originates from the build backend, and is likely not a problem with poetry but with ffmpy (0.3.1) not supporting PEP 517 builds. You can verify this by running 'pip wheel --no-cache-dir --use-pep517 "ffmpy (==0.3.1)"'.

@stephendwolff
Copy link

I can see it's already an issue here

but has been marked stale. I'll try installing ffmpy with pip before running the poetry command

@stephendwolff
Copy link

ok - so i had success - but also had to remove ffmpy and docx2txt from the poetry.lock file.

Then i set up my venv, activated it and pip installed poetry, ffmpy and docx2txt.

$ pyenv local 3.11
$ python -m venv venv
$ source venv/bin/activate
(venv) $ pip install poetry ffmpy docx2txt 
(venv) $ poetry install --extras "ui llms-ollama embeddings-ollama vector-stores-qdrant"

@Siraj-Bhai
Copy link

Yeah I'm also faced this issue but I soved this.
What to do is,
pip install build
poetry add build
poetry lock
and try poetry install --extras "ui llms-ollama embeddings-ollama vector-stores-qdrant"

@jaluma
Copy link
Collaborator

jaluma commented Jul 29, 2024

Can you try with last changes?

@jaluma jaluma closed this as completed Jul 29, 2024
@Siraj-Bhai
Copy link

Can you try with last changes?

Yeah

@Castolus
Copy link

Can you try with last changes?

I´ve tried and have the same error. I had PGPT allready installed, but pulled latest updates regarding Llama 3 as default, and new version of pyprject.toml. Then i poetry update and poetry locked, and installed dependencies to run it fully local. I got the error during this last installation.

@jaluma
Copy link
Collaborator

jaluma commented Jul 30, 2024

What version of ffmpy is it installing? It should be using a git repository as a base and uploading your installed version to 0.3.2.

@Castolus
Copy link

Castolus commented Jul 30, 2024

What version of ffmpy is it installing? It should be using a git repository as a base and uploading your installed version to 0.3.2.

  • Downgrading ffmpy (0.3.3 333a19e -> 0.3.2 333a19e)

After applying this solution, it worked without error:

pip install build
poetry add build
poetry lock
poetry install --extras "ui llms-llama-cpp embeddings-huggingface vector-stores-qdrant rerank-sentence-transformers"

@jaluma
Copy link
Collaborator

jaluma commented Jul 30, 2024

Can you try to remove venv and recreate it? You shouldn't have a newest version.

@Castolus
Copy link

Castolus commented Jul 30, 2024

@jaluma
Yo mean removing .venv folder and then run this?:

python3.11 -m venv .venv
source .venv/bin/activate
pip install poetry
poetry install --extras "ui llms-llama-cpp embeddings-huggingface vector-stores-qdrant rerank-sentence-transformers"

@Castolus
Copy link

source .venv/bin/activate

I don´t have any ".venv" folder since i created the environment directlly on IntelliJ.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

5 participants