Repository: All-Hands-AI/OpenHands

Issue #571: RuntimeError: Your system has an unsupported version of sqlite3.
Created: 2024-04-02T11:39:27Z
Describe the bug
Unable to run backend
Setup and configuration
Current version: Rocky 9.3 with Python 3.11 Running

**
Whenever I try to run the backend, I get error with sqlite version
RuntimeError: Your system has an unsupported version of sqlite3. Chroma  requires sqlite3 >= 3.35.0.
Please visit  https://docs.trychroma.com/troubleshooting#sqlite to learn how  to upgrade. 

My model and agent (you can see these settings in the UI):

Model: Default gpt-4
Agent:

Commands I ran to install and run OpenDevin:
make start-backend

Steps to Reproduce:

make start-backend

Logs, error messages, and screenshots:
Additional Context

Duplicate issue #934: Make run error in chromadb
Created: 2024-04-09T05:51:07Z
Describe the bug
I am getting chromadb error while running make run command, i have already installed pysqlite3-binary

Commands I ran to install and run OpenDevin:
make build
make setup-config
make run

Logs, error messages, and screenshots:
~/OpenDevin$ make run
Running the app...
Starting backend server...
Waiting for the backend to start...
/home/mohit/.cache/pypoetry/virtualenvs/opendevin-lAal7jDa-py3.11/lib/python3.11/site-packages/pydantic/_internal/fields.py:151: UserWarning: Field "model_list" has conflict with protected namespace "model".
You may be able to resolve this warning by setting model_config['protected_namespaces'] = ().
warnings.warn(
/home/mohit/.cache/pypoetry/virtualenvs/opendevin-lAal7jDa-py3.11/lib/python3.11/site-packages/pydantic/_internal/fields.py:151: 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/mohit/.cache/pypoetry/virtualenvs/opendevin-lAal7jDa-py3.11/lib/python3.11/site-packages/pydantic/_internal/fields.py:151: UserWarning: Field "model_group_alias" has conflict with protected namespace "model".
You may be able to resolve this warning by setting model_config['protected_namespaces'] = ().
warnings.warn(
/home/mohit/.cache/pypoetry/virtualenvs/opendevin-lAal7jDa-py3.11/lib/python3.11/site-packages/pydantic/_internal/fields.py:151: 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(
/home/mohit/.cache/pypoetry/virtualenvs/opendevin-lAal7jDa-py3.11/lib/python3.11/site-packages/pydantic/_internal/fields.py:151: UserWarning: Field "model_id" 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 "/home/mohit/.cache/pypoetry/virtualenvs/opendevin-lAal7jDa-py3.11/bin/uvicorn", line 8, in 
sys.exit(main())
^^^^^^
File "/home/mohit/.cache/pypoetry/virtualenvs/opendevin-lAal7jDa-py3.11/lib/python3.11/site-packages/click/core.py", line 1157, in call
return self.main(*args, **kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/mohit/.cache/pypoetry/virtualenvs/opendevin-lAal7jDa-py3.11/lib/python3.11/site-packages/click/core.py", line 1078, in main
rv = self.invoke(ctx)
^^^^^^^^^^^^^^^^
File "/home/mohit/.cache/pypoetry/virtualenvs/opendevin-lAal7jDa-py3.11/lib/python3.11/site-packages/click/core.py", line 1434, in invoke
return ctx.invoke(self.callback, **ctx.params)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/mohit/.cache/pypoetry/virtualenvs/opendevin-lAal7jDa-py3.11/lib/python3.11/site-packages/click/core.py", line 783, in invoke
return __callback(*args, **kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/mohit/.cache/pypoetry/virtualenvs/opendevin-lAal7jDa-py3.11/lib/python3.11/site-packages/uvicorn/main.py", line 409, in main
run(
File "/home/mohit/.cache/pypoetry/virtualenvs/opendevin-lAal7jDa-py3.11/lib/python3.11/site-packages/uvicorn/main.py", line 575, in run
server.run()
File "/home/mohit/.cache/pypoetry/virtualenvs/opendevin-lAal7jDa-py3.11/lib/python3.11/site-packages/uvicorn/server.py", line 65, in run
return asyncio.run(self.serve(sockets=sockets))
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/lib/python3.11/asyncio/runners.py", line 190, in run
return runner.run(main)
^^^^^^^^^^^^^^^^
File "/usr/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 "/home/mohit/.cache/pypoetry/virtualenvs/opendevin-lAal7jDa-py3.11/lib/python3.11/site-packages/uvicorn/server.py", line 69, in serve
await self._serve(sockets)
File "/home/mohit/.cache/pypoetry/virtualenvs/opendevin-lAal7jDa-py3.11/lib/python3.11/site-packages/uvicorn/server.py", line 76, in _serve
config.load()
File "/home/mohit/.cache/pypoetry/virtualenvs/opendevin-lAal7jDa-py3.11/lib/python3.11/site-packages/uvicorn/config.py", line 433, in load
self.loaded_app = import_from_string(self.app)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/mohit/.cache/pypoetry/virtualenvs/opendevin-lAal7jDa-py3.11/lib/python3.11/site-packages/uvicorn/importer.py", line 19, in import_from_string
module = importlib.import_module(module_str)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/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 "/home/mohit/OpenDevin/opendevin/server/listen.py", line 12, in 
import agenthub  # noqa F401 (we import this to get the agents registered)
^^^^^^^^^^^^^^^
File "/home/mohit/OpenDevin/agenthub/init.py", line 5, in 
from . import monologue_agent # noqa: E402
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/mohit/OpenDevin/agenthub/monologue_agent/init.py", line 2, in 
from .agent import MonologueAgent
File "/home/mohit/OpenDevin/agenthub/monologue_agent/agent.py", line 29, in 
from agenthub.monologue_agent.utils.memory import LongTermMemory
File "/home/mohit/OpenDevin/agenthub/monologue_agent/utils/memory.py", line 1, in 
import chromadb
File "/home/mohit/.cache/pypoetry/virtualenvs/opendevin-lAal7jDa-py3.11/lib/python3.11/site-packages/chromadb/init.py", line 79, in 
raise RuntimeError(
ERROR:root:<class 'RuntimeError'>: Your system has an unsupported version of sqlite3. Chroma                     requires sqlite3 >= 3.35.0.
Please visit                     https://docs.trychroma.com/troubleshooting#sqlite to learn how                     to upgrade.
^Cmake: *** [Makefile:126: run] Interrupt
Additional Context

Closing comment (2024-04-09T10:53:44Z): Duplicate of #571