SolomonDefi / solomon-monorepo

Monorepo containing core Solomon apps, services, libraries, and deploy config.
6 stars 3 forks source link

Api-evidence issue #202

Closed apolkingg8 closed 2 years ago

apolkingg8 commented 2 years ago

Looks like missing some package:

INFO:     Uvicorn running on http://0.0.0.0:3010 (Press CTRL+C to quit)

INFO:     Started reloader process [57] using statreload

INFO:     Started server process [60]

INFO:     Waiting for application startup.

INFO:     Application startup complete.

INFO:     127.0.0.1:53832 - "POST /api/evidence HTTP/1.1" 500 Internal Server Error

ERROR:    Exception in ASGI application

Traceback (most recent call last):

  File "/usr/src/apps/api-evidence/.venv/lib/python3.9/site-packages/uvicorn/protocols/http/h11_impl.py", line 369, in run_asgi

    result = await app(self.scope, self.receive, self.send)

  File "/usr/src/apps/api-evidence/.venv/lib/python3.9/site-packages/uvicorn/middleware/proxy_headers.py", line 59, in __call__

    return await self.app(scope, receive, send)

  File "/usr/src/apps/api-evidence/.venv/lib/python3.9/site-packages/fastapi/applications.py", line 208, in __call__

    await super().__call__(scope, receive, send)

  File "/usr/src/apps/api-evidence/.venv/lib/python3.9/site-packages/starlette/applications.py", line 112, in __call__

    await self.middleware_stack(scope, receive, send)

  File "/usr/src/apps/api-evidence/.venv/lib/python3.9/site-packages/starlette/middleware/errors.py", line 181, in __call__

    raise exc

  File "/usr/src/apps/api-evidence/.venv/lib/python3.9/site-packages/starlette/middleware/errors.py", line 159, in __call__

    await self.app(scope, receive, _send)

  File "/usr/src/apps/api-evidence/.venv/lib/python3.9/site-packages/starlette/exceptions.py", line 82, in __call__

    raise exc

  File "/usr/src/apps/api-evidence/.venv/lib/python3.9/site-packages/starlette/exceptions.py", line 71, in __call__

    await self.app(scope, receive, sender)

  File "/usr/src/apps/api-evidence/.venv/lib/python3.9/site-packages/starlette/routing.py", line 656, in __call__

    await route.handle(scope, receive, send)

  File "/usr/src/apps/api-evidence/.venv/lib/python3.9/site-packages/starlette/routing.py", line 259, in handle

    await self.app(scope, receive, send)

  File "/usr/src/apps/api-evidence/.venv/lib/python3.9/site-packages/starlette/routing.py", line 61, in app

    response = await func(request)

  File "/usr/src/apps/api-evidence/.venv/lib/python3.9/site-packages/fastapi/routing.py", line 216, in app

    solved_result = await solve_dependencies(

  File "/usr/src/apps/api-evidence/.venv/lib/python3.9/site-packages/fastapi/dependencies/utils.py", line 496, in solve_dependencies

    solved_result = await solve_dependencies(

  File "/usr/src/apps/api-evidence/.venv/lib/python3.9/site-packages/fastapi/dependencies/utils.py", line 527, in solve_dependencies

    solved = await run_in_threadpool(call, **sub_values)

  File "/usr/src/apps/api-evidence/.venv/lib/python3.9/site-packages/starlette/concurrency.py", line 39, in run_in_threadpool

    return await anyio.to_thread.run_sync(func, *args)

  File "/usr/src/apps/api-evidence/.venv/lib/python3.9/site-packages/anyio/to_thread.py", line 28, in run_sync

    return await get_asynclib().run_sync_in_worker_thread(func, *args, cancellable=cancellable,

  File "/usr/src/apps/api-evidence/.venv/lib/python3.9/site-packages/anyio/_backends/_asyncio.py", line 805, in run_sync_in_worker_thread

    return await future

  File "/usr/src/apps/api-evidence/.venv/lib/python3.9/site-packages/anyio/_backends/_asyncio.py", line 743, in run

    result = func(*args)

  File "/usr/src/apps/api-evidence/src/./app/utils/deps.py", line 26, in get_s3_backend

    from app.storage.backend.s3 import S3

  File "/usr/src/apps/api-evidence/src/./app/storage/backend/s3.py", line 6, in <module>

    from mypy_boto3_s3.client import S3Client

ModuleNotFoundError: No module named 'mypy_boto3_s3'