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
The API pages in the pandas documentation that are generated by autosummary pages are no longer building correctly
The reason seems to be that in the docstring pages generated by autosummary, all occurences of .. automethod:: Series.abs are changed in .. autodata:: abs, which then fails to fetch the docstrings, resulting in empty pages.
So trying to look through the log output of sphinx 1.7.
I see the following (when reading the source of generated/pandas.Series):
[autodoc] from pandas import Series.abs
[autodoc] => <module 'pandas' from '/home/joris/miniconda3/envs/sphinx-test/lib/python3.6/site-packages/pandas/__init__.py'>
[autodoc] getattr(_, 'Series')
[autodoc] => <class 'pandas.core.series.Series'>
[autodoc] getattr(_, 'abs')
[autodoc] => <function NDFrame.abs at 0x7fa3d669e598>
[app] emitting event: 'autodoc-process-docstring'('method', 'pandas.Series.abs', <function NDFrame.abs at 0x7fa3d669e598>, {}, ['Return an object wit
It clearly mentions 'method' in that last line, but, it writes a file with autodata, resulting in an error in the next step when reading the generated (in the above step) file 'generated/pandas.Series.abs':
reading sources... [ 1%] generated/pandas.Series.abs
[app] emitting event: 'env-purge-doc'(<sphinx.environment.BuildEnvironment object at 0x7fa3c796c160>, 'generated/pandas.Series.abs')
[app] emitting event: 'source-read'('generated/pandas.Series.abs', ['pandas.Series.abs\n=================\n\n.. currentmodule:: pandas.
[autodoc] /home/joris/scipy/pandas-test-docs/source/generated/pandas.Series.abs.rst:6: input:
.. autodata:: abs
[autodoc] from pandas.Series import abs
autodoc: failed to import data 'abs' from module 'pandas.Series'; the following exception was raised:
No module named 'pandas.Series'
[app] emitting event: 'doctree-read'(<document: <section "pandas.series.abs"...>>,)
As a comparison, the equivalent bits of the log file for sphinx 1.5.6:
[autodoc] from pandas import Series.abs
[autodoc] import pandas
[autodoc] => <module 'pandas' from '/home/joris/miniconda3/envs/sphinx-test/lib/python3.6/site-packages/pandas/__init__.py'>
[autodoc] getattr(_, 'Series')
[autodoc] => <class 'pandas.core.series.Series'>
[autodoc] getattr(_, 'abs')
[autodoc] => <function NDFrame.abs at 0x7f1a4ab169d8>
[app] emitting event: 'autodoc-process-signature'('method', 'pandas.Series.abs', <function NDFrame.abs at 0x7f1a4ab169d8>, {}, '()', None)
[app] emitting event: 'autodoc-process-docstring'('method', 'pandas.Series.abs', <function NDFrame.abs at 0x7f1a4ab169d8>, {}, ['Return an object wit
[app] emitting event: 'autodoc-process-docstring'('method', 'pandas.Series.abs', <function NDFrame.abs at 0x7f1a4ab169d8>, {}, ['', 'Return an object
Problem
The API pages in the pandas documentation that are generated by
autosummary
pages are no longer building correctlyThe reason seems to be that in the docstring pages generated by autosummary, all occurences of
.. automethod:: Series.abs
are changed in.. autodata:: abs
, which then fails to fetch the docstrings, resulting in empty pages.See also #4230 (comment)
Procedure to reproduce the problem
I made a test repo with a small subset of our docs: https://github.com/jorisvandenbossche/pandas-test-docs. This should be easier to test out.
Error logs / results
So trying to look through the log output of sphinx 1.7.
I see the following (when reading the source of generated/pandas.Series):
It clearly mentions 'method' in that last line, but, it writes a file with
autodata
, resulting in an error in the next step when reading the generated (in the above step) file 'generated/pandas.Series.abs':As a comparison, the equivalent bits of the log file for sphinx 1.5.6:
The text was updated successfully, but these errors were encountered: