Forums

Please Helps, already set .wsgi file but still getting ModuleNotFoundError: No module named 'main_flask_app_file'

Hi,

i already set the .wsgi do look for my my webapp: from CDC_Flask import app as application # noqa CDC_Flask,py is the name of the file.py where my app can be find. However, im still getting this error: ModuleNotFoundError: No module named 'main_flask_app_file'

Please, help!

Are you sure you're looking at the most recent error? The oldest errors are at the top of the log and the newest are at the bottom.

Yes..Here is what i get:

2019-06-15 02:48:00,205: Error running WSGI application
2019-06-15 02:48:00,207: ModuleNotFoundError: No module named 'main_flask_app_file'
2019-06-15 02:48:00,207:   File "/var/www/ramosjosse_pythonanywhere_com_wsgi.py", line 111, in <module>
2019-06-15 02:48:00,207:     from main_flask_app_file import app as application  # noqa
2019-06-15 02:48:00,207: ***************************************************
2019-06-15 02:48:00,207: If you're seeing an import error and don't know why,
2019-06-15 02:48:00,208: we have a dedicated help page to help you debug: 
2019-06-15 02:48:00,208: https://help.pythonanywhere.com/pages/DebuggingImportError/
2019-06-15 02:48:00,208: ***************************************************
2019-06-15 02:48:11,142: Error running WSGI application
2019-06-15 02:48:11,147: ModuleNotFoundError: No module named 'main_flask_app_file'
2019-06-15 02:48:11,147:   File "/var/www/ramosjosse_pythonanywhere_com_wsgi.py", line 111, in <module>
2019-06-15 02:48:11,147:     from main_flask_app_file import app as application  # noqa
2019-06-15 02:48:11,147: ***************************************************
2019-06-15 02:48:11,147: If you're seeing an import error and don't know why,
2019-06-15 02:48:11,148: we have a dedicated help page to help you debug: 
2019-06-15 02:48:11,148: https://help.pythonanywhere.com/pages/DebuggingImportError/
2019-06-15 02:48:11,148: ***************************************************

That error is from 2019.

I see.....but took the log right now.

Look at the bottom of the log for the error that is currently being generated.