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

The image is not deployed on runpod.io , compiled from the main branch #172

Open
Dimmas opened this issue Dec 3, 2024 · 2 comments
Open

Comments

@Dimmas
Copy link

Dimmas commented Dec 3, 2024

hello! I made a local clone of the main branch of the project. I built the image and uploaded it to the image registry. When trying to deploy an image to runpod.io I get the following error:

2024-12-03T06:39:09.554304123Z ^^^^^^^^^^^^^^^^^^^^^^^^^^^
2024-12-03T06:39:09.554306533Z File "/root/faster-whisper-server/.venv/lib/python3.12/site-packages/uvicorn/main.py", line 410, in main
2024-12-03T06:39:09.554384306Z run(
2024-12-03T06:39:09.554388756Z File "/root/faster-whisper-server/.venv/lib/python3.12/site-packages/uvicorn/main.py", line 577, in run
2024-12-03T06:39:09.554503369Z server.run()
2024-12-03T06:39:09.554509799Z File "/root/faster-whisper-server/.venv/lib/python3.12/site-packages/uvicorn/server.py", line 65, in run
2024-12-03T06:39:09.554523110Z return asyncio.run(self.serve(sockets=sockets))
2024-12-03T06:39:09.554543481Z ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
2024-12-03T06:39:09.554547731Z File "/usr/lib/python3.12/asyncio/runners.py", line 194, in run
2024-12-03T06:39:09.554605813Z return runner.run(main)
2024-12-03T06:39:09.554609043Z ^^^^^^^^^^^^^^^^
2024-12-03T06:39:09.554611493Z File "/usr/lib/python3.12/asyncio/runners.py", line 118, in run
2024-12-03T06:39:09.554668265Z return self._loop.run_until_complete(task)
2024-12-03T06:39:09.554681015Z ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
2024-12-03T06:39:09.554684025Z File "/usr/lib/python3.12/asyncio/base_events.py", line 687, in run_until_complete
2024-12-03T06:39:09.554806379Z return future.result()
2024-12-03T06:39:09.554810189Z ^^^^^^^^^^^^^^^
2024-12-03T06:39:09.554812639Z File "/root/faster-whisper-server/.venv/lib/python3.12/site-packages/uvicorn/server.py", line 69, in serve
2024-12-03T06:39:09.554865431Z await self._serve(sockets)
2024-12-03T06:39:09.554874942Z File "/root/faster-whisper-server/.venv/lib/python3.12/site-packages/uvicorn/server.py", line 76, in _serve
2024-12-03T06:39:09.554917993Z config.load()
2024-12-03T06:39:09.554925693Z File "/root/faster-whisper-server/.venv/lib/python3.12/site-packages/uvicorn/config.py", line 440, in load
2024-12-03T06:39:09.555014976Z self.loaded_app = self.loaded_app()
2024-12-03T06:39:09.555022496Z ^^^^^^^^^^^^^^^^^
2024-12-03T06:39:09.555025136Z File "/root/faster-whisper-server/faster_whisper_server/main.py", line 59, in create_app
2024-12-03T06:39:09.555070848Z app.include_router(stt_router)
2024-12-03T06:39:09.555088658Z File "/root/faster-whisper-server/.venv/lib/python3.12/site-packages/fastapi/applications.py", line 1447, in include_router
2024-12-03T06:39:09.555279785Z self.router.include_router(
2024-12-03T06:39:09.555283965Z File "/root/faster-whisper-server/.venv/lib/python3.12/site-packages/fastapi/routing.py", line 1300, in include_router
2024-12-03T06:39:09.555461950Z self.add_api_route(
2024-12-03T06:39:09.555474711Z File "/root/faster-whisper-server/.venv/lib/python3.12/site-packages/fastapi/routing.py", line 931, in add_api_route
2024-12-03T06:39:09.555561224Z route = route_class(
2024-12-03T06:39:09.555567234Z ^^^^^^^^^^^^
2024-12-03T06:39:09.555570394Z File "/root/faster-whisper-server/.venv/lib/python3.12/site-packages/fastapi/routing.py", line 556, in init
2024-12-03T06:39:09.555648647Z get_parameterless_sub_dependant(depends=depends, path=self.path_format),
2024-12-03T06:39:09.555674428Z ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
2024-12-03T06:39:09.555677937Z File "/root/faster-whisper-server/.venv/lib/python3.12/site-packages/fastapi/dependencies/utils.py", line 129, in get_parameterless_sub_dependant
2024-12-03T06:39:09.555731109Z depends.dependency
2024-12-03T06:39:09.555750550Z AttributeError: 'function' object has no attribute 'dependency'

Please tell me, what am I doing wrong?

@Dimmas
Copy link
Author

Dimmas commented Dec 4, 2024

The same error is present when deploying from workflow and when trying to deploy only from the feat/token-auth branch

@boyqiu-001
Copy link

I have also encountered such a problem with docker image fedirz/faster-whisper-server:sha-dbbbef9-cuda, which tage is 0.6.0-rc.1-cuda

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