Skip to content

Running backend in docker reports an error #154

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
Bclound opened this issue Apr 27, 2025 · 1 comment
Open

Running backend in docker reports an error #154

Bclound opened this issue Apr 27, 2025 · 1 comment

Comments

@Bclound
Copy link

Bclound commented Apr 27, 2025

When I first ran the project in docker, using docker compose up, I got an error with the following error message:

backend-1   | Traceback (most recent call last):
backend-1   |   File "/usr/local/bin/gunicorn", line 8, in <module>
backend-1   |     sys.exit(run())
backend-1   |              ^^^^^
backend-1   |   File "/usr/local/lib/python3.11/site-packages/gunicorn/app/wsgiapp.py", line 66, in run
backend-1   |     WSGIApplication("%(prog)s [OPTIONS] [APP_MODULE]", prog=prog).run()
backend-1   |   File "/usr/local/lib/python3.11/site-packages/gunicorn/app/base.py", line 235, in run
backend-1   |     super().run()
backend-1   |   File "/usr/local/lib/python3.11/site-packages/gunicorn/app/base.py", line 71, in run
backend-1   |     Arbiter(self).run()
backend-1   |     ^^^^^^^^^^^^^
backend-1   |   File "/usr/local/lib/python3.11/site-packages/gunicorn/arbiter.py", line 57, in __init__
backend-1   |     self.setup(app)
backend-1   |   File "/usr/local/lib/python3.11/site-packages/gunicorn/arbiter.py", line 117, in setup
backend-1   |     self.app.wsgi()
backend-1   |   File "/usr/local/lib/python3.11/site-packages/gunicorn/app/base.py", line 66, in wsgi
backend-1   |     self.callable = self.load()
backend-1   |                     ^^^^^^^^^^^
backend-1   |   File "/usr/local/lib/python3.11/site-packages/gunicorn/app/wsgiapp.py", line 57, in load
backend-1   |     return self.load_wsgiapp()
backend-1   |            ^^^^^^^^^^^^^^^^^^^
backend-1   |   File "/usr/local/lib/python3.11/site-packages/gunicorn/app/wsgiapp.py", line 47, in load_wsgiapp
backend-1   |     return util.import_app(self.app_uri)
backend-1   |            ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
backend-1   |   File "/usr/local/lib/python3.11/site-packages/gunicorn/util.py", line 370, in import_app
backend-1   |     mod = importlib.import_module(module)
backend-1   |           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
backend-1   |   File "/usr/local/lib/python3.11/importlib/__init__.py", line 126, in import_module
backend-1   |     return _bootstrap._gcd_import(name[level:], package, level)
backend-1   |            ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
backend-1   |   File "<frozen importlib._bootstrap>", line 1204, in _gcd_import
backend-1   |   File "<frozen importlib._bootstrap>", line 1176, in _find_and_load
backend-1   |   File "<frozen importlib._bootstrap>", line 1147, in _find_and_load_unlocked
backend-1   |   File "<frozen importlib._bootstrap>", line 690, in _load_unlocked
backend-1   |   File "<frozen importlib._bootstrap_external>", line 940, in exec_module
backend-1   |   File "<frozen importlib._bootstrap>", line 241, in _call_with_frames_removed
backend-1   |   File "/app/api.py", line 5, in <module>
backend-1   |     from agentpress.thread_manager import ThreadManager
backend-1   |   File "/app/agentpress/thread_manager.py", line 15, in <module>
backend-1   |     from services.llm import make_llm_api_call
backend-1   |   File "/app/services/llm.py", line 18, in <module>
backend-1   |     import litellm
backend-1   |   File "/usr/local/lib/python3.11/site-packages/litellm/__init__.py", line 1058, in <module>
backend-1   |     from .responses.main import *
backend-1   |   File "/usr/local/lib/python3.11/site-packages/litellm/responses/main.py", line 13, in <module>
backend-1   |     from litellm.responses.litellm_completion_transformation.handler import (
backend-1   |   File "/usr/local/lib/python3.11/site-packages/litellm/responses/litellm_completion_transformation/handler.py", line 8, in <module>
backend-1   |     from litellm.responses.litellm_completion_transformation.streaming_iterator import (
backend-1   |   File "/usr/local/lib/python3.11/site-packages/litellm/responses/litellm_completion_transformation/streaming_iterator.py", line 5, in <module>
backend-1   |     from litellm.responses.litellm_completion_transformation.transformation import (
backend-1   |   File "/usr/local/lib/python3.11/site-packages/litellm/responses/litellm_completion_transformation/transformation.py", line 9, in <module>
backend-1   |     from enterprise.enterprise_hooks.session_handler import (
backend-1   | ModuleNotFoundError: No module named 'enterprise'
backend-1 exited with code 1

My device is MAC M1

@Navron4500
Copy link

There is an error in Latest LiteLLM 1.67.4 it wil be fixed in 1.67.4 POST 1 meanwhile

Edit the suna/backend/requirements.txt
litellm==1.67.2
then Compose it will work

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants