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

Cannot install llama-cpp-python #1252

Closed
donnadulcinea opened this issue Nov 16, 2023 · 5 comments
Closed

Cannot install llama-cpp-python #1252

donnadulcinea opened this issue Nov 16, 2023 · 5 comments

Comments

@donnadulcinea
Copy link

Working in Ubuntu 22.04.3 LTS, and trying to install PrivateGPT I get the error.
Did someone else succeed to address it?

dd@ai:~/data/privateGPT$ poetry install --with ui,local
Installing dependencies from lock file

Package operations: 1 install, 0 updates, 0 removals

  • Installing llama-cpp-python (0.2.17): Failed

  LinkOutsideDestinationError

  'llama_cpp_python-0.2.17/vendor/llama.cpp/spm-headers/ggml.h' would link to '/tmp/ggml.h', which is outside the destination

  at /usr/lib/python3.10/tarfile.py:806 in _get_filtered_attrs
       802│             if os.path.isabs(member.linkname):
       803│                 raise AbsoluteLinkError(member)
       804│             target_path = os.path.realpath(os.path.join(dest_path, member.linkname))
       805│             if os.path.commonpath([target_path, dest_path]) != dest_path:
    →  806│                 raise LinkOutsideDestinationError(member, target_path)
       807│     return new_attrs
       808│
       809│ def fully_trusted_filter(member, dest_path):
       810│     return member

Cannot install llama-cpp-python.

Note that: gcc-11 is already the newest version (11.4.0-1ubuntu1~22.04).

System:

  • OS: Ubuntu 22.04.3 LTS
@MKdir98
Copy link

MKdir98 commented Nov 16, 2023

I'm getting this too for a week.

@lopagela
Copy link
Contributor

Try to install llama-cpp-python outside poetry (using pip).

If the error persists, try to fix llama-cpp-python to a previous version.

@DivineMK
Copy link

Revert to poetry 1.6.0 works for me as well as stated at abetlen/llama-cpp-python#905 (comment)

@lopagela
Copy link
Contributor

From what I see, this will be fixed in poetry 1.7.1 (that will be released very soon): python-poetry/poetry#8667

@lopagela
Copy link
Contributor

Fixed with poetry 1.7.1 -- this issue was specific to poetry 1.7.0

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

4 participants