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

[BUG] LOCAL_MODEL not set in the .env file. #531

Open
Stumblestone4git opened this issue Nov 27, 2024 · 0 comments
Open

[BUG] LOCAL_MODEL not set in the .env file. #531

Stumblestone4git opened this issue Nov 27, 2024 · 0 comments
Labels
bug Something isn't working

Comments

@Stumblestone4git
Copy link

Description

Prologue:

Welcome to my life, where online installations seemed just too easy—so by my nature, I decided to go offline to make things more interesting. It’s like choosing to run a marathon (20min) instead of a leisurely stroll (10min). After tripping over a few too many issues, I found myself here on GitHub, seeking help.

LOCAL_MODEL not set in the .env file.


Launching Kotaemon in your browser, please wait...


[nltk_data] Downloading package punkt_tab to /home/stumblestone/Downlo
[nltk_data] ads/kotaemon-
[nltk_data] 0.9.1/install_dir/env/lib/python3.10/site-
[nltk_data] packages/llama_index/core/_static/nltk_cache...
[nltk_data] Package punkt_tab is already up-to-date!
run_linux.sh: line 172: 5528 Illegal instruction PDFJS_PREBUILT_DIR="$pdfjs_prebuilt_dir" python $(pwd)/app.py

Will exit now...

┌──(Nux㉿kali)-[~/Downloads/kotaemon-0.9.1]
└─$ cd install_dir

┌──(Nux㉿kali)-[~/Downloads/kotaemon-0.9.1/install_dir]
└─$ ls
conda env

┌──(Nux㉿kali)-[~/Downloads/kotaemon-0.9.1/install_dir]
└─$ cd env/lib/python3.1/site-packages/llama_index/core/_static/nltk_cache

┌──(Nux㉿kali-[~/…/llama_index/core/_static/nltk_cache]
└─$ ls
corpora tokenizers

╱╱▏┈┈╱╱╱╱▏╱╱▏
▇╱▏┈┈▇▇▇╱▏▇╱▏
▇╱▏▁┈▇╱▇╱▏▇╱▏▁
▇╱╱╱▏▇╱▇╱▏▇╱╱╱
▇▇▇╱┈▇▇▇╱┈▇▇▇╱

Dunno what to do? or what i am doing?

Reproduction steps

1. Go to '~/Downloads/kotaemon-0.9.1/scripts'
2. Ran this script '$ bash run_linux.sh'
3. See error 'LOCAL_MODEL not set in the `.env` file.'

Screenshots

![DESCRIPTION](LINK.png)

Logs

No response

Browsers

No response

OS

Linux

Additional information

I had encountered an small issue before this .env issue as well which i easily resolved, if wanna know what it was read this maybe you will get to know what i missed,

it was problem with Downloading and unzipping PDF.js

Here is log of it...

Downloading https://github.com/mozilla/pdf.js/releases/download/v4.0.379/pdfjs-4.0.379-dist.zip to /home/Nux/Downloads/kotaemon-0.9.1/libs/ktem/ktem/assets/prebuilt/pdfjs-4.0.379-dist/downloaded.zip
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
0 0 0 0 0 0 0 0 --:--:-- 0:00:09 --:--:-- 0curl: (6) Could not resolve host: github.com
Unzipping /home/Nux/Downloads/kotaemon-0.9.1/libs/ktem/ktem/assets/prebuilt/pdfjs-4.0.379-dist/downloaded.zip to /home/Nux/Downloads/kotaemon-0.9.1/libs/ktem/ktem/assets/prebuilt/pdfjs-4.0.379-dist
unzip: cannot find or open /home/Nux/Downloads/kotaemon-0.9.1/libs/ktem/ktem/assets/prebuilt/pdfjs-4.0.379-dist/downloaded.zip, /home/Nux/Downloads/kotaemon-0.9.1/libs/ktem/ktem/assets/prebuilt/pdfjs-4.0.379-dist/downloaded.zip.zip or /home/Nux/Downloads/kotaemon-0.9.1/libs/ktem/ktem/assets/prebuilt/pdfjs-4.0.379-dist/downloaded.zip.ZIP.
rm: cannot remove '/home/Nux/Downloads/kotaemon-0.9.1/libs/ktem/ktem/assets/prebuilt/pdfjs-4.0.379-dist/downloaded.zip': No such file or directory
Download and unzip completed successfully

so what i diid i downloade manually, extracted and pasted it in this /home/Nux/Downloads/kotaemon-0.9.1/libs/ktem/ktem/assets/prebuilt/pdfjs-4.0.379-dist/
and voila prbl solved, after running again bash run_linux.sh


Setting up Miniconda


Miniconda is installed at /home/stumblestone/Downloads/kotaemon-0.9.1/install_dir/conda
Conda version:
conda 24.9.2


Creating conda environment


Conda environment exists at /home/stumblestone/Downloads/kotaemon-0.9.1/install_dir/env
Activate conda environment at /home/stumblestone/Downloads/kotaemon-0.9.1/install_dir/env


Installing requirements


Requirements are already installed


Downloading and unzipping PDF.js


Destination directory /home/stumblestone/Downloads/kotaemon-0.9.1/libs/ktem/ktem/assets/prebuilt/pdfjs-4.0.379-dist already exists. Skipping download.


Setting up a local model


LOCAL_MODEL not set in the .env file.


Launching Kotaemon in your browser, please wait...


[nltk_data] Downloading package punkt_tab to /home/stumblestone/Downlo
[nltk_data] ads/kotaemon-
[nltk_data] 0.9.1/install_dir/env/lib/python3.10/site-
[nltk_data] packages/llama_index/core/_static/nltk_cache...
[nltk_data] Package punkt_tab is already up-to-date!
run_linux.sh: line 172: 5528 Illegal instruction PDFJS_PREBUILT_DIR="$pdfjs_prebuilt_dir" python $(pwd)/app.py

Will exit now...

@Stumblestone4git Stumblestone4git added the bug Something isn't working label Nov 27, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant