Skip to content

Autosummary fails on NumPy with 3.4.0  #8566

@mattip

Description

@mattip

The new 3.4.0 release does not properly import in autosummary docstrings. We get lots of errors like

/home/matti/miniconda3/envs/test/lib/python3.8/site-packages/numpy/__init__.py:docstring of numpy.bool_.rst:62: \
    WARNING: autosummary: failed to import astype

To Reproduce
checkout numpy, pip install cython; pip install .; pip install -r doc_requirements.txt; cd doc; make html

<Paste your command-line here which cause the problem>

$ git clone https://github.com/numpy/numpy
$ cd numpy
$ pip install cython .; # note the "."
$ pip install -r doc_requirements.txt
$ cd doc
$ make html 

Expected behavior
3.3.1 worked fine. 3.4.0 fails with many fail to import ... and then

/home/matti/miniconda3/envs/test/lib/python3.8/site-packages/numpy/__init__.py:docstring of numpy.bool_.rst:62: \
     WARNING: autosummary: stub file not found 'numpy.all'. Check your autosummary_generate setting.

Here is the complete log

log.txt

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions