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@gmail.com> wrote:
>
> I can add that if I install jinja2 by hand, then trac installs. It
> just seems that the trac install does not manage this.
>
> Now to see if I can get my site back up in this newfangled trac.
>
> On Thu, Sep 8, 2022 at 9:02 AM Roger Oberholtzer
> <roger.oberholtzer@gmail.com> wrote:
> >
> > I checked out the latest with svn, and tried to install it. Similar error:
> >
> >
> > # svn co https://svn.edgewall.org/repos/trac/trunk trac
> > # cd trac
> > # python3 setup.py install
> >
> > Traceback (most recent call last):
> > File "/root/trac/trac/setup.py", line 32, in <module>
> > from trac.dist import get_l10n_trac_cmdclass
> > File "/root/trac/trac/trac/dist.py", line 31, in <module>
> > import jinja2
> > ModuleNotFoundError: No module named 'jinja2'
> >
> > On Wed, Sep 7, 2022 at 4:53 PM RjOllos <rjollos@gmail.com> wrote:
> > >
> > >
> > >
> > > On Wednesday, September 7, 2022 at 7:48:38 AM UTC-7 sea...@gmail.com wrote:
> > >>
> > >> Unfortunately, with Trac version 1.5, you have to download the Trac code, make some modifications, and then install it.
> > >
> > >
> > > What modifications did you make?
> > >
> > > We haven't had any issues reported. If you are experiencing problems please report them and we will work through them.
> > >
> > > --
> > > 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+unsubscribe@googlegroups.com.
> > > To view this discussion on the web visit https://groups.google.com/d/msgid/trac-users/e70696ea-baf4-4dda-beb8-55572a813696n%40googlegroups.com.
> >
> >
> >
> > --
> > Roger Oberholtzer
>
>
>
> --
> Roger Oberholtzer
--
Roger Oberholtzer
--
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+unsubscribe@googlegroups.com.
To view this discussion on the web visit
https://groups.google.com/d/msgid/trac-users/CANkOqwNycGcQ%3D6_B1cfH%3Dj%2BBegVHwuXmPW9kv4uvzVCEyuC9ZQ%40mail.gmail.com.