All-Hands-AI / OpenHands

🙌 OpenHands: Code Less, Make More
https://all-hands.dev
MIT License
35.69k stars 4.06k forks source link

git command not found #1012

Closed taozhiyuai closed 6 months ago

taozhiyuai commented 7 months ago

Describe the bug

截屏2024-04-11 14 36 55

Setup and configuration

Current version: (opendevin) taozhiyu@603e5f4a42f1 OpenDevin-main % git log -n 1 fatal: not a git repository (or any of the parent directories): .git

My config.toml and environment vars (be sure to redact API keys): LLM_MODEL="qwen:32b-chat-v1.5-fp16" LLM_API_KEY="ollama" LLM_BASE_URL="http://localhost:11434/v1" LLM_EMBEDDING_MODEL="nomic-embed-text:latest" WORKSPACE_DIR="./workspace"

My model and agent (you can see these settings in the UI): LLM_MODEL="qwen:32b-chat-v1.5-fp16" LLM_API_KEY="ollama" LLM_BASE_URL="http://localhost:11434/v1" LLM_EMBEDDING_MODEL="nomic-embed-text:latest" WORKSPACE_DIR="./workspace"

Commands I ran to install and run OpenDevin:

make build

Steps to Reproduce: 1. 2. 3.

Logs, error messages, and screenshots:

Additional Context

foragerr commented 7 months ago

did you download the zip of the repo from github? looks like some tooling expects the git repo to exist, try git clone instead of downloading zip.

taozhiyuai commented 7 months ago
截屏2024-04-11 14 57 07
taozhiyuai commented 7 months ago

LLM_MODEL="qwen:32b-chat-v1.5-fp16" LLM_API_KEY="ollama" LLM_BASE_URL="http://localhost:11434/v1" LLM_EMBEDDING_MODEL="nomic-embed-text:latest" WORKSPACE_DIR="./workspace"

taozhiyuai commented 7 months ago

