Problem with compiling Bayesian Belief Networks in Python Tutorial


In OS X, when trying to compile the tutorial of Bayesian Belief Networks in Python (, using Sphinx ( you get the following error:

Extension error:

sphinx.ext.mathjax: other math package is already loaded
make: *** [html] Error 1


Modify the file, by removing ‘sphinx.ext.pngmath’ from the extensions  as follows:

#extensions = [‘sphinx.ext.pngmath’, ‘sphinx.ext.mathjax’, ‘sphinx.ext.viewcode’]
extensions = [‘sphinx.ext.mathjax’, ‘sphinx.ext.viewcode’]

Other questions that could be solved by this solution

  • How can I compile a Python documentation using Sphinx in Mac OS X?
  • How to solve an Extension error in compiling using Sphinx?