#13887 closed defect (fixed)
'Environment' object has no attribute 'get_htdocs_dir'
Reported by: | Georacer | Owned by: | Ryan J Ollos |
---|---|---|---|
Priority: | normal | Component: | LatexFormulaMacro |
Severity: | normal | Keywords: | LaTeX |
Cc: | Trac Release: |
Description
Hello!
Is this plugin still maintained? I'm trying to generate some LaTeX in both a Ticket and a Wiki page.
For example, the content of the wiki page is the template code:
[[formula(\mat{R'\\G'\\B'} = \mathbf{A} \mat{R\\G\\B} + \mathbf{x})]] {{{ #!formula #nomode A more complicated equation should be typeset in {\em displayed math\/} mode, like this: \[ z \left( 1 \ +\ \sqrt{\omega_{i+1} + \zeta -\frac{x+1}{\Theta +1} y + 1} \ \right) \ \ \ =\ \ \ 1 \] }}}
Generation for both images fail with 'Environment' object has no attribute 'get_htdocs_dir'
I have tracked the source of the error at the line 133 of the plugin .py file:
'Environment' object has no attribute 'get_htdocs_dir'
but I don't know anything about the nature of the "env" argument.
Any thoughts? Thanks in advance!
Attachments (1)
Change History (7)
Changed 4 years ago by
comment:1 follow-up: 6 Changed 4 years ago by
Are you bound to this plugin? TracMathJaxPlugin is known to work, you can install it from PyPi.
comment:2 Changed 4 years ago by
Owner: | set to Ryan J Ollos |
---|---|
Status: | new → accepted |
comment:6 Changed 4 years ago by
Replying to figaro:
Are you bound to this plugin? TracMathJaxPlugin is known to work, you can install it from PyPi.
No particular reason. I'm very new to Trac and there were a lot of LaTeX plugins. I tried to pick the one that seems the most maintained.
After your recommendation I tried installing TracMathJaxPlugin too, but couldn't make it work for me. Not sure why, I probably messed up something in the installation. But the broken links in the plugin page weren't a good sign either.
Preview output screenshot