Ticket #8557 (closed defect: fixed)

Opened 2 years ago

Last modified 2 years ago

Page is nor rendering: AttributeError: 'TracMathPlugin' object has no attribute 'show_err'

Reported by: Manuel Assigned to: kisielk
Priority: normal Component: TracMathPlugin
Severity: normal Keywords:
Cc: manuel@mathebs.com Trac Release: 0.12

Description

I'm trying to render a easy Latex formula, but the page is not rendering. With 0.11 it rendered fine, but since I updated my Trac to 0.12 it doesn't render.

The code:

\begin{equation*}
\#S = \lceil log_2(\#I) - log_2(\#G) \rceil
\end{equation*}

Here my Phyton traceback: File "/opt/bitnami/projects/.egg-cache/Trac-0.12.1-py2.5.egg-tmp/trac/wiki/templates/wiki_view.html", line 58, in <Expression u'wiki_to_html(context, text)'> File "/opt/bitnami/trac/lib/python2.5/site-packages/Trac-0.12.1-py2.5.egg/trac/wiki/formatter.py", line 1497, in format_to_html File "/opt/bitnami/trac/lib/python2.5/site-packages/Trac-0.12.1-py2.5.egg/trac/wiki/formatter.py", line 1452, in generate File "/opt/bitnami/trac/lib/python2.5/site-packages/Trac-0.12.1-py2.5.egg/trac/wiki/formatter.py", line 1201, in format File "/opt/bitnami/trac/lib/python2.5/site-packages/Trac-0.12.1-py2.5.egg/trac/wiki/formatter.py", line 1091, in handle_code_block File "/opt/bitnami/trac/lib/python2.5/site-packages/Trac-0.12.1-py2.5.egg/trac/wiki/formatter.py", line 304, in process File "/opt/bitnami/trac/lib/python2.5/site-packages/Trac-0.12.1-py2.5.egg/trac/wiki/formatter.py", line 291, in _macro_processor File "build/bdist.linux-i686/egg/tracmath/tracmath.py", line 89, in expand_macro File "build/bdist.linux-i686/egg/tracmath/tracmath.py", line 157, in _internal_render

Attachments

Change History

(follow-up: ↓ 2 ) 03/05/11 20:39:23 changed by kisielk

  • status changed from new to assigned.

Can you try the version at https://bitbucket.org/kisielk/tracmathplugin/get/3400be420ed8.tar.gz and let me know if it fixes the bug for you?

(in reply to: ↑ 1 ) 03/06/11 02:30:39 changed by akinfold@gmail.com

Replying to kisielk:

Can you try the version at https://bitbucket.org/kisielk/tracmathplugin/get/3400be420ed8.tar.gz and let me know if it fixes the bug for you?

It fixes the bug for my Trac 0.12. Thanks!

03/06/11 03:43:30 changed by kisielk

Good to hear. I'll issue a new patch release soon.

03/07/11 08:01:00 changed by Manuel

Hey kisielk, thank you for your effort. I tried to install your version but when I'm trying to display a page with some latex I get an error:

OSError: [Errno 2] No such file or directory

I don't know what could be wrong. I uninstalled the release version of TracMath? 0.3 with easy_install and removed the .egg file. After that I installed your version, restarted the server and activated the module. At the end I tried to display a normal page with the latex code.

Here is the Trackback: File "/opt/bitnami/projects/.egg-cache/Trac-0.12.1-py2.5.egg-tmp/trac/wiki/templates/wiki_view.html", line 58, in <Expression u'wiki_to_html(context, text)'>

File "/opt/bitnami/trac/lib/python2.5/site-packages/Trac-0.12.1-py2.5.egg/trac/wiki/formatter.py", line 1497, in format_to_html

File "/opt/bitnami/trac/lib/python2.5/site-packages/Trac-0.12.1-py2.5.egg/trac/wiki/formatter.py", line 1452, in generate

File "/opt/bitnami/trac/lib/python2.5/site-packages/Trac-0.12.1-py2.5.egg/trac/wiki/formatter.py", line 1201, in format

File "/opt/bitnami/trac/lib/python2.5/site-packages/Trac-0.12.1-py2.5.egg/trac/wiki/formatter.py", line 1091, in handle_code_block

File "/opt/bitnami/trac/lib/python2.5/site-packages/Trac-0.12.1-py2.5.egg/trac/wiki/formatter.py", line 304, in process

File "/opt/bitnami/trac/lib/python2.5/site-packages/Trac-0.12.1-py2.5.egg/trac/wiki/formatter.py", line 291, in _macro_processor

File "build/bdist.linux-i686/egg/tracmath/tracmath.py", line 89, in expand_macro

File "build/bdist.linux-i686/egg/tracmath/tracmath.py", line 153, in _internal_render

File "/opt/bitnami/python/lib/python2.5/subprocess.py", line 594, in init

File "/opt/bitnami/python/lib/python2.5/subprocess.py", line 1097, in _execute_child

03/09/11 05:31:37 changed by kisielk

Manuel,

That means your

[tracmath]
latex_cmd =

option is not configured correctly, or that the latex program can't be found.

09/11/11 01:59:21 changed by kisielk

  • status changed from assigned to closed.
  • resolution set to fixed.

This is fixed in the 0.4 release.


Add/Change #8557 (Page is nor rendering: AttributeError: 'TracMathPlugin' object has no attribute 'show_err')




Change Properties
Action