You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
While running sphinx (using verbose flags) and using the sphinx.ext.imgconverter to include an svg image in a Latex document, the following output was observed:
Invoking ['convert', '-version'] ...
WARNING: convert command 'convert' cannot be run, check the image_converter setting
Adding a print to the extension's is_available method revealed that it was a problem that had nothing to do with the extension or Sphinx:
[Errno 12] Cannot allocate memory
Obviously the extension can do nothing about that situation, but it was impossible to tell that from the information provided.
To Reproduce
Run Sphinx with the imgconverter extension with any OS problem which might cause it to not work properly.
Expected behavior
Ideally the extension should only catch exceptions relevant to it. Because that might be very hard to determine, practically it should provide information on what happened so that the user can decide how to resolve the situation.
Activity
tk0miya commentedon Feb 27, 2021
Thank you for the report. Indeed, exception info will be helpful. Okay, I'll show it in the next version.
Fix sphinx-doc#8938: imgconverter: Show the error of the command avai…
Merge pull request #8939 from tk0miya/8938_imgconverter_show_OSError
Master.patch (#1)