Issue with libvips

#47
by armandal - opened

Hi,
Thanks for sharing your model,
I'm facing an issue when I load the model with your Quick start code

[https://huggingface.co/vikhyatk/moondream2/discussions](OSError: cannot load library 'libvips.so.42': libvips.so.42: cannot open shared object file: No such file or directory. Additionally, ctypes.util.find_library() did not manage to locate a library called 'libvips.so.42')

The lib was installed with pip.
I work on colab enterprise.

Any idea on how to solve the problem ?

Thanks in advance

(pyvips-binary), requirements.txt from repo and
pip install -r requirements.txt
Excellent model with just 4GB VRAM

This works on Google colab:
! pip install pyvips
! apt update
! apt install libvips libvips-dev

On windows I had to download "vips" program, then add "vips-version/bin" to Path variables for my user.
Then I've rebooted the computer.
Also reinstalled the library.
It worked for me!

If you install the pyvips-binary package before pyvips using pip it will not require a system installation of libvips (since it bundles a statically compiled version).

Sign up or log in to comment