Isn't that an old except syntax that is not supported in Python 3? I'm thinking it should be:
except Exception as e: ...but, I'm no expert in 2 to 3 changes. Anyone else know more about this? -Jim On Tuesday, June 18, 2019 at 3:11:14 AM UTC-5, Константин Комков wrote: > Also I see that error: > Ticket ID > > 10.250.10.160.2019-06-18.11-10-10.65f5c525-97e7-4cf4-985b-eea6fd89e420 > Версия > web2py™ Version 2.18.5-stable+timestamp.2019.04.08.04.22.03 > Python Python 3.7.3: C:\Python\python.exe (prefix: C:\Python)Traceback > > 1. > 2. > 3. > 4. > 5. > 6. > 7. > 8. > 9. > 10. > 11. > 12. > 13. > 14. > 15. > 16. > 17. > 18. > > Traceback (most recent call last): > File ".\gluon\main.py", line 444, in wsgibase > serve_controller(request, response, session) > File ".\gluon\main.py", line 179, in serve_controller > page = run_controller_in(request.controller, request.function, > environment) > File ".\gluon\compileapp.py", line 657, in run_controller_in > ccode = getcfs(layer, filename, lambda: compile2(code, filename)) > File ".\gluon\cfs.py", line 50, in getcfs > data = filter() > File ".\gluon\compileapp.py", line 657, in <lambda> > ccode = getcfs(layer, filename, lambda: compile2(code, filename)) > File ".\gluon\restricted.py", line 205, in compile2 > return compile(code, layer, 'exec') > File "C:\inetpub\wwwroot\applications\stud\controllers/appadmin.py", line > 270 > except Exception, e: > ^ > SyntaxError: invalid syntax > > Error snapshot [image: help] > <http://10.250.10.160/admin/ticket/stud/10.250.10.160.2019-06-18.11-10-10.65f5c525-97e7-4cf4-985b-eea6fd89e420#> > > SyntaxError(invalid syntax (controllers/appadmin.py, line 270)) > > inspect attributes > Frames > > - > > *File C:\inetpub\wwwroot\gluon\main.py in wsgibase at line 444* код > аргументы переменные > - > > *File C:\inetpub\wwwroot\gluon\main.py in serve_controller at line 179* > код аргументы переменные > - > > *File C:\inetpub\wwwroot\gluon\compileapp.py in run_controller_in at > line 657* код аргументы переменные > - > > *File C:\inetpub\wwwroot\gluon\cfs.py in getcfs at line 50* код > аргументы переменные > - > > *File C:\inetpub\wwwroot\gluon\compileapp.py in <lambda> at line 657* > код аргументы переменные > - > > *File C:\inetpub\wwwroot\gluon\restricted.py in compile2 at line 205* > код аргументы переменные > Function argument list > > (code='# -*- coding: utf-8 -*-\n\n# #####################...n > ul_main\n\nresponse._vars=response._caller(hooks)', > layer=r'C:\inetpub\wwwroot\applications\stud\controllers/appadmin.py') > Code listing > > 200. > 201. > 202. > 203. > 204. > 205. > 206. > 207. > 208. > 209. > > output = "" > return output > > > def compile2(code, layer): > return compile(code, layer, 'exec') > > > def restricted(ccode, environment=None, layer='Unknown', scode=None): > """ > > Variables > builtincompile <built-in function compile> > code '# -*- coding: utf-8 -*-\n\n# #####################...n > ul_main\n\nresponse._vars=response._caller(hooks)' > layer r'C:\inetpub\wwwroot\applications\stud\controllers/appadmin.py' > > > -- 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/7c359d91-336c-4166-8178-08707cc5f016%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.

