Could not find engine name for tgext.admin.templates.bootstrap_form_layout

42 views
Skip to first unread message

Neil Ablang

unread,
May 6, 2014, 3:40:52 AM5/6/14
to turbo...@googlegroups.com

Hello,


I am having trouble with the built-in admin facilities for turbogears 2.3.2

I followed the following steps in setting up

1. virtualenv --no-site-packages zigbee

2.cd zigbee

3.source bin/activate

4.pip install tg.devtools

5.gearbox quickstart zigbee

6. cd zigbee/

7. python setup.py develop

8.  gearbox setup-app
9. gearbox serve


I have the following error when trying to edit a user once logged in as manager, and using the admin tool.

Below is the error:


BR

Neil Ablang


ValueError

ValueError: Could not find engine name for tgext.admin.templates.bootstrap_form_layout

Traceback (most recent call last)

  • File "<string>", line 8, in <Expression u'w.child.display()'>

  • File "/home/neil/turbogears/zigbee/lib/python2.7/site-packages/tw2.core-2.2.1.1-py2.7.egg/tw2/core/widgets.py", line 456, in display

    return self.generate_output(displays_on)
  • File "/home/neil/turbogears/zigbee/lib/python2.7/site-packages/tw2.core-2.2.1.1-py2.7.egg/tw2/core/widgets.py", line 496, in generate_output

    mw,
  • File "/home/neil/turbogears/zigbee/lib/python2.7/site-packages/tw2.core-2.2.1.1-py2.7.egg/tw2/core/templating.py", line 189, in render

    engine_name = get_engine_name(template_name, mw)
  • File "/home/neil/turbogears/zigbee/lib/python2.7/site-packages/tw2.core-2.2.1.1-py2.7.egg/tw2/core/util.py", line 122, in __call__

    tmp = self.f(*args, **kwargs)
  • File "/home/neil/turbogears/zigbee/lib/python2.7/site-packages/tw2.core-2.2.1.1-py2.7.egg/tw2/core/templating.py", line 72, in get_engine_name

    raise ValueError("Could not find engine name for %s" % template_name)
ValueError: Could not find engine name for tgext.admin.templates.bootstrap_form_layout
The debugger caught an exception in your WSGI application. You can now look at the traceback which led to the error.

To switch between the interactive traceback and the plaintext one, you can click on the "Traceback" headline. From the text traceback you can also create a paste of it. For code execution mouse-over the frame you want to debug and click on the console icon on the right side.

You can execute arbitrary Python code in the stack frames and there are some extra helpers available for introspection:

  • dump() shows all variables in the frame
  • dump(obj) dumps all that's known about the object
  • ctx the context of the failed request

Alessandro Molina

unread,
May 7, 2014, 2:51:50 AM5/7/14
to TurboGears .
Which engines is your project using? Check in app_cfg.py that engines and default_engine are one of mako, jinja or genshi. Those are the only one supported by the admin.
Also check that you have the latest version of tgext.crud and tgext.admin, try to update them to be sure you have the last one.


--
You received this message because you are subscribed to the Google Groups "TurboGears" group.
To unsubscribe from this group and stop receiving emails from it, send an email to turbogears+...@googlegroups.com.
To post to this group, send email to turbo...@googlegroups.com.
Visit this group at http://groups.google.com/group/turbogears.
For more options, visit https://groups.google.com/d/optout.

Neil Ablang

unread,
May 7, 2014, 3:10:25 AM5/7/14
to turbo...@googlegroups.com
Hi Alessandro,

Its using genshi as default renderer

Best Regards

Neil


--
You received this message because you are subscribed to a topic in the Google Groups "TurboGears" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/turbogears/OyFvacH4XFE/unsubscribe.
To unsubscribe from this group and all its topics, send an email to turbogears+...@googlegroups.com.

Alessandro Molina

unread,
May 7, 2014, 3:34:37 AM5/7/14
to TurboGears

Did you also check that tgext.admin and tgext.crud are updated to the last version?  There was a release with missing template files on pypi due to errors during packaging. It got removed but It might be that you installed that one

Neil Ablang

unread,
May 7, 2014, 3:59:56 AM5/7/14
to turbo...@googlegroups.com
Hi Alessandro,

Where to download the newest version for files  tgext.admin and tgext.crud? I m using pip /easy_install to fetch my files for now

BR,

Neil

Alessandro Molina

unread,
May 7, 2014, 4:53:58 AM5/7/14
to TurboGears

Yes it's right to download it from pypi. Just check you have the latest version

Alessandro Molina

unread,
May 13, 2014, 4:50:29 PM5/13/14
to TurboGears
Pointing out that tw2 seems to have issues loading template from egg installed as zip files, so make sure you have tgext.admin installed as a directory egg or using pip, otherwise ToscaWidgets might have issues finding the template.
Reply all
Reply to author
Forward
0 new messages