Web2Py Python 2 to Python3 upgrade

79 views
Skip to first unread message

Ben Charles

unread,
May 25, 2020, 12:29:18 AM5/25/20
to web2py-users
I am trying to update a new install (Turnkey Linux Jessie Web2Py) from Python 2.7 to Python 3.

First I updated Web2Py in the admin menu, so that the version is compatible with Python 3, then I installed libapache2-mod-wsgi-py3, and since then, upon connecting, I got this text:

Internal Server Error

The server encountered an internal error or misconfiguration and was unable to complete your request.

Please contact the server administrator at webmaster@localhost to inform them of the time this error occurred, and the actions you performed just before this error.

More information about this error may be available in the server error log.


I checked the Apache logs, and found an error with the file wsgihandler.py. I took a version from the Web2Py GitHub, and replaced it. Since doing that and restarting apache2, I get a ticket come up whenever I try to connect to the server. I have a feeling that it is because there are some Python 2.7 modules/code still loaded, but I am not sure which ones or how to update them to Python3 compatible versions.


I have tried clearing the sessions and errors.


Thank you.

Reply all
Reply to author
Forward
0 new messages