QuantEcon / sphinxcontrib-jupyter

A Sphinx Extension for Generating Jupyter Notebooks
BSD 3-Clause "New" or "Revised" License
77 stars 23 forks source link

Jupinx Crashing #123

Closed arnavs closed 6 years ago

arnavs commented 6 years ago

Pasting the error below. This is with the new Jupinx/Conda. Should I just go back to an old one?

arnavsood@dhcp-206-12-198-70:~/research/lecture-source-jl$ make jupyter
Running Sphinx v1.8.1
making output directory...
building [mo]: targets for 0 po files that are out of date
building [jupyter]: targets for 71 source files that are out of date
updating environment: 71 added, 0 changed, 0 removed
/Users/arnavsood/anaconda3/lib/python3.5/site-packages/sphinx/application.py:402: RemovedInSphinx20Warning: app.info() is now deprecated. Use sphinx.util.logging instead.
  RemovedInSphinx20Warning)
checking for /Users/arnavsood/Research/lecture-source-jl/rst_files/_static/quant-econ.bib in bibtex cache... not found
parsing bibtex file /Users/arnavsood/Research/lecture-source-jl/rst_files/_static/quant-econ.bib... parsed 149 entries

/Users/arnavsood/Research/lecture-source-jl/rst_files/lu_tricks.rst:879: WARNING: Include file '/Users/arnavsood/Research/lecture-source-jl/rst_files/_static/code/lu_tricks/control_and_filter.jl' not found or reading it failed
looking for now-outdated files... none found
pickling environment... done
checking consistency... /Users/arnavsood/Research/lecture-source-jl/rst_files/hist_dep_policies.rst: WARNING: document isn't included in any toctree
/Users/arnavsood/Research/lecture-source-jl/rst_files/zreferences.rst: WARNING: Citation [Shiryaev1995] is not referenced.
done
preparing documents... done
writing output... [  1%] additive_functionals                                                                           
Exception occurred:
  File "/Users/arnavsood/anaconda3/lib/python3.5/site-packages/sphinxcontrib_jupyter-0.2b0.dev20181003-py3.5.egg/sphinxcontrib/jupyter/writers/translate_all.py", line 159, in visit_math
    math_text = node.attributes["latex"].strip()
KeyError: 'latex'
The full traceback has been saved in /var/folders/18/_hd8dw5s0d3bnckv2kqyxf0r0000gn/T/sphinx-err-fguxan33.log, if you want to report the issue to the developers.
Please also report this if it was a user error, so that a better error message can be provided next time.
A bug report can be filed in the tracker at <https://github.com/sphinx-doc/sphinx/issues>. Thanks!
make: *** [jupyter] Error 2
arnavs commented 6 years ago

This issue went away when I downgraded Sphinx to 1.7.5

mmcky commented 6 years ago

thanks @arnavs. I will add this to the README but Jupinx is currently not compatible with 1.8+ so last supported version is 1.7.8