Python 3.8 Application Fails With 503
I did the following steps:
1. Add subdomain
2. Create a Python App using Python 3.x and serving the subdomain
3. Setup Django project using cPanel terminal
4. Update `passenger_wsgi.py` to serve Django project
5. Restart Python App and navigate to subdomain.domain URL
Using Python 3.8.6 I'm getting a "503 Error".
However running the exact same steps using Python 3.7.10 instead, everything is working.
Could there be a problem with Python 3.8 setup on cPanel?
Thanks!
-
Hey there! It is not expected that any cPanel tools would work with Python 3. Currently we only test things with the Python version that is distributed with the operating system, which is 2.7.5 for CentOS 7. 0 -
@cPRex Okay that's too bad. I still don't understand why would there be a difference between those two versions of Python... I guess I'll keep on using 3.7 in the foreseeable future, unless someone knows the trick. 0 -
That part I'm not sure - the most likely explanation is that there is some difference in Python itself that is keeping your code from working properly between the different versions. 0
Please sign in to leave a comment.
Comments
3 comments