Opened 3 years ago

Last modified 3 years ago

#11207 new defect

TemplateNotFound: Template "tracmath_template.tex" not found

Reported by: dho@… Owned by: kisielk
Priority: normal Component: TracMathPlugin
Severity: major Keywords:
Cc: Trac Release: 0.12


How to Reproduce

While doing a GET operation on /query, Trac issued an internal error. (It randomly appears while I browsing the site.)

Request parameters:

{'order': u'priority', 'reporter': u'kevinyip', 'status': u'!closed'}

User agent: #USER_AGENT#

System Information

Trac 0.12.3
Babel 0.9.6
Docutils 0.8.1
Genshi 0.6
mod_python 3.3.1
Pygments 1.5
pysqlite 2.6.0
Python 2.7.3 (default, Jan 2 2013, 14:09:21)
[GCC 4.7.2]
pytz 2012c
setuptools 0.6
SQLite 3.7.13
Subversion 1.6.17 (r1128011)
jQuery #JQUERY#

Enabled Plugins

graphviz 0.7.5
TracMath 0.5
WikiTableMacro 0.1

Python Traceback

Traceback (most recent call last):
  File "/usr/lib/python2.7/dist-packages/trac/web/", line 522, in _dispatch_request
  File "/usr/lib/python2.7/dist-packages/trac/web/", line 198, in dispatch
    for handler in self.handlers:
  File "/usr/lib/python2.7/dist-packages/trac/", line 78, in extensions
    return filter(None, [component.compmgr[cls] for cls in extensions])
  File "/usr/lib/python2.7/dist-packages/trac/", line 213, in __getitem__
    component = cls(self)
  File "/usr/lib/python2.7/dist-packages/trac/", line 119, in maybe_init
  File "build/bdist.linux-x86_64/egg/tracmath/", line 94, in __init__
    self.template = Chrome(self.env).load_template("tracmath_template.tex", method="text")
  File "/usr/lib/python2.7/dist-packages/trac/web/", line 801, in load_template
    return self.templates.load(filename, cls=cls)
  File "/usr/lib/python2.7/dist-packages/genshi/template/", line 246, in load
    raise TemplateNotFound(filename, search_path)
TemplateNotFound: Template "tracmath_template.tex" not found

Attachments (0)

Change History (1)

comment:1 Changed 3 years ago by kisielk

It looks like you're running the egg out of the build directory, so perhaps it can't find the template? Did you install with the bdist_egg method and copy the resulting egg to your plugin directory?

Add Comment

Modify Ticket

as new The owner will remain kisielk.

E-mail address and user name can be saved in the Preferences.

Note: See TracTickets for help on using tickets.