On Friday, September 27, 2019 at 6:39:00 AM UTC-7, Mark wrote: > > I am using either Rocket or Azure, and get the same error. > > Yes, there is a ticket, which I didn't realize before: > > Traceback (most recent call last): > File "R:\web2py\gluon\restricted.py", line 219, in restricted > exec(ccode, environment) > File "R:\web2py\applications\myapp\models\db.py", line 321, in <module> > 'aaaaaaaaaaaaaaaaaaaaaaaaaaaa') > File "R:\web2py\gluon\tools.py", line 884, in __init__ > self.request_vars = request and request.vars or current.request.vars > File "R:\web2py\gluon\globals.py", line 316, in vars > self.parse_all_vars() > File "R:\web2py\gluon\globals.py", line 287, in parse_all_vars > for key, value in iteritems(self.post_vars): > File "R:\web2py\gluon\globals.py", line 308, in post_vars > self.parse_post_vars() > File "R:\web2py\gluon\globals.py", line 244, in parse_post_vars > dpost = cgi.FieldStorage(fp=body, environ=env, keep_blank_values=1) > File "c:\python37\lib\cgi.py", line 491, in __init__ > self.read_single() > File "c:\python37\lib\cgi.py", line 682, in read_single > self.read_binary() > File "c:\python37\lib\cgi.py", line 704, in read_binary > self.file.write(data) > File "c:\python37\lib\tempfile.py", line 481, in func_wrapper > return func(*args, **kwargs) > TypeError: write() argument must be str, not bytes > > > Thanks! >
This looks like a place where something got missed in the Py3 work. I suspect in cgi.py, maybe because testing used a uwsgi setup. But I'm not ready to go into to it at this time. Try filing a bug report at <https://github.com/web2py> Also, make sure we know what the front-end and middle-ware parts of the configuration are. /dps -- 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 [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/web2py/92403087-b9d3-4f59-9fd5-f3d9f87b4478%40googlegroups.com.

