Skip to content

Instantly share code, notes, and snippets.

@cdeil
Created July 17, 2014 09:47
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save cdeil/842c9b13278a264306d3 to your computer and use it in GitHub Desktop.
Save cdeil/842c9b13278a264306d3 to your computer and use it in GitHub Desktop.
$ python setup.py build_sphinx
/Users/deil/Library/Python/2.7/lib/python/site-packages/astropy-0.4rc2.dev9378-py2.7-macosx-10.9-x86_64.egg/astropy/setup_helpers.py:1041: AstropyDeprecationWarning: astropy.setup_helpers.update_package_files is deprecated. Update your setup.py to use astropy.setup_helpers.get_package_info instead.
AstropyDeprecationWarning)
running build_sphinx
creating /Users/deil/code/gammapy/docs/_build
creating /Users/deil/code/gammapy/docs/_build/doctrees
creating /Users/deil/code/gammapy/docs/_build/html
running build
running build_py
running build_scripts
Running Sphinx v1.2.2
loading pickled environment... not yet created
loading intersphinx inventory from http://pythonhosted.org/uncertainties/objects.inv...
loading intersphinx inventory from http://docs.python.org/objects.inv...
loading intersphinx inventory from http://matplotlib.sourceforge.net/objects.inv...
loading intersphinx inventory from http://photutils.readthedocs.org/en/latest/objects.inv...
loading intersphinx inventory from http://aplpy.readthedocs.org/en/latest/objects.inv...
loading intersphinx inventory from http://docs.scipy.org/doc/scipy/reference/objects.inv...
loading intersphinx inventory from http://docs.astropy.org/en/latest/objects.inv...
loading intersphinx inventory from http://gammafit.readthedocs.org/en/latest/objects.inv...
loading intersphinx inventory from http://docs.scipy.org/doc/numpy/objects.inv...
loading intersphinx inventory from http://pandas.pydata.org/pandas-docs/stable/objects.inv...
loading intersphinx inventory from http://scikit-image.org/docs/stable/objects.inv...
[autosummary] generating autosummary for: astro/index.rst, astro/population/index.rst, astro/source/index.rst, background/index.rst, catalog/index.rst, credit.rst, dataformats/cubes.rst, dataformats/events.rst, dataformats/file_formats.rst, dataformats/index.rst, ..., shower/index.rst, spectral_cube/index.rst, spectrum/index.rst, stats/index.rst, tools.rst, tutorials/flux_point.rst, tutorials/image/index.rst, tutorials/index.rst, tutorials/spectrum/index.rst, utils/index.rst
Traceback (most recent call last):
File "<stdin>", line 26, in <module>
File "/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/sphinx/application.py", line 139, in __init__
self._init_builder(buildername)
File "/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/sphinx/application.py", line 201, in _init_builder
self.emit('builder-inited')
File "/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/sphinx/application.py", line 400, in emit
results.append(callback(self, *args))
File "/Users/deil/Library/Python/2.7/lib/python/site-packages/astropy-0.4rc2.dev9378-py2.7-macosx-10.9-x86_64.egg/astropy/sphinx/ext/automodsumm.py", line 223, in process_automodsumm_generation
lines = automodsumm_to_autosummary_lines(sfn, app)
File "/Users/deil/Library/Python/2.7/lib/python/site-packages/astropy-0.4rc2.dev9378-py2.7-macosx-10.9-x86_64.egg/astropy/sphinx/ext/automodsumm.py", line 284, in automodsumm_to_autosummary_lines
filestr = automodapi_replace(fr.read(), app, True, fn, False)
File "/Users/deil/Library/Python/2.7/lib/python/site-packages/astropy-0.4rc2.dev9378-py2.7-macosx-10.9-x86_64.egg/astropy/sphinx/ext/automodapi.py", line 242, in automodapi_replace
ispkg, hascls, hasfuncs = _mod_info(modnm, toskip, onlylocals=onlylocals)
File "/Users/deil/Library/Python/2.7/lib/python/site-packages/astropy-0.4rc2.dev9378-py2.7-macosx-10.9-x86_64.egg/astropy/sphinx/ext/automodapi.py", line 328, in _mod_info
for localnm, fqnm, obj in zip(*find_mod_objs(modname, onlylocals=onlylocals)):
File "/Users/deil/Library/Python/2.7/lib/python/site-packages/astropy-0.4rc2.dev9378-py2.7-macosx-10.9-x86_64.egg/astropy/utils/misc.py", line 188, in find_mod_objs
__import__(modname)
File "/Users/deil/code/gammapy/build/lib.macosx-10.9-x86_64-2.7/gammapy/utils/pyfact.py", line 22, in <module>
from ..irf import arf_to_np, np_to_arf, np_to_rmf
ImportError: cannot import name arf_to_np
Sphinx Documentation subprocess failed with return code 1
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment