trac migration

Skip to first unread message

ONeal Freeman

Jun 9, 2022, 2:39:13 PMJun 9
to Trac Users
I am installing trac (Bitnami Trac Stack on to a new server using my old installation as a template of sorts. I have struggled most of day trying to get the site to render. I get the Bitnami screen and it shows the name of my trac instance but when I click the link to access the new site I get this:

Traceback (most recent call last): File "build\\egg\trac\web\", line 657, in _send_error data, metadata) File "build\\egg\trac\web\", line 1406, in render_template iterable) File "build\\egg\trac\web\", line 1527, in generate_template_stream return b''.join(generate()) File "build\\egg\trac\web\", line 1525, in generate for chunk in stream: File "C:\Bitnami\trac-1.5.1-2\python\lib\site-packages\jinja2\", line 1271, in __next__ return self._next() File "C:\Bitnami\trac-1.5.1-2\python\lib\site-packages\jinja2\", line 1248, in _buffered_generator c = next(self._gen) File "C:\Bitnami\trac-1.5.1-2\python\lib\site-packages\jinja2\", line 1045, in generate yield self.environment.handle_exception(exc_info, True) File "C:\Bitnami\trac-1.5.1-2\python\lib\site-packages\jinja2\", line 780, in handle_exception reraise(exc_type, exc_value, tb) File "C:\Windows\system32\config\systemprofile\AppData\Roaming\Python-Eggs\Trac-1.5.1-py2.7.egg-tmp\trac\templates\error.html", line 95, in top-level template code <input type="submit" name="create" value="${_('Create')}" /> File "c:\web\trac\it\templates\layout.html", line 8, in top-level template code <title>${select('title/text()')}</title> UndefinedError: 'select' is undefined 

I cannot determine how to fix. Any guidance is appreciated.


Jun 9, 2022, 4:11:43 PMJun 9
to Trac Users
It looks like you have Genshi templates in "c:\web\trac\it". Did you move that directory from the old installation?

Trac uses Jinja2 now, so you may need to recreate your static assets directory.
Reply all
Reply to author
0 new messages