It seems to be caused by line 119 in web_ui.py: - return 'logviewer.html', data, None + return 'logviewer.html', data
Jun Omae <[email protected]> (大前 潤) On Tue, Dec 24, 2024 at 23:54 'Joost Kraaijeveld' via Trac Users < [email protected]> 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 [email protected]. > 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 [email protected]. To view this discussion visit https://groups.google.com/d/msgid/trac-users/CAEVLMagPzSmGR4apd8QWJcn1uu9ZajxT%2BeG-wAv7f30U54zVug%40mail.gmail.com.
