Fredrik Johansson schrieb:
> On Sat, Feb 7, 2009 at 7:15 PM, Georg Brandl <[email protected]> wrote:
>>
>> mpmath's documentation uses the "pngmath" extension which indeed depends
>> on latex to render equations for HTML output.
>>
>> Georg
> 
> Right. "OSError: [Errno 12] Cannot allocate memory" is not
> particularly helpful though. Is there a fix to make Sphinx fall back
> to rendering just text for formulas if latex isn't available?

If you look at pngmath.py, the OSError from the first call to latex has
been properly caught and the warning displayed.  However, in some later
call that strange error is raised.  A bit of debugging shows that somehow
subprocess leaves file descriptors open when the child execution fails.
I'll forward that to the Python tracker.

Meanwhile, it's easy to just skip trying to invoke latex or dvipng if
it failed once, so I do that now.

Georg

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"sphinx-dev" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/sphinx-dev?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to