devika icon indicating copy to clipboard operation
devika copied to clipboard

Please replace BUN, it's an UTTER pain and this will never work on Windows with it, not a good idea. (Wsl2 is still not great)

Open Kingbadger3d opened this issue 1 year ago • 7 comments

Describe the solution you'd like Find another lib set

Kingbadger3d avatar Apr 04 '24 13:04 Kingbadger3d

Describe the solution you'd like Find another lib set

Run this program on Lightning AI

deepsuthar496 avatar Apr 04 '24 15:04 deepsuthar496

@Deepsuthar496, that defeats the whole purpose of running local. If I was going to use an online setup, I would roll it myself on googlecloud. That's not what I want to do.

Kingbadger3d avatar Apr 04 '24 15:04 Kingbadger3d

I'm using Windows, I don't have WSL, and with windows native ollama, bun works with Edge, even if I have to refresh every time.. With brave it seems to not work well even if refresh, I don't know if it is related to some protection on brave.

amonpaike avatar Apr 04 '24 16:04 amonpaike

amonpaike i would suggest not using WSL right now, best way I found is use a mixture of CMD prompt in admin mode and powershell in admin mode, create your dir (mine d:\Ai\Devika) open vs code studio, open that folder, open terminal with external (otherwise miniconda doesn't work) install mini conda, activate conda, create new conda environment (Named Devika for e.g) git clone the repo.

Conda create -n devika python=3.11

conda activate devika, in terminal in vs code git clone repo, open devika dir in vscode. cd devika

pip install -r requirements.txt

set keys in config.toml

playwrite install --with-deps

start ollama (install ollama app for windows first)

Python devika.py (should now start)

Open a new powershell in admin mode:

powershell -c "irm bun.sh/install.ps1 | iex"

when completes shut the powershell other wont work

open powershell again in the same devika path as before and cd into UI directory and type:

bun install, then

bun run dev

Open the local host address it gives, Job done.

Best way ive found and way neater as mini conda keeps all files local and can be installed on other drives like D: etc but conda always annoyed me that it sticks everything in Envs on the windows C: drive (my smallest drive, not good)

Enjoy Windows boys and girls

Devika windows

condaactivate.txt miniconda.txt

These are my .bat files that install mini conda for you in the directory you run the bats so gives you conda base, then you can just simply conda create -n etc as usual.

just rename.bat instead of .txt, it wouldnt let me upload bat files? huh

miniconda.bat installs mini conda automatically and conda activate then activates conda, just time savers.

I know there only simple little .bat files but if the devs want to add them to the repo you can, may help newb's and generaly make install easier. Just give me a little Nod and wink in the credits hahaha.

Kingbadger3d avatar Apr 04 '24 20:04 Kingbadger3d

make it a normal desktop application, they way development tools needs to be. Keeping it the was as is (ui in browser) will doom this project.

xphraze1989 avatar Apr 07 '24 22:04 xphraze1989

hi, i ran "npm install -g bun"

matichek avatar May 01 '24 11:05 matichek

for me it works perfectly on windows with ollama on my high end pc and even without ollama on my low end laptop!

stevie86 avatar May 01 '24 14:05 stevie86