From 12cfb48f1602536e225d6b30fce23f1f58d5539d Mon Sep 17 00:00:00 2001 From: sabaimran <65192171+sabaimran@users.noreply.github.com> Date: Fri, 28 Jul 2023 18:54:18 +0000 Subject: [PATCH] Fix gpt4all import error in Desktop builds (#356) * Add gpt4all to imports via sysconfig path --- Khoj.spec | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Khoj.spec b/Khoj.spec index e55075ad..cf3e790d 100644 --- a/Khoj.spec +++ b/Khoj.spec @@ -8,7 +8,8 @@ datas = [ ('src/khoj/interface/web', 'khoj/interface/web'), (f'{sysconfig.get_paths()["purelib"]}/transformers', 'transformers'), (f'{sysconfig.get_paths()["purelib"]}/langchain', 'langchain'), - (f'{sysconfig.get_paths()["purelib"]}/PIL', 'PIL') + (f'{sysconfig.get_paths()["purelib"]}/PIL', 'PIL'), + (f'{sysconfig.get_paths()["purelib"]}/gpt4all', 'gpt4all'), ] datas += copy_metadata('torch') datas += copy_metadata('tqdm') @@ -22,7 +23,6 @@ datas += copy_metadata('pillow') datas += copy_metadata('huggingface_hub') datas += copy_metadata('safetensors') datas += copy_metadata('pyyaml') -datas += copy_metadata('gpt4all') block_cipher = None