LSSTDESC / CLMM

A Python library for performing galaxy cluster mass reconstruction from weak lensing observables
BSD 3-Clause "New" or "Revised" License
24 stars 20 forks source link

Fix Sphinx after #94 #104

Closed aimalz closed 5 years ago

aimalz commented 5 years ago

It looks like PR #94 broke Sphinx even though it passed Travis CI tests before merging into master. @matthewkirby @msimet Would you (or anyone else of course) mind looking into what happened?

matthewkirby commented 5 years ago

Hmm it actually looks like travis is failing on master due to a sphinx error. I will take a look

matthewkirby commented 5 years ago

The error I see on Travis is

0.75s$ make -C docs/ html
make: Entering directory `/home/travis/build/LSSTDESC/CLMM/docs'
Running Sphinx v2.1.2
making output directory... done
Exception occurred:
  File "/home/travis/build/LSSTDESC/CLMM/docs/conf.py", line 181, in run_apidoc
    from sphinx.apidoc import main
ModuleNotFoundError: No module named 'sphinx.apidoc'
The full traceback has been saved in /tmp/sphinx-err-0bbpm2pj.log, if you want to report the issue to the developers.

I pulled the new changes to master and ran make -C docs/ html.

09:35 AM  matthewkirby /Users/matthewkirby/research/CLMM/CLMM master
$ make -C docs/ html
Running Sphinx v1.6.6
loading pickled environment... done
Creating file /Users/matthewkirby/research/CLMM/CLMM/docs/api/clmm.galaxycluster.rst.
Creating file /Users/matthewkirby/research/CLMM/CLMM/docs/api/clmm.mock_data.rst.
Creating file /Users/matthewkirby/research/CLMM/CLMM/docs/api/clmm.rst.
Creating file /Users/matthewkirby/research/CLMM/CLMM/docs/api/clmm.core.clmmbase.rst.
Creating file /Users/matthewkirby/research/CLMM/CLMM/docs/api/clmm.core.datatypes.rst.
Creating file /Users/matthewkirby/research/CLMM/CLMM/docs/api/clmm.core.manager.rst.
Creating file /Users/matthewkirby/research/CLMM/CLMM/docs/api/clmm.core.weak_lensing_functions.rst.
Creating file /Users/matthewkirby/research/CLMM/CLMM/docs/api/clmm.core.rst.
Creating file /Users/matthewkirby/research/CLMM/CLMM/docs/api/clmm.inferrer.collections.rst.
Creating file /Users/matthewkirby/research/CLMM/CLMM/docs/api/clmm.inferrer.importance_sampling.rst.
Creating file /Users/matthewkirby/research/CLMM/CLMM/docs/api/clmm.inferrer.parameter_sampler.rst.
Creating file /Users/matthewkirby/research/CLMM/CLMM/docs/api/clmm.inferrer.rst.
Creating file /Users/matthewkirby/research/CLMM/CLMM/docs/api/clmm.models.CLMM_densityModels_beforeConvertFromPerH.rst.
Creating file /Users/matthewkirby/research/CLMM/CLMM/docs/api/clmm.models.model.rst.
Creating file /Users/matthewkirby/research/CLMM/CLMM/docs/api/clmm.models.parameter.rst.
Creating file /Users/matthewkirby/research/CLMM/CLMM/docs/api/clmm.models.rst.
Creating file /Users/matthewkirby/research/CLMM/CLMM/docs/api/clmm.summarizer.shear_azimuthal_averager.rst.
Creating file /Users/matthewkirby/research/CLMM/CLMM/docs/api/clmm.summarizer.rst.
building [mo]: targets for 0 po files that are out of date
building [html]: targets for 2 source files that are out of date
updating environment: 0 added, 10 changed, 0 removed
reading sources... [100%] index                                                                                                                                                                             
looking for now-outdated files... none found
pickling environment... done
checking consistency... done
preparing documents... done
writing output... [100%] index                                                                                                                                                                              
generating indices... genindex py-modindex
writing additional pages... search
copying static files... done
copying extra files... done
dumping search index in English (code: en) ... done
dumping object inventory... done
build succeeded.

Build finished. The HTML pages are in _build/html.
matthewkirby commented 5 years ago

I also looked at the changes in PR #94 and the online docs for master and the changes are there. It just looks like it is a travis problem.