Modify

Opened 4 years ago

Closed 4 years ago

Last modified 4 years ago

#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)

01.png (35.6 KB) - added by Georacer 4 years ago.
Preview output screenshot

Download all attachments as: .zip

Change History (7)

Changed 4 years ago by Georacer

Attachment: 01.png added

Preview output screenshot

comment:1 Changed 4 years ago by figaro

Are you bound to this plugin? TracMathJaxPlugin is known to work, you can install it from PyPi.

comment:2 Changed 4 years ago by Ryan J Ollos

Owner: set to Ryan J Ollos
Status: newaccepted

comment:3 Changed 4 years ago by Ryan J Ollos

Resolution: fixed
Status: acceptedclosed

In 17862:

Make compatible with Trac 1.2

Fixes #13887.

comment:4 Changed 4 years ago by Ryan J Ollos

In 17863:

Revert r17862 on 0.11 directory

Refs #13887.

comment:5 Changed 4 years ago by Georacer

Yes, now it's working! Thanks for the quick fix!

comment:6 in reply to:  1 Changed 4 years ago by Georacer

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.

Modify Ticket

Change Properties
Set your email in Preferences
Action
as closed The owner will remain Ryan J Ollos.
The resolution will be deleted. Next status will be 'reopened'.

Add Comment


E-mail address and name can be saved in the Preferences.

 
Note: See TracTickets for help on using tickets.