@Niphlod: I had just found the from __future__ import with_statement in a stack overflow thread. I tried it out and now it seems the problem moves downstream. I'm still getting the endless ticket, but when I pick out the traceback, it looks like this:
S'Traceback (most recent call last):\n File "I:\\web2py\\gluon\\restricted.py", line 211, in restricted\n ccode = compile2(code, layer)\n File "I:\\web2py\\gluon\\restricted.py", line 194, in compile2\n return compile(code.rstrip().replace(\'\\r\\n\', \'\\n\') + \'\\n\', layer, \'exec\')\n File "I:\\web2py\\applications\\admin\\controllers/default.py", line 1464\n _class="nav nav-list small-font"),\n ^\nSyntaxError: invalid syntax\n' Not so fast on the move off 2.5, please. It was working fine until just yesterday, when I decided to try multiprocessing, lazy_tables and an upgraded web2py 2.9.5-stable all at the same time. Then I ran into this trouble so reverted to an older version of web2py that I thought worked, But the troubles tagged along. On Saturday, March 22, 2014 8:43:48 PM UTC+8, Niphlod wrote: > > @weheh: try to edit admin/controllers/default.py putting > > from __future__ import with_statement > > > at the top > > On Saturday, March 22, 2014 1:42:38 PM UTC+1, Niphlod wrote: >> >> I've always been the one pushing for dropping support for 2.4-2.5, and I >> got back always "no, we'll keep 2.5". >> >> Seems that without any official statement we're dropping support for 2.5, >> due to >> https://github.com/web2py/web2py/blob/master/applications/admin/controllers/default.py#L807<https://www.google.com/url?q=https%3A%2F%2Fgithub.com%2Fweb2py%2Fweb2py%2Fblob%2Fmaster%2Fapplications%2Fadmin%2Fcontrollers%2Fdefault.py%23L807&sa=D&sntz=1&usg=AFQjCNFQZnTlwJCB3M2n_lOKWOWz56pLIA> >> >> On Saturday, March 22, 2014 1:17:28 PM UTC+1, weheh wrote: >>> >>> Michele - Thanks for the suggestions. Moving to python 2.7 opens another >>> can of worms because of a module I'm using that isn't ported to 2.7. So >>> that test must wait until very last. However, I did remove .pyc all around, >>> but still no go -- same problem. >>> >>> On Saturday, March 22, 2014 5:11:42 PM UTC+8, Michele Comitini wrote: >>>> >>>> Did you try using python 2.7? >>>> Did you try removing all .pyc around? >>>> find web2py -type f -name '*.pyc' -exec rm -v {} + ; >>>> >>>> -- 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. For more options, visit https://groups.google.com/d/optout.