Forums

ModuleNotFoundError: No module named 'www_mydomain_co_uk_wsgi'

Hi, my site has been working fine, but all of a sudden today it is down, and I am getting the following errors:

Error running WSGI application
ModuleNotFoundError: No module named 'www_mydomain_co_uk_wsgi'

(I've replaced my domain name with 'mydomain')

I've tried going to this page, and I have run this command:

(my-virtualenv)$ python -i /var/www/www_my_domain_com_wsgi.py

and it drops me into a python shell

I'm not really sure how to proceed. Any help would be very much appreciated as I'm keen to get the site back up ASAP

The site was working fine until today

If from that shell I run

import gymSite.settings

that doesn't give any error

And if I print

print(gymSite.settings.__file__)

then I get what looks like the right path

Also from the virtualenv bash console I can run

python3.7 gymSite/settings.py

and I don't get an error (but I also don't get dropped into a python shell)

hey @bobbyarcher, I am facing the exact same issue with wsgi and my site (bytenet.pythonanywhere.com) also stopped working suddenly. I have also tried loading settings.py and the one /var/wwwmydomain_com_wsgi.py and everything is working fine there. But reloading the webapp I get "There is a problem with your virtualenv setup. Look at the virtualenv section below for details.".

Please let me know if you find any solution to this. Thanks in advance.

Sorry about that. We had an issue on the web server that runs your web app. We have fixed it and made changes to ensure that it does not repeat in future.