Forums

Trying to run dash app shows errors

Good day, I've been trying to make a dash app work but I get an error: ModuleNotFoundError: No module named 'appMain' in the <user>.pythonanywhere.com.error.log I have tried updating the /var/www/erikssawa_pythonanywhere_com_wsgi.py file with the code:

from appMain import app 
application = app.server

And the file in "/home/erikssawa/myapp/appMain.py" is in there... help is much appreciated.

I followed this tutorial: https://www.youtube.com/watch?v=WOWVat5BgM4

I see your web app is loading now -- I guess you fixed the paths in the wsgi file, right?

Oh hello, yes, I just fixed it, first time I was uploading my files with ssh with a program name mobaxterm but I think pythonanywhere or the upload was wrong, I deleted the site folder and cloned the git repo, checked the wsgi file again and after reloading the site it worked, its really nice, its my first python super mega basic site. Many thanks for replying, maybe someone will find this useful.

Glad you got that working!