OpenHands
OpenHands copied to clipboard
backend start problem
when i start backend :
/home/naladog/.cache/pypoetry/virtualenvs/opendevin-gp-JtEgx-py3.11/lib/python3.11/site-packages/pydantic/_internal/fields.py:160: UserWarning: Field "model_name" has conflict with protected namespace "model".
You may be able to resolve this warning by setting model_config['protected_namespaces'] = ().
warnings.warn(
/home/naladog/.cache/pypoetry/virtualenvs/opendevin-gp-JtEgx-py3.11/lib/python3.11/site-packages/pydantic/_internal/fields.py:160: UserWarning: Field "model_info" has conflict with protected namespace "model".
You may be able to resolve this warning by setting model_config['protected_namespaces'] = ().
warnings.warn(
That is just a warning, and it doesn't affect running the app. It showed up recently again, from a dependency, litellm, when we updated it. I'm sure it will vanish soon.
you can upgrade your litellm version to solve it
Like:
pip install litellm==1.35.31
# or just
pip install litellm --upgrade
It seems like this problem has returned, even in newer versions of LiteLLM
Hi Guys I installed this today I am running MAC M1 Ultra with Sonoma 14.2.1 and managed to get all the steps done, I then had an issue with
llama-index-vector-stores-chroma with ERROR: Cannot install llama-index-vector-stores-chroma==0.1.2, llama-index-vector-stores-chroma==0.1.3, llama-index-vector-stores-chroma==0.1.4 and llama-index-vector-stores-chroma==0.1.5 because these package versions have conflicting dependencies.
I resolved that by running conda install onnxruntime -c conda-forge
When running the server I get
uvicorn opendevin.server.listen:app --port 3000
/opt/anaconda3/envs/od/lib/python3.12/site-packages/pydantic/_internal/_fields.py:160: UserWarning: Field "model_group_retry_policy" 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 "/opt/anaconda3/envs/od/bin/uvicorn", line 8, in <module>
sys.exit(main())
^^^^^^
File "/opt/anaconda3/envs/od/lib/python3.12/site-packages/click/core.py", line 1157, in __call__
return self.main(*args, **kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/opt/anaconda3/envs/od/lib/python3.12/site-packages/click/core.py", line 1078, in main
rv = self.invoke(ctx)
^^^^^^^^^^^^^^^^
File "/opt/anaconda3/envs/od/lib/python3.12/site-packages/click/core.py", line 1434, in invoke
return ctx.invoke(self.callback, **ctx.params)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/opt/anaconda3/envs/od/lib/python3.12/site-packages/click/core.py", line 783, in invoke
return __callback(*args, **kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/opt/anaconda3/envs/od/lib/python3.12/site-packages/uvicorn/main.py", line 409, in main
run(
File "/opt/anaconda3/envs/od/lib/python3.12/site-packages/uvicorn/main.py", line 575, in run
server.run()
File "/opt/anaconda3/envs/od/lib/python3.12/site-packages/uvicorn/server.py", line 65, in run
return asyncio.run(self.serve(sockets=sockets))
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/opt/anaconda3/envs/od/lib/python3.12/asyncio/runners.py", line 194, in run
return runner.run(main)
^^^^^^^^^^^^^^^^
File "/opt/anaconda3/envs/od/lib/python3.12/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 "/opt/anaconda3/envs/od/lib/python3.12/site-packages/uvicorn/server.py", line 69, in serve
await self._serve(sockets)
File "/opt/anaconda3/envs/od/lib/python3.12/site-packages/uvicorn/server.py", line 76, in _serve
config.load()
File "/opt/anaconda3/envs/od/lib/python3.12/site-packages/uvicorn/config.py", line 433, in load
self.loaded_app = import_from_string(self.app)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/opt/anaconda3/envs/od/lib/python3.12/site-packages/uvicorn/importer.py", line 22, in import_from_string
raise exc from None
File "/opt/anaconda3/envs/od/lib/python3.12/site-packages/uvicorn/importer.py", line 19, in import_from_string
module = importlib.import_module(module_str)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/opt/anaconda3/envs/od/lib/python3.12/importlib/__init__.py", line 90, in import_module
return _bootstrap._gcd_import(name[level:], package, level)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "<frozen importlib._bootstrap>", line 1387, in _gcd_import
File "<frozen importlib._bootstrap>", line 1360, in _find_and_load
File "<frozen importlib._bootstrap>", line 1331, in _find_and_load_unlocked
File "<frozen importlib._bootstrap>", line 935, in _load_unlocked
File "<frozen importlib._bootstrap_external>", line 995, in exec_module
File "<frozen importlib._bootstrap>", line 488, in _call_with_frames_removed
File "/Volumes/ExtremeSSD/OpenDevin/opendevin/server/listen.py", line 13, in <module>
import agenthub # noqa F401 (we import this to get the agents registered)
^^^^^^^^^^^^^^^
File "/Volumes/ExtremeSSD/OpenDevin/agenthub/__init__.py", line 3, in <module>
from opendevin.controller.agent import Agent
File "/Volumes/ExtremeSSD/OpenDevin/opendevin/controller/__init__.py", line 1, in <module>
from .action_manager import ActionManager
File "/Volumes/ExtremeSSD/OpenDevin/opendevin/controller/action_manager.py", line 5, in <module>
from opendevin.events.action import (
File "/Volumes/ExtremeSSD/OpenDevin/opendevin/events/action/__init__.py", line 17, in <module>
from .files import FileReadAction, FileWriteAction
File "/Volumes/ExtremeSSD/OpenDevin/opendevin/events/action/files.py", line 14, in <module>
from opendevin.runtime import E2BBox
File "/Volumes/ExtremeSSD/OpenDevin/opendevin/runtime/__init__.py", line 3, in <module>
from .docker.ssh_box import DockerSSHBox
File "/Volumes/ExtremeSSD/OpenDevin/opendevin/runtime/docker/ssh_box.py", line 12, in <module>
from pexpect import pxssh
ERROR:root:<class 'ModuleNotFoundError'>: No module named 'pexpect'
any pointers greatly appreciated
@jimthedj65 can you open a new bug issue with the template filled out?
Going to close this one since it's just a warning