#4268 closed defect (invalid)
viewing timeline fails
Reported by: | florian | Owned by: | Jonas Borgström |
---|---|---|---|
Priority: | high | Milestone: | |
Component: | timeline | Version: | devel |
Severity: | critical | Keywords: | |
Cc: | Branch: | ||
Release Notes: | |||
API Changes: | |||
Internal Changes: |
Description
How to Reproduce
While doing a GET operation on /timeline
, Trac issued an internal error.
System Information
Python | 2.3.4 (#1, Sep 26 2006, 17:23:01) [GCC 3.4.6 20060404 (Red Hat 3.4.6-3)] |
Subversion | 1.4.0
|
SQLite | 3.3.8
|
pysqlite | 2.3.2
|
trac | r4353 |
Python Traceback
Traceback (most recent call last): File "/root/packages/trac/trac/web/main.py", line 395, in dispatch_request dispatcher.dispatch(req) File "/root/packages/trac/trac/web/main.py", line 227, in dispatch content_type) File "/root/packages/trac/trac/web/chrome.py", line 541, in render_template return stream.render(method, doctype=doctype) File "build/bdist.linux-i686/egg/genshi/core.py", line 141, in render File "build/bdist.linux-i686/egg/genshi/output.py", line 200, in __call__ File "build/bdist.linux-i686/egg/genshi/output.py", line 488, in __call__ File "build/bdist.linux-i686/egg/genshi/output.py", line 436, in __call__ File "build/bdist.linux-i686/egg/genshi/core.py", line 202, in _ensure File "build/bdist.linux-i686/egg/genshi/core.py", line 202, in _ensure File "/root/packages/trac/trac/web/chrome.py", line 561, in _strip_accesskeys for kind, data, pos in stream: File "build/bdist.linux-i686/egg/genshi/core.py", line 202, in _ensure File "/root/packages/trac/trac/web/chrome.py", line 550, in _generate for kind, data, pos in stream: File "build/bdist.linux-i686/egg/genshi/filters.py", line 147, in __call__ File "build/bdist.linux-i686/egg/genshi/template.py", line 1148, in _match File "build/bdist.linux-i686/egg/genshi/filters.py", line 147, in __call__ File "build/bdist.linux-i686/egg/genshi/template.py", line 1123, in _match File "build/bdist.linux-i686/egg/genshi/template.py", line 1112, in _strip File "build/bdist.linux-i686/egg/genshi/template.py", line 902, in _eval File "build/bdist.linux-i686/egg/genshi/template.py", line 960, in _flatten File "build/bdist.linux-i686/egg/genshi/template.py", line 954, in _flatten File "build/bdist.linux-i686/egg/genshi/template.py", line 456, in __call__ TemplateRuntimeError: unpack non-sequence (/usr/share/trac/templates/timeline.html, line -2)
Attachments (0)
Change History (8)
comment:1 by , 18 years ago
comment:2 by , 18 years ago
comment:3 by , 18 years ago
comment:4 by , 18 years ago
I tried removing/commenting the templates_dir location in the projects trac.ini, that didn't work. I also tried genshi:r462, but that didn't help either.
comment:5 by , 18 years ago
comment:6 by , 18 years ago
Resolution: | → invalid |
---|---|
Status: | new → closed |
Right, so after I ln -s /mycheckedouttrac /usr/share/trac it works.
So it was indeed going against the wrong templates. The thing is, setup.py develop doesn't take care of that, easy_install ./trac doesn't even write the stuff to /usr/share, only setup.py install writes the templates to /usr/share/trac.
(on a sidenote, setuptools has ways and means to get resources out of packages regardless if it's zipped/unzipped eggs or development mode, that might be a good idea to package templates actually)
The resolution of this one: link in the right shared documents.
comment:7 by , 18 years ago
Great! Glad you sort it out.
As side-note too, Trac setup.py doesn't work well with setuptools right now, but this is actively worked on in the source:sandbox/setuptools branch.
comment:8 by , 18 years ago
Milestone: | 0.11 |
---|
Which Genshi version are you using?
Is the problem reproducible with Genshi trunk?