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
@okich76
Copy link

okich76 commented Apr 4, 2024

instructions given on github are NOT accurate, carefully watch, pause, re-watch all the instructions in YouTube video and u would be able to install and run.
Do not follow instructions on Github, type every command from YouTube video!

@Falkonar
Copy link

Falkonar commented Apr 4, 2024

OK I don't follow youtube because I can't use CONDA in VS code for some reason and use python venv. I will try on fresh Install and reply . Thank you

@wilsoncelyCUC
Copy link

so close,

I've been encountering a persistent segmentation fault issue with bun on my macOS system. I followed the steps in this guide: https://gist.github.com/mberman84/5ebdd660dce3b5474515ee91a82f4746, but I'm unable to successfully execute bun commands.

Issue Description:
After installing bun using the official install script (curl -fsSL https://bun.sh/install | bash), any attempt to run bun commands, including bun run dev, bun --version, and even bun upgrade, results in a segmentation fault.

Steps to Reproduce:
Installed bun using the provided script: curl -fsSL https://bun.sh/install | bash.
Tried running bun --version to check the installation, but received a segmentation fault.
Attempted to run a development server with bun run dev, which also resulted in a segmentation fault.
Removed bun and its directory (rm -rf ~/.bun and rm /Users/myuser/.bun/bin/bun), then reinstalled, only to encounter the same issues.
System Information:
OS: macOS (specific version needed)
Shell: zsh
Node version (if relevant): v18.13.0
Attempts to resolve:
Reinstalled bun multiple times.
Checked for compatibility issues and ensured the system is up-to-date.
Tried different shell environments.
Despite these efforts, the issue persists, with bun consistently causing a segmentation fault upon any command execution. This has blocked my development work, as I cannot use bun for running my development server or any other tasks.

"""
(devika) ➜ ui git:(main) ✗ curl -fsSL https://bun.sh/install | bash

######################################################################## 100.0%
bun was installed successfully to ~/.bun/bin/bun
bash: line 159: 21165 Segmentation fault: 11 IS_BUN_AUTO_UPDATE=true $exe completions >&/dev/null
Run 'bun --help' to get started
(devika) ➜ ui git:(main) ✗ bun -version
[1] 21178 segmentation fault bun -version
(devika) ➜ ui git:(main) ✗ which bun
/Users/wilsoncely/.bun/bin/bun
(devika) ➜ ui git:(main) ✗ bun run dev
[1] 21223 segmentation fault bun run dev
(devika) ➜ ui git:(main) ✗ code.
zsh: command not found: code.

"""

@hasnocool
Copy link

Make it a standalone install, for non programmers this is completely confusing.

This is confusing enough for programmers and non programmers alike.

@sonicnerd14
Copy link

On Windows 11 the bun install command doesn't seem to succeed. Using curl -fsSL https://bun.sh/install | bash I get the following errors:

<3>WSL (13) ERROR: CreateProcessParseCommon:711: Failed to translate c:\devika\ui
<3>WSL (13) ERROR: CreateProcessParseCommon:757: getpwuid(0) failed 2
<3>WSL (13) ERROR: UtilTranslatePathList:2866: Failed to translate C:\Users\yepyy\anaconda3\envs\devika
<3>WSL (13) ERROR: UtilTranslatePathList:2866: Failed to translate C:\Users\yepyy\anaconda3\envs\devika\Library\mingw-w64\bin
<3>WSL (13) ERROR: UtilTranslatePathList:2866: Failed to translate C:\Users\yepyy\anaconda3\envs\devika\Library\usr\bin
<3>WSL (13) ERROR: UtilTranslatePathList:2866: Failed to translate C:\Users\yepyy\anaconda3\envs\devika\Library\bin
<3>WSL (13) ERROR: UtilTranslatePathList:2866: Failed to translate C:\Users\yepyy\anaconda3\envs\devika\Scripts
<3>WSL (13) ERROR: UtilTranslatePathList:2866: Failed to translate C:\Users\yepyy\anaconda3\envs\devika\bin
<3>WSL (13) ERROR: UtilTranslatePathList:2866: Failed to translate C:\Users\yepyy\anaconda3\condabin
<3>WSL (13) ERROR: UtilTranslatePathList:2866: Failed to translate C:\Python312\Scripts
<3>WSL (13) ERROR: UtilTranslatePathList:2866: Failed to translate C:\Python312
<3>WSL (13) ERROR: UtilTranslatePathList:2866: Failed to translate c:\program files\python310\scripts
<3>WSL (13) ERROR: UtilTranslatePathList:2866: Failed to translate c:\program files\python310
<3>WSL (13) ERROR: UtilTranslatePathList:2866: Failed to translate c:\program files (x86)\common files\intel\shared libraries\redist\intel64\compiler
<3>WSL (13) ERROR: UtilTranslatePathList:2866: Failed to translate c:\program files (x86)\common files\oracle\java\javapath
<3>WSL (13) ERROR: UtilTranslatePathList:2866: Failed to translate c:\program files (x86)\vmware\vmware player\bin
<3>WSL (13) ERROR: UtilTranslatePathList:2866: Failed to translate c:\program files\oculus\support\oculus-runtime
<3>WSL (13) ERROR: UtilTranslatePathList:2866: Failed to translate c:\windows\system32
<3>WSL (13) ERROR: UtilTranslatePathList:2866: Failed to translate c:\windows
<3>WSL (13) ERROR: UtilTranslatePathList:2866: Failed to translate c:\windows\system32\wbem
<3>WSL (13) ERROR: UtilTranslatePathList:2866: Failed to translate c:\windows\system32\windowspowershell\v1.0
<3>WSL (13) ERROR: UtilTranslatePathList:2866: Failed to translate c:\windows\system32\openssh
<3>WSL (13) ERROR: UtilTranslatePathList:2866: Failed to translate c:\program files\dotnet
<3>WSL (13) ERROR: UtilTranslatePathList:2866: Failed to translate c:\program files\docker\docker\resources\bin
<3>WSL (13) ERROR: UtilTranslatePathList:2866: Failed to translate c:\programdata\chocolatey\bin
<3>WSL (13) ERROR: UtilTranslatePathList:2866: Failed to translate c:\program files\git\cmd
<3>WSL (13) ERROR: UtilTranslatePathList:2866: Failed to translate C:\WINDOWS\system32
<3>WSL (13) ERROR: UtilTranslatePathList:2866: Failed to translate C:\WINDOWS
<3>WSL (13) ERROR: UtilTranslatePathList:2866: Failed to translate C:\WINDOWS\System32\Wbem
<3>WSL (13) ERROR: UtilTranslatePathList:2866: Failed to translate C:\WINDOWS\System32\WindowsPowerShell\v1.0
<3>WSL (13) ERROR: UtilTranslatePathList:2866: Failed to translate C:\WINDOWS\System32\OpenSSH
<3>WSL (13) ERROR: UtilTranslatePathList:2866: Failed to translate C:\Program Files (x86)\NVIDIA Corporation\PhysX\Common
<3>WSL (13) ERROR: UtilTranslatePathList:2866: Failed to translate C:\Program Files (x86)\Microsoft Visual Studio\2022\Community\VC\Tools\MSVC\14.31.31103\bin\Hostx64\x64
<3>WSL (13) ERROR: UtilTranslatePathList:2866: Failed to translate C:\Program Files\NVIDIA Corporation\NVIDIA App\NvDLISR
<3>WSL (13) ERROR: UtilTranslatePathList:2866: Failed to translate C:\Program Files\Docker\Docker\resources\bin
<3>WSL (13) ERROR: UtilTranslatePathList:2866: Failed to translate C:\Program Files\nodejs
<3>WSL (13) ERROR: UtilTranslatePathList:2866: Failed to translate C:\Users\yepyy\AppData\Local\Programs\Python\Python311\Scripts
<3>WSL (13) ERROR: UtilTranslatePathList:2866: Failed to translate C:\Users\yepyy\AppData\Local\Programs\Python\Python311
<3>WSL (13) ERROR: UtilTranslatePathList:2866: Failed to translate C:\Users\yepyy\AppData\Local\Microsoft\WindowsApps
<3>WSL (13) ERROR: UtilTranslatePathList:2866: Failed to translate C:\tools\msys64
<3>WSL (13) ERROR: UtilTranslatePathList:2866: Failed to translate c:\users\yepyy\appdata\roaming\python\python310\scripts
<3>WSL (13) ERROR: UtilTranslatePathList:2866: Failed to translate c:\users\yepyy.local\bin
<3>WSL (13) ERROR: UtilTranslatePathList:2866: Failed to translate C:\Users\yepyy\AppData\Local\Programs\Microsoft VS Code\bin
<3>WSL (13) ERROR: UtilTranslatePathList:2866: Failed to translate C:\Users\yepyy\AppData\Roaming\npm
Processing fstab with mount -a failed.
Failed to mount C:, see dmesg for more details.
Failed to mount D:, see dmesg for more details.
Failed to mount E:, see dmesg for more details.
Failed to mount F:, see dmesg for more details.
Failed to mount G:, see dmesg for more details.

<3>WSL (13) ERROR: CreateProcessEntryCommon:334: getpwuid(0) failed 2
<3>WSL (13) ERROR: CreateProcessEntryCommon:505: execvpe /bin/bash failed 2
<3>WSL (13) ERROR: CreateProcessEntryCommon:508: Create process not expected to return

(devika) c:\devika\ui>bun run dev
'bun' is not recognized as an internal or external command,
operable program or batch file.

(devika) c:\devika\ui>curl -fsSL https://bun.sh/install | bash
<3>WSL (27) ERROR: CreateProcessParseCommon:711: Failed to translate c:\devika\ui
<3>WSL (27) ERROR: CreateProcessParseCommon:757: getpwuid(0) failed 2
<3>WSL (27) ERROR: UtilTranslatePathList:2866: Failed to translate C:\Users\yepyy\anaconda3\envs\devika
<3>WSL (27) ERROR: UtilTranslatePathList:2866: Failed to translate C:\Users\yepyy\anaconda3\envs\devika\Library\mingw-w64\bin
<3>WSL (27) ERROR: UtilTranslatePathList:2866: Failed to translate C:\Users\yepyy\anaconda3\envs\devika\Library\usr\bin
<3>WSL (27) ERROR: UtilTranslatePathList:2866: Failed to translate C:\Users\yepyy\anaconda3\envs\devika\Library\bin
<3>WSL (27) ERROR: UtilTranslatePathList:2866: Failed to translate C:\Users\yepyy\anaconda3\envs\devika\Scripts
<3>WSL (27) ERROR: UtilTranslatePathList:2866: Failed to translate C:\Users\yepyy\anaconda3\envs\devika\bin
<3>WSL (27) ERROR: UtilTranslatePathList:2866: Failed to translate C:\Users\yepyy\anaconda3\condabin
<3>WSL (27) ERROR: UtilTranslatePathList:2866: Failed to translate C:\Python312\Scripts
<3>WSL (27) ERROR: UtilTranslatePathList:2866: Failed to translate C:\Python312
<3>WSL (27) ERROR: UtilTranslatePathList:2866: Failed to translate c:\program files\python310\scripts
<3>WSL (27) ERROR: UtilTranslatePathList:2866: Failed to translate c:\program files\python310
<3>WSL (27) ERROR: UtilTranslatePathList:2866: Failed to translate c:\program files (x86)\common files\intel\shared libraries\redist\intel64\compiler
<3>WSL (27) ERROR: UtilTranslatePathList:2866: Failed to translate c:\program files (x86)\common files\oracle\java\javapath
<3>WSL (27) ERROR: UtilTranslatePathList:2866: Failed to translate c:\program files (x86)\vmware\vmware player\bin
<3>WSL (27) ERROR: UtilTranslatePathList:2866: Failed to translate c:\program files\oculus\support\oculus-runtime
<3>WSL (27) ERROR: UtilTranslatePathList:2866: Failed to translate c:\windows\system32
<3>WSL (27) ERROR: UtilTranslatePathList:2866: Failed to translate c:\windows
<3>WSL (27) ERROR: UtilTranslatePathList:2866: Failed to translate c:\windows\system32\wbem
<3>WSL (27) ERROR: UtilTranslatePathList:2866: Failed to translate c:\windows\system32\windowspowershell\v1.0
<3>WSL (27) ERROR: UtilTranslatePathList:2866: Failed to translate c:\windows\system32\openssh
<3>WSL (27) ERROR: UtilTranslatePathList:2866: Failed to translate c:\program files\dotnet
<3>WSL (27) ERROR: UtilTranslatePathList:2866: Failed to translate c:\program files\docker\docker\resources\bin
<3>WSL (27) ERROR: UtilTranslatePathList:2866: Failed to translate c:\programdata\chocolatey\bin
<3>WSL (27) ERROR: UtilTranslatePathList:2866: Failed to translate c:\program files\git\cmd
<3>WSL (27) ERROR: UtilTranslatePathList:2866: Failed to translate C:\WINDOWS\system32
<3>WSL (27) ERROR: UtilTranslatePathList:2866: Failed to translate C:\WINDOWS
<3>WSL (27) ERROR: UtilTranslatePathList:2866: Failed to translate C:\WINDOWS\System32\Wbem
<3>WSL (27) ERROR: UtilTranslatePathList:2866: Failed to translate C:\WINDOWS\System32\WindowsPowerShell\v1.0
<3>WSL (27) ERROR: UtilTranslatePathList:2866: Failed to translate C:\WINDOWS\System32\OpenSSH
<3>WSL (27) ERROR: UtilTranslatePathList:2866: Failed to translate C:\Program Files (x86)\NVIDIA Corporation\PhysX\Common
<3>WSL (27) ERROR: UtilTranslatePathList:2866: Failed to translate C:\Program Files (x86)\Microsoft Visual Studio\2022\Community\VC\Tools\MSVC\14.31.31103\bin\Hostx64\x64
<3>WSL (27) ERROR: UtilTranslatePathList:2866: Failed to translate C:\Program Files\NVIDIA Corporation\NVIDIA App\NvDLISR
<3>WSL (27) ERROR: UtilTranslatePathList:2866: Failed to translate C:\Program Files\Docker\Docker\resources\bin
<3>WSL (27) ERROR: UtilTranslatePathList:2866: Failed to translate C:\Program Files\nodejs
<3>WSL (27) ERROR: UtilTranslatePathList:2866: Failed to translate C:\Users\yepyy\AppData\Local\Programs\Python\Python311\Scripts
<3>WSL (27) ERROR: UtilTranslatePathList:2866: Failed to translate C:\Users\yepyy\AppData\Local\Programs\Python\Python311
<3>WSL (27) ERROR: UtilTranslatePathList:2866: Failed to translate C:\Users\yepyy\AppData\Local\Microsoft\WindowsApps
<3>WSL (27) ERROR: UtilTranslatePathList:2866: Failed to translate C:\tools\msys64
<3>WSL (27) ERROR: UtilTranslatePathList:2866: Failed to translate c:\users\yepyy\appdata\roaming\python\python310\scripts
<3>WSL (27) ERROR: UtilTranslatePathList:2866: Failed to translate c:\users\yepyy.local\bin
<3>WSL (27) ERROR: UtilTranslatePathList:2866: Failed to translate C:\Users\yepyy\AppData\Local\Programs\Microsoft VS Code\bin
<3>WSL (27) ERROR: UtilTranslatePathList:2866: Failed to translate C:\Users\yepyy\AppData\Roaming\npm
Processing fstab with mount -a failed.
Failed to mount C:, see dmesg for more details.
Failed to mount D:, see dmesg for more details.
Failed to mount E:, see dmesg for more details.
Failed to mount F:, see dmesg for more details.
Failed to mount G:, see dmesg for more details.
Failed to mount C:, see dmesg for more details.
Failed to mount D:, see dmesg for more details.
Failed to mount E:, see dmesg for more details.
Failed to mount F:, see dmesg for more details.
Failed to mount G:, see dmesg for more details.

<3>WSL (27) ERROR: CreateProcessEntryCommon:334: getpwuid(0) failed 2
<3>WSL (27) ERROR: CreateProcessEntryCommon:505: execvpe /bin/bash failed 2
<3>WSL (27) ERROR: CreateProcessEntryCommon:508: Create process not expected to return
curl: (23) Failure writing output to destination

Attempted this on two separate machines and get the same error on both.

@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