version 1.21.1 infinite loop issue

63 views
Skip to first unread message

jimka...@yahoo.com

unread,
Dec 22, 2020, 1:14:26 PM12/22/20
to web2py-users
Just trying to update to version 1.21.1 from 2.20.4. the app runs fine under 2.20.4.
Under 1.21.1, the welcome app comes up fine.  The admin/default/site page comes up fine. But when I start the app (http://127.0.0.1:8000/MFMCurrAssetMgr/default/user/login?_next=/MFMCurrAssetMgr/default/index) I hit an infinite loop in yatl/template.py?,  culminating in a RecursionError.

Given the traceback is entirely within gluon code, with no obvious reference to my code other than the URI above, I'm hoping someone can give me pointers to where to look next. I've looked in the default controller and tried tracing  but it never actually seems to get into executing my default/index.

Environment is MacOS 10.15.7. Python is 3.7.8. I'm doing the upgrade with web2py source. 

Here's the start/end of the traceback

Thanks in advance
Jim

Traceback (most recent call last):
File "/Applications/web2py_dev/gluon/main.py", line 439, in wsgibase
serve_controller(request, response, session)
File "/Applications/web2py_dev/gluon/main.py", line 179, in serve_controller
page = run_view_in(response._view_environment)
File "/Applications/web2py_dev/gluon/compileapp.py", line 729, in run_view_in
context=environment)
File "/Applications/web2py_dev/gluon/packages/yatl/yatl/template.py", line 820, in parse_template
return str(TemplateParser(text, context=context, path=path, lexers=lexers, delimiters=delimiters, reader=reader))
File "/Applications/web2py_dev/gluon/packages/yatl/yatl/template.py", line 347, in __str__
return self.to_string()
File "/Applications/web2py_dev/gluon/packages/yatl/yatl/template.py", line 343, in to_string
return self.reindent(str(self.content))
File "/Applications/web2py_dev/gluon/packages/yatl/yatl/template.py", line 193, in __str__
return ''.join(output_aux(node, self.blocks) for node in self.nodes)
File "/Applications/web2py_dev/gluon/packages/yatl/yatl/template.py", line 193, in <genexpr>
return ''.join(output_aux(node, self.blocks) for node in self.nodes)
File "/Applications/web2py_dev/gluon/packages/yatl/yatl/template.py", line 102, in output_aux
if isinstance(node, BlockNode) \
File "/Applications/web2py_dev/gluon/packages/yatl/yatl/template.py", line 174, in output
return ''.join(output_aux(node, blocks) for node in self.nodes)
File "/Applications/web2py_dev/gluon/packages/yatl/yatl/template.py", line 174, in <genexpr>

...

File "/Applications/web2py_dev/gluon/packages/yatl/yatl/template.py", line 174, in <genexpr>
return ''.join(output_aux(node, blocks) for node in self.nodes)
File "/Applications/web2py_dev/gluon/packages/yatl/yatl/template.py", line 102, in output_aux
if isinstance(node, BlockNode) \
RecursionError: maximum recursion depth exceeded while calling a Python object

jimka...@yahoo.com

unread,
Dec 22, 2020, 1:36:16 PM12/22/20
to web2py-users
Sorry. The web2py version should obviously have been 2.21.1 in my message

jimka...@yahoo.com

unread,
Jan 9, 2021, 10:12:35 PM1/9/21
to web2py-users
No input :-( 
Guess we'll need to stick with 2.20.4. Don't really have a lot of time to put into the 2.21 migration, at least for now. :-( :-(

valq...@gmail.com

unread,
Jan 10, 2021, 1:42:10 PM1/10/21
to web2py-users

When does it happen?  After you have logged in? Do you get the login page?

воскресенье, 10 января 2021 г. в 06:12:35 UTC+3, jimka...@yahoo.com:
Reply all
Reply to author
Forward
0 new messages