Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

DM-20659: Fixes for the lsst.afw.table doc build #477

Merged
merged 2 commits into from Jul 19, 2019

Conversation

jonathansick
Copy link
Member

This PR solves a documentation build error on Jenkins:

  File "/j/ws/sqre/infra/documenteer/doc_template/home/.local/lib/python3.7/site-packages/sphinx/environment/__init__.py", line 785, in get_doctree
    with open(doctree_filename, 'rb') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/j/ws/sqre/infra/documenteer/doc_template/_build/doctree/py-api/lsst.afw.table.multiMatch.CoordKey.doctree'
The full traceback has been saved in /tmp/sphinx-err-zna3ruxo.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!
2019-07-17 12:21:44,310 ERROR documenteer.stackdocs.build: Sphinx errored: code 1
script returned exit code 1

The basic issue was that there were automodapi statements for individual sub packages that were already being pulled in by the automodapi directive for lsst.afw.table itself. Deleting those redundant automodapi directives solved the build issue.

@jonathansick jonathansick requested a review from czwa July 19, 2019 00:45
.. automodapi:: lsst.afw.table.baseColumnView
.. automodapi:: lsst.afw.table.schema
:no-main-docstr:

.. automodapi:: lsst.afw.table.schemaMapper
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Oops, it didn't occur to me that #476 might affect the docs. lsst.afw.table.schemaMapper no longer exists; afw.table is one monolithic package now (.io is still a subpackage, and .testUtils is still a submodule, though).

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@kfindeisen Thanks for the tip on that

Since lsst.afw.table's __init__.py file already imports objects from
subpackages into the lsst.afw.table namespace, there shouldn't be extra
automodapi directives for those subpackages.

Only io, schemaMapper and testUtils seem to be subpackages that aren't
imported into lsst.afw.table itself.

Also sets the standard no-main-docstr flag.
@jonathansick jonathansick merged commit 01e196b into master Jul 19, 2019
@jonathansick jonathansick deleted the tickets/DM-20659 branch July 19, 2019 20:16
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants