[web2py] Re: python3 + web2py + Lighttpd + fastcgi
Thank you Massimo. I will start deploying testing on debian Buster. El lunes, 23 de marzo de 2020, 23:20:42 (UTC-5), Massimo Di Pierro escribió: > > I guess we would have to replace calls to thread. to threading. > > Why not use nginx which is kind of the standard today? > -- 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/44f118f9-1e93-4833-ba70-e62d7c6234c4%40googlegroups.com.
[web2py] Re: python3 + web2py + Lighttpd + fastcgi
On Saturday, March 21, 2020 at 4:11:38 PM UTC-7, patito feo wrote: > > Hi all, > > Hi! I hope you're enjoying using web2py. But ... Google doesn't make it clear, but checking "show at the top" should be reserved for long-lived threads, rather than for the topic of the day. BTW, my production server is one of the ones using nginx -- very easy to work with. And very nice blog. /dps > 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 > import gluon.contrib.gateways.fcgi as fcgi > File "/folder/folder/folder/gluon/contrib/gateways/fcgi.py", line 439 > s = struct.pack('!L', nameLength | 0x8000L) > ^ > 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/7a179c1c-f48d-4e95-8d10-02361c405ab7%40googlegroups.com.
[web2py] Re: python3 + web2py + Lighttpd + fastcgi
I guess we would have to replace calls to thread. to threading. Why not use nginx which is kind of the standard today? -- 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/904fc08d-5ebf-4dfa-9bde-89a6f7796a9b%40googlegroups.com.
[web2py] Re: python3 + web2py + Lighttpd + fastcgi
Massimo thank you very much for your effort. File , line 57, in 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 import gluon.contrib.gateways.fcgi as fcgi File "/folder/folder/folder/gluon/contrib/gateways/fcgi.py", line 439 s = struct.pack('!L', nameLength | 0x8000L) ^ 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.
[web2py] Re: python3 + web2py + Lighttpd + fastcgi
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 >>> import gluon.contrib.gateways.fcgi as fcgi >>> File "/folder/folder/folder/gluon/contrib/gateways/fcgi.py", line 439 >>> s = struct.pack('!L', nameLength | 0x8000L) >>> ^ >>> 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.
[web2py] Re: python3 + web2py + Lighttpd + fastcgi
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 >> import gluon.contrib.gateways.fcgi as fcgi >> File "/folder/folder/folder/gluon/contrib/gateways/fcgi.py", line 439 >> s = struct.pack('!L', nameLength | 0x8000L) >> ^ >> 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/db890a84-1cb3-464b-bec9-d97521e87358%40googlegroups.com.
[web2py] Re: python3 + web2py + Lighttpd + fastcgi
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 > import gluon.contrib.gateways.fcgi as fcgi > File "/folder/folder/folder/gluon/contrib/gateways/fcgi.py", line 439 > s = struct.pack('!L', nameLength | 0x8000L) > ^ > 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/770bab28-dd87-46f9-ac17-171a72d89cee%40googlegroups.com.