Relative path leads to ModuleNotFound #400
Replies: 3 comments
-
Can you try to go up one level and target |
Beta Was this translation helpful? Give feedback.
-
Just tried and it's not working still on my Docker environment. Here's the
|
Beta Was this translation helpful? Give feedback.
-
The previous traceback you gave suggests that this import from app.api.api_v1.api import api_router can not be resolved. It seems the You could isolate this with something like # some_python_file.py
from app.api.api_v1.api import api_router
print("Hello world.") but frankly, the error you linked doesn't have anything to do with Granian. You might also want to look at your Dockerfile, especially if you can confirm that things work locally but not in docker? |
Beta Was this translation helpful? Give feedback.
-
Hi there, thanks for making such a rapid framework, I thought it could be used as a drop-in replacement for FastAPI but when I tried to run via
root@:/app/app# granian main --workers 8 --port 8001
it just crashed. I had no issues withUvicorn
andsocketify
in the past.Any guidance will be appreciated. Thanks a bunch!
Beta Was this translation helpful? Give feedback.
All reactions