I just fixed these issues and a few more. still skeptical this works with py3 without more changes. Thanks for you help
On Saturday, 21 March 2020 20:12:01 UTC-7, patito feo wrote: > > Thank you Massimo. > > As a result the code now shows more "L" cases, i just removed them. But > now it presents incompatibilities with exceptions and raises. > > File , line 618 > def _end(self, appStatus=0L, protocolStatus=FCGI_REQUEST_COMPLETE): > ^ > SyntaxError: invalid syntax > > File , line 1080 > except select.error, e: > ^ > SyntaxError: invalid syntax > > > File , line 1134 > raise NotImplementedError, self.__class__.__name__ + '.handler' > ^ > SyntaxError: invalid syntax > > > File , line 1317 > name, cgi.escape(`environ[name]`)) > ^ > SyntaxError: invalid syntax > > > As i told you before the "L" cases i fixed them, but this others errors > dont know how to fixed them. > > > Thanks for your help. > > > > El sábado, 21 de marzo de 2020, 20:26:06 (UTC-5), Massimo Di Pierro > escribió: >> >> Fixed right now on github. Python 3 does not like the L >> >> On Saturday, 21 March 2020 16:11:38 UTC-7, patito feo wrote: >>> >>> Hi all, >>> >>> I've been trying to run web2py using python3 but unable to do it >>> sucessful. >>> Using latest build 2.19.1 >>> >>> I keep getting this error: >>> >>> Traceback (most recent call last): >>> File "/folder/folder/folder/fcgihandler.py", line 44, in <module> >>> import gluon.contrib.gateways.fcgi as fcgi >>> File "/folder/folder/folder/gluon/contrib/gateways/fcgi.py", line 439 >>> s = struct.pack('!L', nameLength | 0x80000000L) >>> ^ >>> SyntaxError: invalid syntax >>> >>> Please help me find a solution or a replacement. >>> >>> >>> Cheers, >>> >> -- 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/35369cb1-e477-4cf9-b4e7-cddc84c0a072%40googlegroups.com.