`(opendevin) taozhiyu@603e5f4a42f1 OpenDevin-main % make run Running the app... Starting backend server... Waiting for the backend to start... Connection to localhost port 3000 [tcp/hbci] succeeded! Backend started successfully. Starting frontend with npm...

opendevin-frontend@0.1.0 start vite --port 3001

VITE v5.2.8 ready in 170 ms

➜ Local: http://localhost:3001/ ➜ Network: use --host to expose ➜ press h + enter to show help /Users/taozhiyu/miniconda3/envs/opendevin/lib/python3.11/site-packages/pydantic/_internal/_fields.py:151: UserWarning: Field "modellist" has conflict with protected namespace "model".

You may be able to resolve this warning by setting model_config['protected_namespaces'] = (). warnings.warn( /Users/taozhiyu/miniconda3/envs/opendevin/lib/python3.11/site-packages/pydantic/_internal/_fields.py:151: UserWarning: Field "modelname" has conflict with protected namespace "model".

You may be able to resolve this warning by setting model_config['protected_namespaces'] = (). warnings.warn( /Users/taozhiyu/miniconda3/envs/opendevin/lib/python3.11/site-packages/pydantic/_internal/_fields.py:151: UserWarning: Field "model_groupalias" has conflict with protected namespace "model".

You may be able to resolve this warning by setting model_config['protected_namespaces'] = (). warnings.warn( /Users/taozhiyu/miniconda3/envs/opendevin/lib/python3.11/site-packages/pydantic/_internal/_fields.py:151: UserWarning: Field "modelinfo" has conflict with protected namespace "model".

You may be able to resolve this warning by setting model_config['protected_namespaces'] = (). warnings.warn( /Users/taozhiyu/miniconda3/envs/opendevin/lib/python3.11/site-packages/pydantic/_internal/_fields.py:151: UserWarning: Field "modelid" has conflict with protected namespace "model".

You may be able to resolve this warning by setting model_config['protected_namespaces'] = (). warnings.warn( ERROR:root: File "/Users/taozhiyu/miniconda3/envs/opendevin/bin/uvicorn", line 8, in sys.exit(main()) ^^^^^^ File "/Users/taozhiyu/miniconda3/envs/opendevin/lib/python3.11/site-packages/click/core.py", line 1157, in call return self.main(args, kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/Users/taozhiyu/miniconda3/envs/opendevin/lib/python3.11/site-packages/click/core.py", line 1078, in main rv = self.invoke(ctx) ^^^^^^^^^^^^^^^^ File "/Users/taozhiyu/miniconda3/envs/opendevin/lib/python3.11/site-packages/click/core.py", line 1434, in invoke return ctx.invoke(self.callback, ctx.params) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/Users/taozhiyu/miniconda3/envs/opendevin/lib/python3.11/site-packages/click/core.py", line 783, in invoke return __callback(args, kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/Users/taozhiyu/miniconda3/envs/opendevin/lib/python3.11/site-packages/uvicorn/main.py", line 409, in main run( File "/Users/taozhiyu/miniconda3/envs/opendevin/lib/python3.11/site-packages/uvicorn/main.py", line 575, in run server.run() File "/Users/taozhiyu/miniconda3/envs/opendevin/lib/python3.11/site-packages/uvicorn/server.py", line 65, in run return asyncio.run(self.serve(sockets=sockets)) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/Users/taozhiyu/miniconda3/envs/opendevin/lib/python3.11/asyncio/runners.py", line 190, in run return runner.run(main) ^^^^^^^^^^^^^^^^ File "/Users/taozhiyu/miniconda3/envs/opendevin/lib/python3.11/asyncio/runners.py", line 118, in run return self._loop.run_until_complete(task) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "uvloop/loop.pyx", line 1517, in uvloop.loop.Loop.run_until_complete File "/Users/taozhiyu/miniconda3/envs/opendevin/lib/python3.11/site-packages/uvicorn/server.py", line 69, in serve await self._serve(sockets) File "/Users/taozhiyu/miniconda3/envs/opendevin/lib/python3.11/site-packages/uvicorn/server.py", line 76, in _serve config.load() File "/Users/taozhiyu/miniconda3/envs/opendevin/lib/python3.11/site-packages/uvicorn/config.py", line 433, in load self.loaded_app = import_from_string(self.app) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/Users/taozhiyu/miniconda3/envs/opendevin/lib/python3.11/site-packages/uvicorn/importer.py", line 19, in import_from_string module = importlib.import_module(module_str) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/Users/taozhiyu/miniconda3/envs/opendevin/lib/python3.11/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 "/Users/taozhiyu/Downloads/OpenDevin-main/opendevin/server/listen.py", line 12, in import agenthub # noqa F401 (we import this to get the agents registered) ^^^^^^^^^^^^^^^ File "/Users/taozhiyu/Downloads/OpenDevin-main/agenthub/init.py", line 5, in from . import monologue_agent # noqa: E402 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/Users/taozhiyu/Downloads/OpenDevin-main/agenthub/monologue_agent/init.py", line 2, in from .agent import MonologueAgent File "/Users/taozhiyu/Downloads/OpenDevin-main/agenthub/monologue_agent/agent.py", line 29, in from agenthub.monologue_agent.utils.memory import LongTermMemory File "/Users/taozhiyu/Downloads/OpenDevin-main/agenthub/monologue_agent/utils/memory.py", line 38, in embed_model = HuggingFaceEmbedding( ^^^^^^^^^^^^^^^^^^^^^ File "/Users/taozhiyu/miniconda3/envs/opendevin/lib/python3.11/site-packages/llama_index/embeddings/huggingface/base.py", line 86, in init self._model = SentenceTransformer( ^^^^^^^^^^^^^^^^^^^^ File "/Users/taozhiyu/miniconda3/envs/opendevin/lib/python3.11/site-packages/sentence_transformers/SentenceTransformer.py", line 199, in init modules = self._load_auto_model( ^^^^^^^^^^^^^^^^^^^^^^ File "/Users/taozhiyu/miniconda3/envs/opendevin/lib/python3.11/site-packages/sentence_transformers/SentenceTransformer.py", line 1134, in _load_auto_model transformer_model = Transformer( ^^^^^^^^^^^^ File "/Users/taozhiyu/miniconda3/envs/opendevin/lib/python3.11/site-packages/sentence_transformers/models/Transformer.py", line 35, in init config = AutoConfig.from_pretrained(model_name_or_path, model_args, cache_dir=cache_dir) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/Users/taozhiyu/miniconda3/envs/opendevin/lib/python3.11/site-packages/transformers/models/auto/configuration_auto.py", line 1138, in from_pretrained config_dict, unused_kwargs = PretrainedConfig.get_config_dict(pretrained_model_name_or_path, kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/Users/taozhiyu/miniconda3/envs/opendevin/lib/python3.11/site-packages/transformers/configuration_utils.py", line 631, in get_config_dict config_dict, kwargs = cls._get_config_dict(pretrained_model_name_or_path, kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/Users/taozhiyu/miniconda3/envs/opendevin/lib/python3.11/site-packages/transformers/configuration_utils.py", line 707, in _get_config_dict raise EnvironmentError(

ERROR:root:<class 'OSError'>: Can't load the configuration of 'BAAI/bge-small-en-v1.5'. If you were trying to load it from 'https://huggingface.co/models', make sure you don't have a local directory with the same name. Otherwise, make sure 'BAAI/bge-small-en-v1.5' is the correct path to a directory containing a config.json file`

