Skip to content
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

superAGI-backend throws error in logs #1446

Open
1 task done
gokul-pk opened this issue Jan 5, 2025 · 1 comment · May be fixed by #1444 or #1449
Open
1 task done

superAGI-backend throws error in logs #1446

gokul-pk opened this issue Jan 5, 2025 · 1 comment · May be fixed by #1444 or #1449

Comments

@gokul-pk
Copy link

gokul-pk commented Jan 5, 2025

⚠️ Check for existing issues before proceeding. ⚠️

  • I have searched the existing issues, and there is no existing issue for my problem

Where are you using SuperAGI?

Linux

Which branch of SuperAGI are you using?

Main

Do you use OpenAI GPT-3.5 or GPT-4?

GPT-3.5

Which area covers your issue best?

Installation and setup

Describe your issue.

superagi-backend log

INFO: Will watch for changes in these directories: ['/app']
INFO: Uvicorn running on http://0.0.0.0:8001 (Press CTRL+C to quit)
INFO: Started reloader process [1] using WatchFiles
Process SpawnProcess-1:
Traceback (most recent call last):
File "/usr/local/lib/python3.10/multiprocessing/process.py", line 314, in _bootstrap
self.run()
File "/usr/local/lib/python3.10/multiprocessing/process.py", line 108, in run
self._target(*self._args, **self._kwargs)
File "/opt/venv/lib/python3.10/site-packages/uvicorn/_subprocess.py", line 76, in subprocess_started
target(sockets=sockets)
File "/opt/venv/lib/python3.10/site-packages/uvicorn/server.py", line 61, in run
return asyncio.run(self.serve(sockets=sockets))
File "/usr/local/lib/python3.10/asyncio/runners.py", line 44, in run
return loop.run_until_complete(main)
File "uvloop/loop.pyx", line 1518, in uvloop.loop.Loop.run_until_complete
File "/opt/venv/lib/python3.10/site-packages/uvicorn/server.py", line 68, in serve
config.load()
File "/opt/venv/lib/python3.10/site-packages/uvicorn/config.py", line 473, in load
self.loaded_app = import_from_string(self.app)
File "/opt/venv/lib/python3.10/site-packages/uvicorn/importer.py", line 21, in import_from_string
module = importlib.import_module(module_str)
File "/usr/local/lib/python3.10/importlib/init.py", line 126, in import_module
return _bootstrap._gcd_import(name[level:], package, level)
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 "/app/main.py", line 17, in
from superagi.controllers.agent import router as agent_router
File "/app/superagi/controllers/agent.py", line 32, in
from superagi.helper.auth import check_auth
File "/app/superagi/helper/auth.py", line 47, in
def get_current_user(Authorize: AuthJWT = Depends(check_auth), request: Request = Depends()):
NameError: name 'Request' is not defined

How to replicate your Issue?

  • Clone the repo
  • Fill the config.yaml file
  • Build
  • Make it up
  • UI start telling SuperAGI is initializing, thats it
  • When checked backend logs, Errors are coming

Upload Error Log Content

INFO: Will watch for changes in these directories: ['/app'] INFO: Uvicorn running on http://0.0.0.0:8001 (Press CTRL+C to quit) INFO: Started reloader process [1] using WatchFiles Process SpawnProcess-1: Traceback (most recent call last): File "/usr/local/lib/python3.10/multiprocessing/process.py", line 314, in _bootstrap self.run() File "/usr/local/lib/python3.10/multiprocessing/process.py", line 108, in run self._target(*self._args, **self._kwargs) File "/opt/venv/lib/python3.10/site-packages/uvicorn/_subprocess.py", line 76, in subprocess_started target(sockets=sockets) File "/opt/venv/lib/python3.10/site-packages/uvicorn/server.py", line 61, in run return asyncio.run(self.serve(sockets=sockets)) File "/usr/local/lib/python3.10/asyncio/runners.py", line 44, in run return loop.run_until_complete(main) File "uvloop/loop.pyx", line 1518, in uvloop.loop.Loop.run_until_complete File "/opt/venv/lib/python3.10/site-packages/uvicorn/server.py", line 68, in serve config.load() File "/opt/venv/lib/python3.10/site-packages/uvicorn/config.py", line 473, in load self.loaded_app = import_from_string(self.app) File "/opt/venv/lib/python3.10/site-packages/uvicorn/importer.py", line 21, in import_from_string module = importlib.import_module(module_str) File "/usr/local/lib/python3.10/importlib/init.py", line 126, in import_module return _bootstrap._gcd_import(name[level:], package, level) 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 "/app/main.py", line 17, in from superagi.controllers.agent import router as agent_router File "/app/superagi/controllers/agent.py", line 32, in from superagi.helper.auth import check_auth File "/app/superagi/helper/auth.py", line 47, in def get_current_user(Authorize: AuthJWT = Depends(check_auth), request: Request = Depends()): NameError: name 'Request' is not defined

@worldyuan
Copy link

same error

@Takahiro-Yoko Takahiro-Yoko linked a pull request Jan 12, 2025 that will close this issue
8 tasks
@sahilk0108 sahilk0108 linked a pull request Jan 24, 2025 that will close this issue
3 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
2 participants