Problems building docs with sphinx 1.5.6
See original GitHub issueI’m attempting to build the documentation for dask 1.15.1 for the Debian package, using sphinx 1.5.6, pandas 0.20.3, python 3.5.3 and numpydoc 0.7.0, and it’s currently failing to build from source.
With the error:
Exception occurred: File “/usr/lib/python3/dist-packages/numpydoc/docscrape.py”, line 343, in _pae raise ValueError(msg) ValueError: The section Notes appears twice in the docstring of None in None. The full traceback has been saved in /tmp/sphinx-err-_mt1fzrj.log, if you want .
If I disable this code in dask/utils.py:derived_from
python if len(not_supported) > 0: note = ("\n Notes\n -----\n" " Dask doesn't support the following argument(s).\n\n") args = ''.join([' * {0}\n'.format(a) for a in not_supported]) doc = doc + note + args
It’ll build, I also found changing Notes to Extra Notes, and adding extra ------ in the restructured text heading markup worked.
Issue Analytics
- State:
- Created 6 years ago
- Comments:10 (10 by maintainers)
Top GitHub Comments
The fix in #2512 that resolved the exception was pinning numpydoc to 0.6.0. At least for me, the doc build fails with numpydoc 0.7.0 and with numpydoc 0.8.0.dev.0 (commit 057ef572dd5ea547af2832e1b68d934cf953eafe)
I believe that this has been resolved. The doc building on RTD seems to work well. Regardless, this issue has gone stale. Closing.