Skip to content

Instantly share code, notes, and snippets.

@mberman84
Created March 30, 2024 16:23
Show Gist options
  • Save mberman84/2ad782e90d18650dfdf42d677c18c520 to your computer and use it in GitHub Desktop.
Save mberman84/2ad782e90d18650dfdf42d677c18c520 to your computer and use it in GitHub Desktop.
OpenDevin Installation
git clone https://github.com/OpenDevin/OpenDevin.git
cd OpenDevin
conda create -n od python=3.10
conda activate od
docker ps
(optional) install docker if not already installed
docker pull ghcr.io/opendevin/sandbox
export OPENAI_API_KEY={your key}
(optional I had to install rust) curl --proto '=https' --tlsv1.2 -sSf [https://sh.rustup.rs](https://sh.rustup.rs/) | sh
(optional) restart terminal
python -m pip install -r requirements.txt
(optional) orjson issue (MacOS)
- pip uninstall orjson
- pip install --no-cache-dir --only-binary :all: orjson
uvicorn opendevin.server.listen:app --port 3000
@afdhali
Copy link

afdhali commented May 22, 2024

File "", line 1050, in _gcd_import
File "", line 1027, in _find_and_load
File "", line 1006, in _find_and_load_unlocked
File "", line 688, in _load_unlocked
File "", line 883, in exec_module
File "", line 241, in _call_with_frames_removed
File "/home/jenkins888/openDevin/OpenDevin-main/opendevin/server/listen.py", line 358, in
app.mount('/', StaticFiles(directory='./frontend/dist'), name='dist')
File "/home/jenkins888/.local/share/virtualenvs/OpenDevin-main-46NLFAxI/lib/python3.10/site-packages/starlette/staticfiles.py", line 59, in init
raise RuntimeError(f"Directory '{directory}' does not exist")

ERROR:root:<class 'RuntimeError'>: Directory './frontend/dist' does not exist
01:44:26 - opendevin:INFO: manager.py:46 - Closing 0 agent(s)...
01:44:26 - opendevin:INFO: manager.py:43 - Saving sessions...
01:44:26 - opendevin:INFO: msg_stack.py:41 - Saving messages...

over 12hours+ stuck over there

@alexrR0987eqw
Copy link

ERROR:root: File "C:\Users\Gamer\anaconda3\envs\od\lib\runpy.py", line 196, in _run_module_as_main
return _run_code(code, main_globals, None,
File "C:\Users\Gamer\anaconda3\envs\od\lib\runpy.py", line 86, in run_code
exec(code, run_globals)
File "C:\Users\Gamer\anaconda3\envs\od\Scripts\uvicorn.exe_main
.py", line 7, in
sys.exit(main())
File "C:\Users\Gamer\anaconda3\envs\od\lib\site-packages\click\core.py", line 1157, in call
return self.main(*args, **kwargs)
File "C:\Users\Gamer\anaconda3\envs\od\lib\site-packages\click\core.py", line 1078, in main
rv = self.invoke(ctx)
File "C:\Users\Gamer\anaconda3\envs\od\lib\site-packages\click\core.py", line 1434, in invoke
return ctx.invoke(self.callback, **ctx.params)
File "C:\Users\Gamer\anaconda3\envs\od\lib\site-packages\click\core.py", line 783, in invoke
return __callback(*args, **kwargs)
File "C:\Users\Gamer\anaconda3\envs\od\lib\site-packages\uvicorn\main.py", line 410, in main
run(
File "C:\Users\Gamer\anaconda3\envs\od\lib\site-packages\uvicorn\main.py", line 577, in run
server.run()
File "C:\Users\Gamer\anaconda3\envs\od\lib\site-packages\uvicorn\server.py", line 65, in run
return asyncio.run(self.serve(sockets=sockets))
File "C:\Users\Gamer\anaconda3\envs\od\lib\asyncio\runners.py", line 44, in run
return loop.run_until_complete(main)
File "C:\Users\Gamer\anaconda3\envs\od\lib\asyncio\base_events.py", line 649, in run_until_complete
return future.result()
File "C:\Users\Gamer\anaconda3\envs\od\lib\site-packages\uvicorn\server.py", line 69, in serve
await self._serve(sockets)
File "C:\Users\Gamer\anaconda3\envs\od\lib\site-packages\uvicorn\server.py", line 76, in serve
config.load()
File "C:\Users\Gamer\anaconda3\envs\od\lib\site-packages\uvicorn\config.py", line 434, in load
self.loaded_app = import_from_string(self.app)
File "C:\Users\Gamer\anaconda3\envs\od\lib\site-packages\uvicorn\importer.py", line 22, in import_from_string
raise exc from None
File "C:\Users\Gamer\anaconda3\envs\od\lib\site-packages\uvicorn\importer.py", line 19, in import_from_string
module = importlib.import_module(module_str)
File "C:\Users\Gamer\anaconda3\envs\od\lib\importlib_init
.py", line 126, in import_module
return _bootstrap.gcd_import(name[level:], package, level)
File "", line 1050, in gcd_import
File "", line 1027, in find_and_load
File "", line 1006, in find_and_load_unlocked
File "", line 688, in load_unlocked
File "", line 883, in exec_module
File "", line 241, in call_with_frames_removed
File "C:\Users\Gamer\Desktop\deviantdevin\opendevin\opendevin\server\listen.py", line 15, in
import agenthub # noqa F401 (we import this to get the agents registered)
File "C:\Users\Gamer\Desktop\deviantdevin\opendevin\agenthub_init
.py", line 3, in
from opendevin.controller.agent import Agent
File "C:\Users\Gamer\Desktop\deviantdevin\opendevin\opendevin\controller_init
.py", line 1, in
from .agent_controller import AgentController
File "C:\Users\Gamer\Desktop\deviantdevin\opendevin\opendevin\controller\agent_controller.py", line 5, in
from opendevin.controller.agent import Agent
File "C:\Users\Gamer\Desktop\deviantdevin\opendevin\opendevin\controller\agent.py", line 12, in
from opendevin.runtime.plugins import PluginRequirement
File "C:\Users\Gamer\Desktop\deviantdevin\opendevin\opendevin\runtime_init.py", line 1, in
from .docker.exec_box import DockerExecBox
File "C:\Users\Gamer\Desktop\deviantdevin\opendevin\opendevin\runtime\docker\exec_box.py", line 19, in
from opendevin.runtime.sandbox import Sandbox
File "C:\Users\Gamer\Desktop\deviantdevin\opendevin\opendevin\runtime\sandbox.py", line 8, in
from opendevin.runtime.plugins.mixin import PluginMixin
File "C:\Users\Gamer\Desktop\deviantdevin\opendevin\opendevin\runtime\plugins_init.py", line 2, in
from .agent_skills import AgentSkillsRequirement
File "C:\Users\Gamer\Desktop\deviantdevin\opendevin\opendevin\runtime\plugins\agent_skills_init.py", line 4, in
from opendevin.runtime.plugins.agent_skills.agentskills import DOCUMENTATION
File "C:\Users\Gamer\Desktop\deviantdevin\opendevin\opendevin\runtime\plugins\agent_skills\agentskills.py", line 25, in
import docx
File "C:\Users\Gamer\anaconda3\envs\od\lib\site-packages\docx_init.py", line 9, in
from core import Docx

ERROR:root:<class 'ModuleNotFoundError'>: No module named 'core'

i need help i dunno what to do

@gsharma007
Copy link

afdhali You will have to build the dist folder, by using npm commands. First you have to build declaration file in i18ln by building i18ln and then you will have to build dist.
npm run make-i18n
npm run build

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