Problem with compiling Bayesian Belief Networks in Python Tutorial

Problem

In OS X, when trying to compile the tutorial of Bayesian Belief Networks in Python (https://github.com/eBay/bayesian-belief-networks), using Sphinx (http://www.sphinx-doc.org/en/stable/contents.html) you get the following error:

Extension error:

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

Solution

Modify the file conf.py, 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?
Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: