Ah, I found https://trac-hacks.org/ticket/13816. The plugin doesn't work with Trac 1.4 and 1.6 because porting to Jinja2 templates is incomplete.
Jun Omae <jun6...@gmail.com> (大前 潤) On Wed, Dec 25, 2024 at 3:39 Jun Omae <jun6...@gmail.com> wrote: > It seems to be caused by line 119 in web_ui.py: > > - return 'logviewer.html', data, None > + return 'logviewer.html', data > > Jun Omae <jun6...@gmail.com> (大前 潤) > > > On Tue, Dec 24, 2024 at 23:54 'Joost Kraaijeveld' via Trac Users < > trac-users@googlegroups.com> wrote: > >> On Tue, 2024-12-24 at 23:38 +0900, Jun Omae wrote: >> > Hi, >> > >> > Try to copy *.egg file in the `dist` directory to the plugins >> > directory >> > after running `setup.py bdist_egg`, instead of *.egg-info directory. >> >> Now I have the menu item. Clicking on it results in an error: >> >> Oops... >> Trac detected an internal error: >> AttributeError: 'NoneType' object has no attribute 'setdefault' >> >> Python traceback >> Most recent call last: >> >> File "/usr/lib/python3/dist-packages/trac/web/main.py", line 609, in >> dispatch_request >> dispatcher.dispatch(req) >> File "/usr/lib/python3/dist-packages/trac/web/main.py", line 301, in >> dispatch >> raise e >> File "/usr/lib/python3/dist-packages/trac/web/main.py", line 263, in >> dispatch >> metadata.setdefault('iterable', chrome.use_chunked_encoding) >> >> >> FWIW: during the build process I got 2 warnings that may be relevant? >> 1. /usr/lib/python3/dist-packages/setuptools/command/build_py.py:212: >> _Warning: Package 'logviewer.htdocs.css' is absent from the `packages` >> configuration. >> 2. /usr/lib/python3/dist-packages/setuptools/command/build_py.py:212: >> _Warning: Package 'logviewer.templates' is absent from the `packages` >> configuration. >> >> >> -- >> Groeten, >> >> Joost Kraaijeveld >> >> -- >> 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+unsubscr...@googlegroups.com. >> To view this discussion visit >> https://groups.google.com/d/msgid/trac-users/78e919cd29dbb68ee1185951c7ec5197e61a9ef7.camel%40Askesis.nl >> . >> > -- 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+unsubscr...@googlegroups.com. To view this discussion visit https://groups.google.com/d/msgid/trac-users/CAEVLMajzJeYQ0%2B-6FOiwsf8CF7wRvoyrh73ty4LMvJ0cBkC-ZQ%40mail.gmail.com.