Modify

Opened 4 years ago

Closed 3 years ago

#13886 closed defect (fixed)

Getting Trac detected an internal error: TemplateNotFound: roadmap_jinja.html

Reported by: anonymous Owned by: Cinc-th
Priority: normal Component: SimpleMultiProjectPlugin
Severity: normal Keywords:
Cc: Trac Release:

Description (last modified by Jun Omae)

using trunk in docker container running ubuntu.

Its weird it looks like the file is there if I unzip the installed egg under templates/roadmap_jinja.html

Looks like perhaps the searchpath is not right?

File "build/bdist.linux-x86_64/egg/trac/web/main.py", line 639 , in dispatch_request
File "build/bdist.linux-x86_64/egg/trac/web/main.py", line 217 , in dispatch
File "build/bdist.linux-x86_64/egg/trac/web/main.py", line 461 , in _pre_process_request
File "build/bdist.linux-x86_64/egg/trac/config.py", line 925 , in __get__
File "build/bdist.linux-x86_64/egg/trac/core.py", line 95 , in extensions
File "build/bdist.linux-x86_64/egg/trac/core.py", line 238 , in __getitem__
File "build/bdist.linux-x86_64/egg/trac/core.py", line 157 , in __call__
File "build/bdist.linux-x86_64/egg/simplemultiproject/roadmap.py", line 51 , in __init__
File "build/bdist.linux-x86_64/egg/trac/web/chrome.py", line 1372 , in load_template
File "build/bdist.linux-x86_64/egg/trac/web/chrome.py", line 1398 , in _load_jinja_template
File "/usr/local/lib/python2.7/dist-packages/jinja2/environment.py", line 883 , in get_template
File "/usr/local/lib/python2.7/dist-packages/jinja2/environment.py", line 857 , in _load_template
File "/usr/local/lib/python2.7/dist-packages/jinja2/loaders.py", line 115 , in load
File "/usr/local/lib/python2.7/dist-packages/jinja2/loaders.py", line 197 , in get_source
environment	<jinja2.environment.Environment object at 0x7ff9e295f710>
f	None
filename	'/var/tmp/python-eggs/Trac-1.4.2-py2.7.egg-tmp/trac/wiki/templates/road ...
pieces	['roadmap_jinja.html']
searchpath	'/var/tmp/python-eggs/Trac-1.4.2-py2.7.egg-tmp/trac/wiki/templates'
self	<jinja2.loaders.FileSystemLoader object at 0x7ff9e295f110>
template	'roadmap_jinja.html'

Attachments (0)

Change History (5)

comment:1 Changed 4 years ago by Jun Omae

Description: modified (diff)

comment:2 Changed 4 years ago by Cinc-th

In 17858:

SimpleMultiProjectPlugin: make sure templates directory is defined for roadmap component.

Refs #13886

comment:3 Changed 4 years ago by Cinc-th

[17858] should fix your problem. I can't see the bug on my system to really verify the fix.

comment:4 Changed 4 years ago by Cinc-th

In 17859:

SimpleMultiProjectPlugin: make sure templates and htdocs directories are defined for every component using a template or custom javascript file. This way the component works on it's own and doesn't depend on other components to provide the location.

Refs #13886

comment:5 Changed 3 years ago by Cinc-th

Resolution: fixed
Status: newclosed

Assuming the problem is fixed by the recent changes.

Modify Ticket

Change Properties
Set your email in Preferences
Action
as closed The owner will remain Cinc-th.
The resolution will be deleted. Next status will be 'reopened'.

Add Comment


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

 
Note: See TracTickets for help on using tickets.