With USE=doc /usr/lib64/python3.6/site-packages/astropy_helpers/commands/build_sphinx.py:260: AstropyDeprecationWarning: The "build_sphinx" command is now deprecated. Use"build_docs" instead. '"build_docs" instead.', AstropyDeprecationWarning) warning: build_py: byte-compiling is disabled, skipping. Running Sphinx v1.6.3 Exception occurred: File "/var/tmp/portage/dev-python/wcsaxes-0.9-r1/work/wcsaxes-0.9-python3_6/lib.linux-x86_64-3.6/wcsaxes/patches.py", line 10, in <module> from astropy.coordinates.angles import rotation_matrix ImportError: cannot import name 'rotation_matrix' The full traceback has been saved in /var/tmp/portage/dev-python/wcsaxes-0.9-r1/temp/sphinx-err-07wjueqa.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! Sphinx Documentation subprocess failed with return code 1