khoj-ai / khoj

Your AI second brain. Self-hostable. Get answers from the web or your docs. Build custom agents, schedule automations, do deep research. Turn any online or local LLM into your personal, autonomous AI (e.g gpt, claude, gemini, llama, qwen, mistral).
https://khoj.dev
GNU Affero General Public License v3.0
15.93k stars 786 forks source link

ImportError: libGL.so.1 #846

Closed lamasseriadipolverara closed 3 months ago

lamasseriadipolverara commented 4 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 4 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 3 months ago

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