Mailing List Archive

trac migration
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.

--
You received this message because you are subscribed to the Google Groups "Trac Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to trac-users+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/trac-users/021b8c41-0f81-4601-9c2b-4aa7ced14c4en%40googlegroups.com.
Re: trac migration [ In reply to ]
On Thursday, June 9, 2022 at 11:39:13 AM UTC-7 ofree...@gmail.com wrote:

> 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.
>

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.
https://trac.edgewall.org/wiki/1.5/TracUpgrade#a6.Refreshstaticresources

--
You received this message because you are subscribed to the Google Groups "Trac Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to trac-users+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/trac-users/980a532a-b62d-478e-aee3-bf907cda7d1en%40googlegroups.com.