Forums

Virtualenv Issue

My web app is down with a server error. I tried to reload the app and I get the 'There is a problem with your virtualenv setup. Look at the virtualenv section below for details.' message when I reload. However, the Virtualenv section has an active environment running, but there are no additional error messages showing. Please Help!

I have the exact same problem now. No problem until yesterday, but all of sudden I can't access my app site today Aug/30. It says "something went wrong .... Error code:502-backend". When I reload app on Web tab, it says "There is a problem with your virtualenv setup. Look at the virtualenv section below for details. But in virtualenv section, there is no mention about error. it says only "Use a virtualenv to get different versions of flask, django etc from our default system ones. More info here. You need to Reload your web app to activate it; NB - will do nothing if the virtualenv does not exist." It seems my virtual env has no problem. Can pythonanywhere team do something about it? My app is kocool.pythonanywhere.com. Please help!

I get the exact same messaging about the virtualenv error. I thought it may be a mismatch in python version with the webapp or django versions but all the versions line up correctly. I even created a new virtual environment and re-routed the webapp to the new env but got the same virtualenv error messaging on the dashboard page. The consistent error i the error log is "Error running WSGI application, ModuleNotFoundError: No module named '<mydomain>_com_wsgi'

This the same error messaging I was receiving a couple weeks ago when pythonanywhere was having some backend issues.

My virtual environment works fine... my files are there... I don't know what else to do. All I see is the 'virtualenv' message that redirects to no additional messaging. What else can I do?

I tried to recreate new virtualenv(myenv2), install python(3.7) & libraries(django2.2.12, pandas, dotenv, mysqlclient), and change env from myenv to myenv2 on virtualenv section on Web tab in configuration page. But it ended the same result...

This is Server log 2023-08-30 07:00:42 *** Starting uWSGI 2.0.17.1 (64bit) on [Wed Aug 30 07:00:42 2023] *** 2023-08-30 07:00:42 compiled with version: 5.4.0 20160609 on 07 May 2020 19:40:56 2023-08-30 07:00:42 os: Linux-5.15.0-1021-aws #25~20.04.1-Ubuntu SMP Thu Sep 22 13:59:08 UTC 2022 2023-08-30 07:00:42 nodename: green-liveweb21 2023-08-30 07:00:42 machine: x86_64 2023-08-30 07:00:42 clock source: unix 2023-08-30 07:00:42 pcre jit disabled 2023-08-30 07:00:42 detected number of CPU cores: 4 2023-08-30 07:00:42 current working directory: /home/kocool 2023-08-30 07:00:42 detected binary path: /usr/local/bin/uwsgi 2023-08-30 07:00:42 *** dumping internal routing table *** 2023-08-30 07:00:42 [rule: 0] subject: path_info regexp: .svgz$ action: addheader:Content-Encoding:gzip 2023-08-30 07:00:42 *** end of the internal routing table *** 2023-08-30 07:00:42 chdir() to /home/kocool/kocool 2023-08-30 07:00:42 chdir(): No such file or directory [core/uwsgi.c line 2631] 2023-08-30 07:00:42 chdir(): No such file or directory [core/uwsgi.c line 1646]

We had a problem with one of our servers that should be solved now. Sorry for that. Let us know if problems persist for any of you.

I can access my app now! I really appreciate your help, pythonanywhere team. I understand the cause was with your server problem. Please consider to prevent the same problem from happening again!