ModuleNotFoundError: No module named 'app'

I’m trying to deploy my flask app. My gunicorn start command ($ gunicorn app:app) is resulting in a ModuleNotFoundError: No module named ‘app’. Is there something wrong with the structure of my project? I’ve already gone through the flask app tutorial and similar threads, but the solutions don’t work for me.

Hi there,

This type of error typically indicates that the file app.py cannot be found within the directory that is configured as the root. I recommend verifying that the file is actually present within the configured root directory and that it matches what’s configured in the Render service’s settings.

Hope that helps!

Regards,
Mike


Render Support Engineer, MT (UTC-7)

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.