Massimo thank you very much for your effort. File , line 57, in <module> fcgi.WSGIServer(application, bindAddress='/tmp/fcgi.sock').run() File , line 1178, in __init__ self._app_lock = thread.allocate_lock() NameError: global name 'thread' is not defined
I guess this takes more work. I wonder if is it possible to use tornado in a production enviroment, using ssl certs like py4web. Web2py's anyserver.py doesnt support ssl certs, so it cant be used in production. Thanks for all your work. El domingo, 22 de marzo de 2020, 16:07:19 (UTC-5), Massimo Di Pierro escribió: > > 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/4f73d7f7-3ff9-43dd-8b41-c413df1a6e26%40googlegroups.com.