trac migration

11 views
Skip to first unread message

ONeal Freeman

unread,
Jun 9, 2022, 2:39:13 PMJun 9
to Trac Users
I am installing trac (Bitnami Trac Stack 1.5.1.2) 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\bdist.win-amd64\egg\trac\web\main.py", line 657, in _send_error data, metadata) File "build\bdist.win-amd64\egg\trac\web\chrome.py", line 1406, in render_template iterable) File "build\bdist.win-amd64\egg\trac\web\chrome.py", line 1527, in generate_template_stream return b''.join(generate()) File "build\bdist.win-amd64\egg\trac\web\chrome.py", line 1525, in generate for chunk in stream: File "C:\Bitnami\trac-1.5.1-2\python\lib\site-packages\jinja2\environment.py", line 1271, in __next__ return self._next() File "C:\Bitnami\trac-1.5.1-2\python\lib\site-packages\jinja2\environment.py", line 1248, in _buffered_generator c = next(self._gen) File "C:\Bitnami\trac-1.5.1-2\python\lib\site-packages\jinja2\environment.py", 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\environment.py", 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.

RjOllos

unread,
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
Forward
0 new messages