I'm testing my web2py application to see what I need to fix in order to make it compatible with python3. I'm using web2py Version 2.17.1-stable+timestamp.2018.08.06.01.02.56
My application has been running with python2 for a long time. Yesterday I tried with python3 (setting up a virtual environment) and everything went ok. But now *I can't go back to use python2*, any request to the application fails with this error: TypeError: translate() takes exactly one argument (2 given) <http://localhost:8000/admin/default/errors/welcome#> Traceback (most recent call last): File "/home/gonguinguen/medios/gluon/main.py", line 435, in wsgibase session.connect(request, response) File "/home/gonguinguen/medios/gluon/globals.py", line 996, in connect response.cookies[response.session_id_name] = response.session_id File "/usr/lib64/python2.7/Cookie.py", line 592, in __setitem__ self.__set(key, rval, cval) File "/usr/lib64/python2.7/Cookie.py", line 585, in __set M.set(key, real_value, coded_value) File "/usr/lib64/python2.7/Cookie.py", line 459, in set if "" != translate(key, idmap, LegalChars): File "/usr/lib64/python2.7/string.py", line 493, in translate return s.translate(table, deletions) TypeError: translate() takes exactly one argument (2 given) I've already flushed redis cache, restarted webserver, cleared browser data... Any other suggestion? Thanks in advance Regards, Lisandro -- 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/0a769bb3-f54f-4024-9917-492d74a3549c%40googlegroups.com.