devika icon indicating copy to clipboard operation
devika copied to clipboard

Heads up! Windows installation even without WSL

Open kimsama opened this issue 11 months ago • 7 comments

Hey, guys Look this guy, I found this morning. He successfully installed Devika on Windows. https://www.youtube.com/watch?v=gcMdzGrDLlw&t=765s

Weird, not much different to mine but tried on conda env.
Please, leave a message if anyone gets success with followinig this.

Cheers,

kimsama avatar Mar 26 '24 05:03 kimsama

This other guy also got it to work via conda. https://www.youtube.com/watch?v=eLiMpEIRBzY Me via WSL and uv, not so much.

javacaliente avatar Mar 26 '24 05:03 javacaliente

Have it running without WSL but only on test VM - little bit try and error (like "pip install vite") :

image

dongle132 avatar Mar 26 '24 10:03 dongle132

I also managed to run it on Windows without any significant changes. (just using the windows prerelease of Bun)

NekoMaster3000 avatar Mar 26 '24 11:03 NekoMaster3000

Are you using Bing or Google. havent seen anyone with bing search have any Problems so far

PxlNote avatar Mar 26 '24 14:03 PxlNote

BING Search API ... just created an account and retrieved the API Key: image

dongle132 avatar Mar 26 '24 14:03 dongle132

Hi I finally got it working and wrote out a little guide of the steps that worked for me, maybe it will help someone else?

DEPENDENCIES:

POWERSHELL: All code shared below should be run in Powershell as Admin.

PYTHON: https://www.python.org/downloads/

OLLAMA: https://ollama.com/download/windows

GIT: https://gitforwindows.org/

BUN (You Must Close and Reopen Powershell before running the INSTALL CODE for bun to work): powershell -c "irm bun.sh/install.ps1|iex"

NODEJS (You Must Close and Reopen Powershell before running the INSTALL CODE for npm to work): Set-ExecutionPolicy Bypass -Scope Process -Force; [System.Net.ServicePointManager]::SecurityProtocol = [System.Net.ServicePointManager]::SecurityProtocol -bor 3072; iex ((New-Object System.Net.WebClient).DownloadString('https://chocolatey.org/install.ps1')); choco install nodejs -y

INSTALL CODE (Paste all at once): cd C:\; git clone https://github.com/stitionai/devika.git; cd C:\devika; python -m venv env; env\Scripts\activate; pip install -r requirements.txt; playwright install; python -m playwright install-deps; cd C:\devika\ui; npm install; bun install; $WScriptShell = New-Object -ComObject WScript.Shell; $Shortcut = $WScriptShell.CreateShortcut([System.IO.Path]::Combine([System.Environment]::GetFolderPath([System.Environment+SpecialFolder]::DesktopDirectory), "Backend.lnk")); $Shortcut.TargetPath = "powershell.exe"; $Shortcut.Arguments = "-NoExit -Command `"`& {cd C:\devika; env\Scripts\activate; python devika.py}`""; $Shortcut.Save(); $WScriptShell = New-Object -ComObject WScript.Shell; $Shortcut = $WScriptShell.CreateShortcut([System.IO.Path]::Combine([System.Environment]::GetFolderPath([System.Environment+SpecialFolder]::DesktopDirectory), "Frontend.lnk")); $Shortcut.TargetPath = "powershell.exe"; $Shortcut.Arguments = "-NoExit -Command `"`& {cd C:\devika; env\Scripts\activate; cd ui; bun run dev}`""; $Shortcut.Save()

ADD KEYS (this will open the config in notepad so you can add your keys and then save): Start-Process notepad C:\devika\config.toml -Verb runAs

Now run the Backend and Frontend shortcuts on your desktop then open localhost:3000 in your browser.

If the shortcuts dont work you may need to run this command in Powershell as admin then try again: Set-ExecutionPolicy RemoteSigned

The terminal does not show movement for most users in windows, though Devika is actually working. Check C:\devika\projects to find your files and for best results right now, specify a programming language like python

To run python projects, navigate to C:\devika\projects\yourprojectname:

pip install -r requirements.txt
then run python yourprogramname.py```

Video of the steps if needed:
https://youtu.be/bvFBEDbbwFQ

01101010110 avatar Mar 26 '24 20:03 01101010110

terminal part is not working, what is the reason and what to do?

Ahmet0691 avatar Mar 27 '24 06:03 Ahmet0691

The installation was tough but has worked. I have but just one problem now. Devika is interactive but not functional. I can click on the "New Project" button but when I type in the name of the project and click ok or press enter, nothing happens. I can't choose a model and no model is even being displayed in the dropdown list. Same thing with the Search Engine as well. If I go to the settings area, nothing is visible, exactly the same with history as well. No issue coming up on the backend nor the frontend parts. Tried multiple clean reinstalls of the repo. Tried conda and uv. Conda seems more convenient but I am working with uv right now.

Opera Snapshot_2024-04-08_021059_localhost

Opera Snapshot_2024-04-08_021232_localhost

Opera Snapshot_2024-04-08_021303_localhost

Screenshot (4)

Screenshot (5)

NAME0x0 avatar Apr 08 '24 00:04 NAME0x0

The installation was tough but has worked. I have but just one problem now. Devika is interactive but not functional. I can click on the "New Project" button but when I type in the name of the project and click ok or press enter, nothing happens. I can't choose a model and no model is even being displayed in the dropdown list. Same thing with the Search Engine as well. If I go to the settings area, nothing is visible, exactly the same with history as well. No issue coming up on the backend nor the frontend parts. Tried multiple clean reinstalls of the repo. Tried conda and uv. Conda seems more convenient but I am working with uv right now.安装过程很艰难,但已经成功了。我现在只有一个问题。 Devika 是交互式的,但不是功能性的。我可以单击“新建项目”按钮,但是当我输入项目名称并单击“确定”或按 Enter 键时,没有任何反应。我无法选择模型,下拉列表中甚至没有显示任何模型。搜索引擎也是如此。如果我进入设置区域,则看不到任何内容,与历史记录完全相同。后端和前端部分都没有出现问题。尝试多次干净地重新安装存储库。尝试了康达和紫外线。 Conda 似乎更方便,但我现在正在使用 uv。

Opera Snapshot_2024-04-08_021059_localhost

Opera Snapshot_2024-04-08_021232_localhost

Opera Snapshot_2024-04-08_021303_localhost

Screenshot (4)

Screenshot (5)

I'm encountering a similar issue – unable to create a project.

stan1233 avatar Apr 08 '24 05:04 stan1233

"The installation was tough but has worked." Which set of instructions? There's more than 1.

javacaliente avatar Apr 08 '24 17:04 javacaliente

"The installation was tough but has worked." Which set of instructions? There's more than 1.

I first replicated the steps as shown on this YouTube video but for Windows: https://youtu.be/kw9nTK42bTw?si=cEXquDJ0ng5S9Ua8 and then I replicated the installation method on this other YouTube video: https://youtu.be/gcMdzGrDLlw?si=o7-v_sZr7JjTxWUH and finally I just repeated the method as shown by [01101010110] in this issue. The key point to note is that installation worked in each case but I found [01101010110]'s method to be really convenient and something more comfortable to work with as there were literally only 5 steps. However, in each case the result was similar. The UI comes up and is interactive but not functional.

NAME0x0 avatar Apr 08 '24 21:04 NAME0x0

https://github.com/stitionai/devika/pull/387 closing this

ARajgor avatar Apr 14 '24 07:04 ARajgor