Skip to content

Instantly share code, notes, and snippets.

@mberman84
Created April 3, 2024 16:19
Show Gist options
  • Save mberman84/5ebdd660dce3b5474515ee91a82f4746 to your computer and use it in GitHub Desktop.
Save mberman84/5ebdd660dce3b5474515ee91a82f4746 to your computer and use it in GitHub Desktop.
Devika Installation
git clone https://github.com/stitionai/devika.git
conda create -n devika python=3.10
conda activate devika
which python
/usr/local/anaconda3/envs/devika/bin/python -m pip install -r requirements.txt
playwright install --with-deps
npm install
bun run dev
open new terminal
conda activate devika
rename sample.config.toml
fill out config.toml
@IvCodes
Copy link

IvCodes commented Apr 8, 2024

[WinError 10013] An attempt was made to access a socket in a way forbidden by its access permissions: ('0.0.0.0', 1337) i this error in windows anyone know how to fix it , this is after python devika.py

@yakupcemilk
Copy link

I can't install playwright at Garuda Linux, can you please help me? Devika is not working correctly. It says Devika is active but Devika didn't respond my prompts.

@mubiru-simeon
Copy link

I noticed that the steps followed by Mr Berman to install devika do not work for most. But if you follow the steps on the Devika Repo itself, they work perfectly.
https://github.com/stitionai/devika

Key points to note is
Install uv - Python Package manager (https://github.com/astral-sh/uv)
Install bun - JavaScript runtime (https://bun.sh/docs/installation)
Install and setup Ollama (https://ollama.com/) (if you don't want to use the local models then you can skip this step)

Restart your pc. Then run these commands
ollama serve
git clone https://github.com/stitionai/devika.git
cd devika/
uv venv
source .venv/bin/activate
uv pip install -r requirements.txt
playwright install --with-deps
cd ui/
bun install
bun run dev
cd ..
python3 devika.py

Matthew skipped several steps, because he is always bench marking LLMS and he probably already has most of these installed.
Also, on every step, restart your computer. Like for real. It makes all the difference.

Again, here, i have summarized a lot. Visit the DEVIKA Repo and follow the steps there, step by step.

@Falkonar
Copy link

Falkonar commented Apr 9, 2024

Restart your pc. Then run these commands ollama serve git clone https://github.com/stitionai/devika.git cd devika/ uv venv source .venv/bin/activate uv pip install -r requirements.txt playwright install --with-deps cd ui/ bun install bun run dev cd .. python3 devika.py

What is mean python3 devika.py ? I have no python3 install and it's dives and error and python devika.py runs it but interface not respond. Instructions don't explain what python version to use and why they use uv command. This readme works only on clean windows installation without any other installs.

@Ep0chk
Copy link

Ep0chk commented Apr 15, 2024

source .venv/bin/activate

this is best run to on its own bare metal linux containers. its not a windows "app" - you'll run into a lot of dependency and path errors using windows

@Falkonar
Copy link

source .venv/bin/activate

this is best run to on its own bare metal linux containers. its not a windows "app" - you'll run into a lot of dependency and path errors using windows

Thank you ! I figured out too that run at least on WSL the best way

@BindingOx
Copy link

[WinError 10013] An attempt was made to access a socket in a way forbidden by its access permissions: ('0.0.0.0', 1337) i this error in windows anyone know how to fix it , this is after python devika.py

did you solve this error?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment