More info on ASCIIMath from the trac log:

2022-09-08 14:45:08,892 Trac[loader] ERROR: Failed to load plugin from
/vol1/trac/systems/plugins/ASCIIMath.py:
Traceback (most recent call last):
 File 
"/usr/lib/python3.10/site-packages/Trac-1.5.4.dev0-py3.10.egg/trac/loader.py",
line 105, in _load_py_files
   imp.load_source(plugin_name, plugin_file)
 File "/usr/lib64/python3.10/imp.py", line 172, in load_source
   module = _load(spec)
 File "<frozen importlib._bootstrap>", line 719, in _load
 File "<frozen importlib._bootstrap>", line 688, in _load_unlocked
 File "<frozen importlib._bootstrap_external>", line 883, in exec_module
 File "<frozen importlib._bootstrap>", line 241, in _call_with_frames_removed
 File "/vol1/trac/systems/plugins/ASCIIMath.py", line 342, in <module>
   Symbol(input="alpha",  el=El("mi", u"\u03B1"))
 File "/vol1/trac/systems/plugins/ASCIIMath.py", line 80, in El
   if isinstance(text, basestring):
NameError: name 'basestring' is not defined



On Thu, Sep 8, 2022 at 1:02 PM Roger Oberholtzer
<roger.oberholt...@gmail.com> wrote:
>
> I see that I have ASCIIMath.py in a plugins directory for my site. So
> that must be where Trac 1.2 looked for these things. In that there is
> a __pycache__ directory. I see that it contains a newly compiled .pyc
> file. The name is a bit different from the .py file:
>
> ASCIIMath.cpython-310.pyc
>
> I would imagine it is compiled because Trac accessed it. So I then
> have no idea what the error might be.
>
> On Thu, Sep 8, 2022 at 12:54 PM Roger Oberholtzer
> <roger.oberholt...@gmail.com> wrote:
> >
> > 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.oberholt...@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.oberholt...@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 <rjol...@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+unsubscr...@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
>
>
>
> --
> 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+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/trac-users/CANkOqwOLzwf2A13gQ7%2ByPgUs7hargvXb3%3DS1WseUbuiK6etJoA%40mail.gmail.com.

Reply via email to