Ticket #2450 (closed defect: worksforme)

Opened 11 months ago

Last modified 2 months ago

TracMathPlugin does not work in Trac0.11b1

Reported by: dietmarw Assigned to: rlotun
Priority: normal Component: TracMathPlugin
Severity: normal Keywords:
Cc: nicolas.dumoulin@cemagref.fr Trac Release: 0.11

Description

I just tried to run the plugin with Trac 0.11b1. It installs fine and can be activated but nothing else happens. When inserting the example code into a wikipage it is just displayed plainly as code.

  {{{
  #!latex
  $\mbox{Var}[\tau(X_p,X_d)] = \mbox{Var}[E(\tau(X_p,X_d)|X_p)] E[\mbox{Var}(\tau(X_p,X_d)|X_p)]$
  }}}

Just to make sure there are no side effects I deactivated all other plugins and the paths to dvipng and latex are also set correctly. The directory /tmp/tracmath is created but nothing is placed therein. No error message is logged in trac.log.

Any clue what else I could check?

Attachments

Change History

02/11/08 07:11:27 changed by anonymous

I had some trouble with dvipng prompting for interaction the first time it needed a new font size, stalling the plugin (using mikTeX 2.7 on Windows). A "-q" (quiet) flag for dvipng might help?

02/11/08 08:07:31 changed by anonymous

Unfortunately, the -q flag does not help. Apparently something goes wrong the first time a new font size (like \tiny) is used, and the whole dvipng process hangs.

The generated .dvi file is thereby locked, so manage_cache gets an exception. (This should be avoided by wrapping the two calls to os.unlink() in a try-except construct!)

If I kill the hung processes and delete the .dvi-file and .png-file, then it is re-generated correctly the second time (presumably because the new font size has been generated by then)...

02/25/08 02:15:37 changed by jalar@mai.liu.se

This sounds like mftopk is having trouble finding the font. The conversion is made inside libkpathsea, and dvipng has very little influence on the behaviour of this. What is the log output of dvipng in this case? There may be something wrong with your TeX installation.

05/13/08 06:31:33 changed by thesorcerer

With 0.11rc1 I have the same problem. /tmp/tracmath is created, but nothing else happens.

07/15/08 02:25:43 changed by thesorcerer

Works with 0.11 final under Windows. Make sure that the paths to dvipng.exe and latex.exe have no spaces or are surrounded by quotes.

Or set the system's PATH variable, so you have just to specify dvipng.exe and latex.exe.

More debug information to Trac's log would be helpful.

07/15/08 08:21:19 changed by dietmarw

  • status changed from new to closed.
  • resolution set to worksforme.

I can confirm that it works with 0.11 under Linux (Debian testing/Lenny). So I guess as a reporter I'm also privileged to close this ticket.

10/06/08 04:12:23 changed by NicolasDumoulin

  • status changed from closed to reopened.
  • resolution deleted.

Hi, I have a similar issue with trac 0.11.1 on a debian etch with backports.

The plugin is well loading as indicated in the log :

2008-10-06 10:04:59,896 Trac[__init__] DEBUG: Loading tracmath from /usr/lib/python2.4/site-packages/TracMath-0.1-py2.4.egg

The directory /tmp/tracmath is well created, but nothing else.

10/06/08 04:37:14 changed by anonymous

  • cc set to nicolas.dumoulin@cemagref.fr.

(in reply to: ↑ description ; follow-up: ↓ 10 ) 10/08/08 09:12:12 changed by anonymous

Hi folks,

I ran into a comparable error, when I was upgrading from trac 0.10 to 0.11. It is about the behaviour of the wiki-System. When you use a WikiProcessor you may indent the braces and you may indent the code to be process, but you may not indent the processor directive (e.g. #!latex). This is the same for all processors, internal as well as external. (html, rst, graphviz, ...).

As I look at the example given above, I can see there are two whitespaces indentation of everything. Remove the whitespaces before #!latex and give it another try.

Hope I could help a bit.

(in reply to: ↑ 9 ) 10/08/08 09:13:17 changed by WvBraun

Sorry - above came from me - forgot to log in.

10/08/08 09:28:39 changed by NicolasDumoulin

  • status changed from reopened to closed.
  • resolution set to worksforme.

Yes, you're totally right ! It works fine know :-) Thank you


Add/Change #2450 (TracMathPlugin does not work in Trac0.11b1)




Change Properties
Action