I have trac 1.5 (svn co) running in Python3. There was confusion my
end because the mod_python for my distro uses Python 2.7 (it seems not
to be maintained by the distro - it is an old installable). I needed
to move to mod_wsgi. That took a couple minutes to figure out.
It looks as I expected in that I have not added the various plugins we
have used. This will also be a purge in that I will only put back the
ones we see we are actually using.
The only issue I have so far is that admin/general/plugin and about
are not accessible. I get error 500 from Apache.
From the trac log:
2022-09-08 12:15:09,469 Trac[main] ERROR: [127.0.0.1] Internal Server
Error: <RequestWithSession "GET '/about'">, referrer None
Traceback (most recent call last):
File "/usr/lib/python3.10/site-packages/Trac-1.5.4.dev0-py3.10.egg/trac/web/main.py",
line 610, in dispatch_request
dispatcher.dispatch(req)
File "/usr/lib/python3.10/site-packages/Trac-1.5.4.dev0-py3.10.egg/trac/web/main.py",
line 302, in dispatch
raise e
File "/usr/lib/python3.10/site-packages/Trac-1.5.4.dev0-py3.10.egg/trac/web/main.py",
line 248, in dispatch
resp = chosen_handler.process_request(req)
File "/usr/lib/python3.10/site-packages/Trac-1.5.4.dev0-py3.10.egg/trac/about.py",
line 71, in process_request
data['plugins'] = get_plugin_info(self.env)
File "/usr/lib/python3.10/site-packages/Trac-1.5.4.dev0-py3.10.egg/trac/loader.py",
line 155, in get_plugin_info
module = sys.modules[component.__module__]
KeyError: 'ASCIIMath'
2022-09-08 12:00:32,992 Trac[main] ERROR: [10.2.10.41] Internal Server
Error: <RequestWithSession "GET '/admin/general/plugin'">, referrer
'
http://10.2.10.40/systems/admin/general/basics'
Traceback (most recent call last):
File "/usr/lib/python3.10/site-packages/Trac-1.5.4.dev0-py3.10.egg/trac/web/main.py",
line 610, in dispatch_request
dispatcher.dispatch(req)
File "/usr/lib/python3.10/site-packages/Trac-1.5.4.dev0-py3.10.egg/trac/web/main.py",
line 302, in dispatch
raise e
File "/usr/lib/python3.10/site-packages/Trac-1.5.4.dev0-py3.10.egg/trac/web/main.py",
line 248, in dispatch
resp = chosen_handler.process_request(req)
File "/usr/lib/python3.10/site-packages/Trac-1.5.4.dev0-py3.10.egg/trac/admin/web_ui.py",
line 104, in process_request
resp = provider.render_admin_panel(req, cat_id, panel_id, path_info)
File "/usr/lib/python3.10/site-packages/Trac-1.5.4.dev0-py3.10.egg/trac/admin/web_ui.py",
line 490, in render_admin_panel
return self._render_view(req)
File "/usr/lib/python3.10/site-packages/Trac-1.5.4.dev0-py3.10.egg/trac/admin/web_ui.py",
line 596, in _render_view
plugins = get_plugin_info(self.env, include_core=True)
File "/usr/lib/python3.10/site-packages/Trac-1.5.4.dev0-py3.10.egg/trac/loader.py",
line 155, in get_plugin_info
module = sys.modules[component.__module__]
KeyError: 'ASCIIMath'
It looks like the same issue for both. I see there is an ASCIIMath
plugin for Trac. But it is just the .py file. Where should this go?
On Thu, Sep 8, 2022 at 9:08 AM Roger Oberholtzer
--
Roger Oberholtzer