I'm setting up a fresh install of web2py (on webfaction) on centos7 with Apache 2.4.6 and PostgreSQL under Python 3.8. I've followed the server configuration section of the web2py manual and the welcome app itself is working fine. But when I try to navigate to Admin or appadmin I get a 500 error and a message that the server is misconfigured. When I look in the apache error logs I see this error:
mod_wsgi (pid=14846): Exception occurred processing WSGI script '/<obfuscat ed>/web2py/wsgihandler.py'. TypeError: sequence of byte string values expected, value of type str found Searching that error on the group here brings up a couple of similar past errors, but without any helpful information. Two of the questions went unanswered and the third suggests that an underlying python 3 error was being fixed in a pr last year. Can anyone suggest how I go about debugging this? Here's my complete apache config file: ServerRoot "<obfuscated>" #mime type for mpeg4 files Addtype audio/mp4 .m4a LoadModule authz_core_module modules/mod_authz_core.so LoadModule dir_module modules/mod_dir.so LoadModule env_module modules/mod_env.so LoadModule log_config_module modules/mod_log_config.so LoadModule mime_module modules/mod_mime.so LoadModule rewrite_module modules/mod_rewrite.so LoadModule setenvif_module modules/mod_setenvif.so LoadModule wsgi_module modules/mod_wsgi.so LoadModule unixd_module modules/mod_unixd.so LogFormat "%{X-Forwarded-For}i %l %u %t \"%r\" %>s %b \"%{Referer}i\" \"%{User-Agent}i\"" combined CustomLog /<obfuscated>/access_paideia.log combined ErrorLog /<obfuscated>/error_paideia.log DirectoryIndex index.py DocumentRoot /<obfuscted>/htdocs Listen 13075 KeepAlive Off SetEnvIf X-Forwarded-SSL on HTTPS=1 ServerLimit 1 StartServers 1 MaxRequestWorkers 5 MinSpareThreads 1 MaxSpareThreads 3 ThreadsPerChild 5 WSGIDaemonProcess paideia processes=2 threads=12 python-path=/<obfuscated>/ python3.8 WSGIProcessGroup paideia WGIRestrictEmbedded On WSGILazyInitialization On # Use web2py's wsgi handler WSGIScriptAlias / /<obfuscated>/web2py/wsgihandler.py # Allow no access to web2py folder contents except through handler script <Directory /<obfuscated>/web2py> AllowOverride None Require all denied <Files wsgihandler.py> Require all granted </Files> </Directory> # Allow direct access to anything in the static folder of any application <Directory /<obfuscated>/web2py/applications/*/static/> Require all granted </Directory> -- Resources: - http://web2py.com - http://web2py.com/book (Documentation) - http://github.com/web2py/web2py (Source code) - https://code.google.com/p/web2py/issues/list (Report Issues) --- You received this message because you are subscribed to the Google Groups "web2py-users" group. To unsubscribe from this group and stop receiving emails from it, send an email to web2py+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/web2py/4c309f1f-601a-4f4f-a555-f9666d37c1ce%40googlegroups.com.