-
-
Save mberman84/2ad782e90d18650dfdf42d677c18c520 to your computer and use it in GitHub Desktop.
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 |
can somebody give me proper and latest installation steps.
Yes, this gist should definitely be updated. At least for linux, it was pretty far off.
For windows you need to set an environment variable, look up how to do that in Windows.
I had to generate conda with:
conda create -n od python=3.11
so that later, I could:
make build
which was the only way to generate some files that were not there.
requirements.txt needs at least the following:
datasets
pandas
litellm
termcolor
seaborn
docker
fastapi
uvicorn[standard]
ruff
mypy
langchain
langchain-core
langchain-community
llama-index
llama-index-vector-stores-chroma
chromadb
llama-index-embeddings-huggingface
llama-index-embeddings-azure-openai
llama-index-embeddings-ollama
google-generativeai
toml
pexpect
e2b
json_repair
browsergym
html2text
Ok, I finally have OpenDevin built, now what?
I wanted to give it some commands, but the folder is showing OpenDevin. Odd question, but how do I create a new project? I don't see it. I don't want it trashing the OpenDevin directory. I noticed it was immediately looking at the code in there, and I don't want OpenDevin messing with itself.
Pip install litellm
…
On Mon, Apr 8, 2024, 13:38 Anis111111 @.> wrote: @.* commented on this gist. ------------------------------ uvicorn opendevin.server.listen:app --port 3000 Traceback (most recent call last): File "", line 198, in _run_module_as_main File "", line 88, in run_codeFile "C:\Users\Anis--M\anaconda3\Scripts\uvicorn.exe_main.py", line 7, in File "C:\Users\Anis--M\anaconda3\Lib\site-packages\click\core.py", line 1157, in call return self.main(*args, **kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^ File "C:\Users\Anis--M\anaconda3\Lib\site-packages\click\core.py", line 1078, in main rv = self.invoke(ctx) ^^^^^^^^^^^^^^^^ File "C:\Users\Anis--M\anaconda3\Lib\site-packages\click\core.py", line 1434, in invoke return ctx.invoke(self.callback, **ctx.params) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "C:\Users\Anis--M\anaconda3\Lib\site-packages\click\core.py", line 783, in invoke return __callback(*args, **kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "C:\Users\Anis--M\anaconda3\Lib\site-packages\uvicorn\main.py", line 409, in main run( File "C:\Users\Anis--M\anaconda3\Lib\site-packages\uvicorn\main.py", line 575, in run server.run() File "C:\Users\Anis--M\anaconda3\Lib\site-packages\uvicorn\server.py", line 65, in run return asyncio.run(self.serve(sockets=sockets)) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "C:\Users\Anis--M\anaconda3\Lib\asyncio\runners.py", line 190, in run return runner.run(main) ^^^^^^^^^^^^^^^^ File "C:\Users\Anis--M\anaconda3\Lib\asyncio\runners.py", line 118, in run return self._loop.run_until_complete(task) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "C:\Users\Anis--M\anaconda3\Lib\asyncio\base_events.py", line 653, in run_until_complete return future.result() ^^^^^^^^^^^^^^^ File "C:\Users\Anis--M\anaconda3\Lib\site-packages\uvicorn\server.py", line 69, in serve await self._serve(sockets) File "C:\Users\Anis--M\anaconda3\Lib\site-packages\uvicorn\server.py", line 76, in serveconfig.load()File "C:\Users\Anis--M\anaconda3\Lib\site-packages\uvicorn\config.py", line 433, in loadself.loaded_app = import_from_string(self.app http://self.app)^^^^^^^^^^^^^^^^^^^^^^^^^^^^File "C:\Users\Anis--M\anaconda3\Lib\site-packages\uvicorn\importer.py", line 22, in import_from_stringraise exc from NoneFile "C:\Users\Anis--M\anaconda3\Lib\site-packages\uvicorn\importer.py", line 19, in import_from_stringmodule = importlib.import_module(module_str)^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^File "C:\Users\Anis--M\anaconda3\Lib\importlib_init.py", line 126, in import_module return _bootstrap._gcd_import(name[level:], package, level) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "", line 1204, in _gcd_import File "", line 1176, in _find_and_load File "", line 1147, in _find_and_load_unlocked File "", line 690, in _load_unlocked File "", line 940, in exec_module File "", line 241, in _call_with_frames_removed File "C:\Users\Anis--M\Desktop\OpenDevin\opendevin\server\listen.py", line 5, in import litellm ModuleNotFoundError: No module named 'litellm' what shoud i do?? — Reply to this email directly, view it on GitHub https://gist.github.com/mberman84/2ad782e90d18650dfdf42d677c18c520#gistcomment-5016655 or unsubscribe https://github.com/notifications/unsubscribe-auth/BHO7XPWRFKIIXPTRWYS52IDY4LW4XBFKMF2HI4TJMJ2XIZLTSKBKK5TBNR2WLJDUOJ2WLJDOMFWWLO3UNBZGKYLEL5YGC4TUNFRWS4DBNZ2F6YLDORUXM2LUPGBKK5TBNR2WLJDHNFZXJJDOMFWWLK3UNBZGKYLEL52HS4DFVRZXKYTKMVRXIX3UPFYGLK2HNFZXIQ3PNVWWK3TUUZ2G64DJMNZZDAVEOR4XAZNEM5UXG5FFOZQWY5LFVEYTEOJTG4YDSMJZU52HE2LHM5SXFJTDOJSWC5DF . You are receiving this email because you commented on the thread. Triage notifications on the go with GitHub Mobile for iOS https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675 or Android https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub .
i have some issue and i do pip install litellm.. but it still have that issue
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
@Orizune change 'export' to 'set' on windows