On Thu, 14 Feb 2008 16:38:02 +0100 "Johan Ponten" johan.ponten@ericsson.com wrote:
I have NAV 3.2.2 installed on SLES 10.
- Logging in to the WEB interface and many other operations result in
the following type of error output in Firefox. This particular one when selecting "Edit database" in the Tools.
I have already recompiled a lot of python files, but for the Template.py on the last row I cannot find a source template to compile.
Am I on the right track at all?
You don't need to "recompile" any Python files. Python files are compiled as they are loaded by the Python interpreter. The error message you pasted is concerned with Cheetah templates:
File "/usr/local/nav/apache/webroot/editdb/editdb.py", line 351, in index
template = editdbTemplate(searchList=[nameSpace])
File "/usr/local/nav/lib/python/nav/web/templates/editdbTemplate.py", line 65, in __init__
MainTemplate.__init__(self, *args, **KWs)
File "/usr/local/nav/lib/python/nav/web/templates/MainTemplate.py", line 65, in __init__
for k,v in KWs.items():
File "/usr/local/lib/python2.4/site-packages/Cheetah/Template.py", line 1169, in __init__
raise AssertionError(
AssertionError: This template was compiled with Cheetah version 1.0. Templates compiled before version 2.0rc6 must be recompiled.
Cheetah is a Python text templating library, which NAV employs for its HTML web templates. NAV's template source code is located in *.tmpl files. Cheetah compiles these tmpl files into Python code, i.e. *.py-files, when NAV is built from source.
So the question is: Are you installing NAV from source, or from some prebuilt package? The Cheetah version installed on your SLES server appears to be 2.0rc6, while the templates installed with NAV were compiled using an older version of Cheetah (1.0). These templates aren't compatible with your newer version of Cheetah, and the simplest way to fix this is to rebuild NAV on a system with Cheetah 2.0rc6 installed.