khoj-ai / khoj

Your AI second brain. Get answers to your questions, whether they be online or in your own notes. Use online AI models (e.g gpt4) or private, local LLMs (e.g llama3). Self-host locally or use our cloud instance. Access from Obsidian, Emacs, Desktop app, Web or Whatsapp.
https://khoj.dev
GNU Affero General Public License v3.0
12.63k stars 640 forks source link

ImportError: libGL.so.1 #846

Closed lamasseriadipolverara closed 1 month ago

lamasseriadipolverara commented 2 months ago

Describe the bug

Updating khoji, can't start because of this problem: Traceback (most recent call last):

File "/app/src/khoj/main.py", line 93, in

from khoj.configure import configure_routes, initialize_server, configure_middleware

File "/app/src/khoj/configure.py", line 40, in

from khoj.routers.indexer import configure_content, configure_search

File "/app/src/khoj/routers/indexer.py", line 12, in

from khoj.processor.content.images.image_to_entries import ImageToEntries

File "/app/src/khoj/processor/content/images/image_to_entries.py", line 7, in

from rapidocr_onnxruntime import RapidOCR

File "/usr/local/lib/python3.10/dist-packages/rapidocr_onnxruntime/init.py", line 4, in

from .main import RapidOCR

File "/usr/local/lib/python3.10/dist-packages/rapidocr_onnxruntime/main.py", line 8, in

import cv2

File "/usr/local/lib/python3.10/dist-packages/cv2/init.py", line 181, in

bootstrap()

File "/usr/local/lib/python3.10/dist-packages/cv2/init.py", line 153, in bootstrap

native_module = importlib.import_module("cv2")

File "/usr/lib/python3.10/importlib/init.py", line 126, in import_module

return _bootstrap._gcd_import(name[level:], package, level)

ImportError: libGL.so.1: cannot open shared object file: No such file or directory

To Reproduce

Steps to reproduce the behavior:

Screenshots

If applicable, add screenshots to help explain your problem.

Platform

If self-hosted

Additional context

Add any other context about the problem here.

debanjum commented 2 months ago

Hey @lamasseriadipolverara thanks for raising an issue for this. It was fixed in this PR. You can build from source, as mentioned in https://github.com/khoj-ai/khoj/issues/848#issuecomment-2232410117 or use the pre tagged Khoj docker image.

The latest tagged docker images tracks the latest Khoj release. The fix was merged after the previous release. We should have a new release out in a few days as well, in case you want to wait.

debanjum commented 1 month ago

Closing this issue as it should be fixed now in the latest release (0.17.0)