taozhiyuai commented 7 months ago

I have downloaded BAAI/bge-small-en-v1.5, and where should I save it on Mac?

Nash-x9 commented 7 months ago

I have downloaded BAAI/bge-small-en-v1.5, and where should I save it on Mac?

you can change the agenthub/monologue_agent/utils/memory.py, line 39, set model_name value to your save path.

btw,I am a starter here, can you leave a wechat to talk?

rbren commented 7 months ago

@Nash-x9 we only officially communicate over GitHub issues. But you can also try the discord

@taozhiyuai what does git --version show?

taozhiyuai commented 7 months ago

@rbrn

(opendevin) taozhiyu@192 OpenDevin % git --version git version 2.39.3 (Apple Git-146)

SmartManoj commented 7 months ago

https://github.com/OpenDevin/OpenDevin/issues/573#issuecomment-2031923106

Duplicate

taozhiyuai commented 7 months ago

#573 (comment)

Duplicate

thanks for help. but NOT work for me.

` (opendevin) taozhiyu@603e5f4a42f1 OpenDevin % wget https://hf-mirror.com/BAAI/bge-small-en-v1.5/raw/main/1_Pooling/config.json -P /tmp/llama_index/models--BAAI--bge-small-en-v1.5/snapshots/5c38ec7c405ec4b44b94cc5a9bb96e735b38267a/1_Pooling/ --2024-04-15 13:03:54-- https://hf-mirror.com/BAAI/bge-small-en-v1.5/raw/main/1_Pooling/config.json 正在解析主机 hf-mirror.com (hf-mirror.com)... 153.121.57.40, 160.16.199.204, 133.242.169.68 正在连接 hf-mirror.com (hf-mirror.com)|153.121.57.40|:443... 已连接。 已发出 HTTP 请求,正在等待回应... 200 OK 长度:190 [text/plain] 正在保存至: “/tmp/llama_index/models--BAAI--bge-small-en-v1.5/snapshots/5c38ec7c405ec4b44b94cc5a9bb96e735b38267a/1_Pooling/config.json”

config.json 100%[===========================================================================================================================================>] 190 --.-KB/s 用时 0s

2024-04-15 13:03:55 (5.66 MB/s) - 已保存 “/tmp/llama_index/models--BAAI--bge-small-en-v1.5/snapshots/5c38ec7c405ec4b44b94cc5a9bb96e735b38267a/1_Pooling/config.json” [190/190])

(opendevin) taozhiyu@603e5f4a42f1 OpenDevin % make run Running the app... Starting backend server... Waiting for the backend to start... Connection to localhost port 3000 [tcp/hbci] succeeded! Backend started successfully. Starting frontend with npm...

opendevin-frontend@0.1.0 start vite --port 3001

VITE v5.2.8 ready in 154 ms

➜ Local: http://localhost:3001/ ➜ Network: use --host to expose ➜ press h + enter to show help /Users/taozhiyu/miniconda3/envs/opendevin/lib/python3.11/site-packages/pydantic/_internal/_fields.py:151: UserWarning: Field "modellist" has conflict with protected namespace "model".

You may be able to resolve this warning by setting model_config['protected_namespaces'] = (). warnings.warn( /Users/taozhiyu/miniconda3/envs/opendevin/lib/python3.11/site-packages/pydantic/_internal/_fields.py:151: UserWarning: Field "modelname" has conflict with protected namespace "model".

You may be able to resolve this warning by setting model_config['protected_namespaces'] = (). warnings.warn( /Users/taozhiyu/miniconda3/envs/opendevin/lib/python3.11/site-packages/pydantic/_internal/_fields.py:151: UserWarning: Field "model_groupalias" has conflict with protected namespace "model".

You may be able to resolve this warning by setting model_config['protected_namespaces'] = (). warnings.warn( /Users/taozhiyu/miniconda3/envs/opendevin/lib/python3.11/site-packages/pydantic/_internal/_fields.py:151: UserWarning: Field "modelinfo" has conflict with protected namespace "model".

You may be able to resolve this warning by setting model_config['protected_namespaces'] = (). warnings.warn( /Users/taozhiyu/miniconda3/envs/opendevin/lib/python3.11/site-packages/pydantic/_internal/_fields.py:151: UserWarning: Field "modelid" has conflict with protected namespace "model".

You may be able to resolve this warning by setting model_config['protected_namespaces'] = (). warnings.warn( ERROR:root: File "/Users/taozhiyu/miniconda3/envs/opendevin/bin/uvicorn", line 8, in sys.exit(main()) ^^^^^^ File "/Users/taozhiyu/miniconda3/envs/opendevin/lib/python3.11/site-packages/click/core.py", line 1157, in call return self.main(args, kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/Users/taozhiyu/miniconda3/envs/opendevin/lib/python3.11/site-packages/click/core.py", line 1078, in main rv = self.invoke(ctx) ^^^^^^^^^^^^^^^^ File "/Users/taozhiyu/miniconda3/envs/opendevin/lib/python3.11/site-packages/click/core.py", line 1434, in invoke return ctx.invoke(self.callback, ctx.params) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/Users/taozhiyu/miniconda3/envs/opendevin/lib/python3.11/site-packages/click/core.py", line 783, in invoke return __callback(args, kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/Users/taozhiyu/miniconda3/envs/opendevin/lib/python3.11/site-packages/uvicorn/main.py", line 409, in main run( File "/Users/taozhiyu/miniconda3/envs/opendevin/lib/python3.11/site-packages/uvicorn/main.py", line 575, in run server.run() File "/Users/taozhiyu/miniconda3/envs/opendevin/lib/python3.11/site-packages/uvicorn/server.py", line 65, in run return asyncio.run(self.serve(sockets=sockets)) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/Users/taozhiyu/miniconda3/envs/opendevin/lib/python3.11/asyncio/runners.py", line 190, in run return runner.run(main) ^^^^^^^^^^^^^^^^ File "/Users/taozhiyu/miniconda3/envs/opendevin/lib/python3.11/asyncio/runners.py", line 118, in run return self._loop.run_until_complete(task) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "uvloop/loop.pyx", line 1517, in uvloop.loop.Loop.run_until_complete File "/Users/taozhiyu/miniconda3/envs/opendevin/lib/python3.11/site-packages/uvicorn/server.py", line 69, in serve await self._serve(sockets) File "/Users/taozhiyu/miniconda3/envs/opendevin/lib/python3.11/site-packages/uvicorn/server.py", line 76, in _serve config.load() File "/Users/taozhiyu/miniconda3/envs/opendevin/lib/python3.11/site-packages/uvicorn/config.py", line 433, in load self.loaded_app = import_from_string(self.app) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/Users/taozhiyu/miniconda3/envs/opendevin/lib/python3.11/site-packages/uvicorn/importer.py", line 19, in import_from_string module = importlib.import_module(module_str) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/Users/taozhiyu/miniconda3/envs/opendevin/lib/python3.11/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 "/Users/taozhiyu/Downloads/OpenDevin/opendevin/server/listen.py", line 12, in import agenthub # noqa F401 (we import this to get the agents registered) ^^^^^^^^^^^^^^^ File "/Users/taozhiyu/Downloads/OpenDevin/agenthub/init.py", line 5, in from . import monologue_agent # noqa: E402 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/Users/taozhiyu/Downloads/OpenDevin/agenthub/monologue_agent/init.py", line 2, in from .agent import MonologueAgent File "/Users/taozhiyu/Downloads/OpenDevin/agenthub/monologue_agent/agent.py", line 29, in from agenthub.monologue_agent.utils.memory import LongTermMemory File "/Users/taozhiyu/Downloads/OpenDevin/agenthub/monologue_agent/utils/memory.py", line 38, in embed_model = HuggingFaceEmbedding( ^^^^^^^^^^^^^^^^^^^^^ File "/Users/taozhiyu/miniconda3/envs/opendevin/lib/python3.11/site-packages/llama_index/embeddings/huggingface/base.py", line 86, in init self._model = SentenceTransformer( ^^^^^^^^^^^^^^^^^^^^ File "/Users/taozhiyu/miniconda3/envs/opendevin/lib/python3.11/site-packages/sentence_transformers/SentenceTransformer.py", line 199, in init modules = self._load_auto_model( ^^^^^^^^^^^^^^^^^^^^^^ File "/Users/taozhiyu/miniconda3/envs/opendevin/lib/python3.11/site-packages/sentence_transformers/SentenceTransformer.py", line 1134, in _load_auto_model transformer_model = Transformer( ^^^^^^^^^^^^ File "/Users/taozhiyu/miniconda3/envs/opendevin/lib/python3.11/site-packages/sentence_transformers/models/Transformer.py", line 35, in init config = AutoConfig.from_pretrained(model_name_or_path, model_args, cache_dir=cache_dir) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/Users/taozhiyu/miniconda3/envs/opendevin/lib/python3.11/site-packages/transformers/models/auto/configuration_auto.py", line 1138, in from_pretrained config_dict, unused_kwargs = PretrainedConfig.get_config_dict(pretrained_model_name_or_path, kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/Users/taozhiyu/miniconda3/envs/opendevin/lib/python3.11/site-packages/transformers/configuration_utils.py", line 631, in get_config_dict config_dict, kwargs = cls._get_config_dict(pretrained_model_name_or_path, kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/Users/taozhiyu/miniconda3/envs/opendevin/lib/python3.11/site-packages/transformers/configuration_utils.py", line 707, in _get_config_dict raise EnvironmentError(

ERROR:root:<class 'OSError'>: Can't load the configuration of 'BAAI/bge-small-en-v1.5'. If you were trying to load it from 'https://huggingface.co/models', make sure you don't have a local directory with the same name. Otherwise, make sure 'BAAI/bge-small-en-v1.5' is the correct path to a directory containing a config.json file ^[[B^[[A^[[A^Cmake: *** [run] Interrupt: 2 `

SmartManoj commented 7 months ago

573 (comment)

@taozhiyuai Did you try that comment?

rbren commented 6 months ago

Should be fixed with the new docker installation method!

taozhiyuai commented 6 months ago

573 (comment)

@taozhiyuai Did you try that comment?

yes, I have tried. as shown above information I pasted.

(opendevin) taozhiyu@603e5f4a42f1 OpenDevin % wget https://hf-mirror.com/BAAI/bge-small-en-v1.5/raw/main/1_Pooling/config.json -P /tmp/llama_index/models--BAAI--bge-small-en-v1.5/snapshots/5c38ec7c405ec4b44b94cc5a9bb96e735b38267a/1_Pooling/

SmartManoj commented 6 months ago

@taozhiyuai Please continue on #1131