[Python-modules-team] Bug#655635: python-numpy: FTBFS with Sphinx 1.1.2: IndexError: list index out of range

Jakub Wilk jwilk at debian.org
Thu Jan 12 21:38:56 UTC 2012


Source: python-numpy
Version: 1:1.5.1-3
Severity: important
User: python-modules-team at lists.alioth.debian.org
Usertags: sphinx1.1.2

When rebuilt against python-sphinx 1.1.2+dfsg-1 (available in 
experimental), Numpy failed to build from source:
| LANG=C sphinx-build -b html -d build/doctrees   source build/html
| Running Sphinx v1.1.2
| /usr/lib/pymodules/python2.7/sphinx/application.py:247: FutureWarning: A plot_directive module is also available under matplotlib.sphinxext; expect this numpydoc.plot_directive module to be deprecated after relevant features have been integrated there.
|   mod = __import__(extension, None, None, ['setup'])
| 1.5 1.5.1
| loading pickled environment... not yet created
| loading intersphinx inventory from ../../debian/python.org_objects.inv...
| [autosummary] generating autosummary for: reference/arrays.classes.rst, reference/arrays.dtypes.rst, reference/arrays.indexing.rst, reference/arrays.interface.rst, reference/arrays.ndarray.rst, reference/arrays.rst, reference/arrays.scalars.rst, reference/c-api.array.rst, reference/c-api.config.rst, reference/c-api.coremath.rst, ..., reference/routines.other.rst, reference/routines.poly.rst, reference/routines.random.rst, reference/routines.rst, reference/routines.set.rst, reference/routines.sort.rst, reference/routines.statistics.rst, reference/routines.testing.rst, reference/routines.window.rst, reference/ufuncs.rst
| WARNING: [autosummary] failed to import 'numpy.__array_priority__': no module named numpy.__array_priority__
| WARNING: [autosummary] failed to import 'numpy.core.defchararray.len': no module named numpy.core.defchararray.len
| WARNING: [autosummary] failed to import 'numpy.generic.__squeeze__': no module named numpy.generic.__squeeze__
| [autosummary] generating autosummary for: /build/python-numpy-17bPkq/python-numpy-1.5.1/doc/source/reference/generated/numpy.DataSource.rst, /build/python-numpy-17bPkq/python-numpy-1.5.1/doc/source/reference/generated/numpy.MachAr.rst, /build/python-numpy-17bPkq/python-numpy-1.5.1/doc/source/reference/generated/numpy.RankWarning.rst, /build/python-numpy-17bPkq/python-numpy-1.5.1/doc/source/reference/generated/numpy.absolute.rst, /build/python-numpy-17bPkq/python-numpy-1.5.1/doc/source/reference/generated/numpy.add.rst, /build/python-numpy-17bPkq/python-numpy-1.5.1/doc/source/reference/generated/numpy.all.rst, /build/python-numpy-17bPkq/python-numpy-1.5.1/doc/source/reference/generated/numpy.allclose.rst, /build/python-numpy-17bPkq/python-numpy-1.5.1/doc/source/reference/generated/numpy.alterdot.rst, /build/python-numpy-17bPkq/python-numpy-1.5.1/doc/source/reference/generated/numpy.amax.rst, /build/python-numpy-17bPkq/python-numpy-1.5.1/doc/source/reference/generated/numpy.amin.rst, ..., /build/python-numpy-17bPkq/python-numpy-1.5.1/doc/source/reference/generated/numpy.unwrap.rst, /build/python-numpy-17bPkq/python-numpy-1.5.1/doc/source/reference/generated/numpy.vander.rst, /build/python-numpy-17bPkq/python-numpy-1.5.1/doc/source/reference/generated/numpy.var.rst, /build/python-numpy-17bPkq/python-numpy-1.5.1/doc/source/reference/generated/numpy.vdot.rst, /build/python-numpy-17bPkq/python-numpy-1.5.1/doc/source/reference/generated/numpy.vectorize.rst, /build/python-numpy-17bPkq/python-numpy-1.5.1/doc/source/reference/generated/numpy.vsplit.rst, /build/python-numpy-17bPkq/python-numpy-1.5.1/doc/source/reference/generated/numpy.vstack.rst, /build/python-numpy-17bPkq/python-numpy-1.5.1/doc/source/reference/generated/numpy.where.rst, /build/python-numpy-17bPkq/python-numpy-1.5.1/doc/source/reference/generated/numpy.zeros.rst, /build/python-numpy-17bPkq/python-numpy-1.5.1/doc/source/reference/generated/numpy.zeros_like.rst
| [autosummary] generating autosummary for: /build/python-numpy-17bPkq/python-numpy-1.5.1/doc/source/reference/generated/numpy.DataSource.__init__.rst, /build/python-numpy-17bPkq/python-numpy-1.5.1/doc/source/reference/generated/numpy.DataSource.abspath.rst, /build/python-numpy-17bPkq/python-numpy-1.5.1/doc/source/reference/generated/numpy.DataSource.exists.rst, /build/python-numpy-17bPkq/python-numpy-1.5.1/doc/source/reference/generated/numpy.DataSource.open.rst, /build/python-numpy-17bPkq/python-numpy-1.5.1/doc/source/reference/generated/numpy.MachAr.__init__.rst, /build/python-numpy-17bPkq/python-numpy-1.5.1/doc/source/reference/generated/numpy.broadcast.index.rst, /build/python-numpy-17bPkq/python-numpy-1.5.1/doc/source/reference/generated/numpy.broadcast.iters.rst, /build/python-numpy-17bPkq/python-numpy-1.5.1/doc/source/reference/generated/numpy.broadcast.nd.rst, /build/python-numpy-17bPkq/python-numpy-1.5.1/doc/source/reference/generated/numpy.broadcast.next.rst, /build/python-numpy-17bPkq/python-numpy-1.5.1/doc/source/reference/generated/numpy.broadcast.numiter.rst, ..., /build/python-numpy-17bPkq/python-numpy-1.5.1/doc/source/reference/generated/numpy.record.tostring.rst, /build/python-numpy-17bPkq/python-numpy-1.5.1/doc/source/reference/generated/numpy.record.trace.rst, /build/python-numpy-17bPkq/python-numpy-1.5.1/doc/source/reference/generated/numpy.record.transpose.rst, /build/python-numpy-17bPkq/python-numpy-1.5.1/doc/source/reference/generated/numpy.record.var.rst, /build/python-numpy-17bPkq/python-numpy-1.5.1/doc/source/reference/generated/numpy.record.view.rst, /build/python-numpy-17bPkq/python-numpy-1.5.1/doc/source/reference/generated/numpy.testing.Tester.__init__.rst, /build/python-numpy-17bPkq/python-numpy-1.5.1/doc/source/reference/generated/numpy.testing.Tester.bench.rst, /build/python-numpy-17bPkq/python-numpy-1.5.1/doc/source/reference/generated/numpy.testing.Tester.prepare_test_args.rst, /build/python-numpy-17bPkq/python-numpy-1.5.1/doc/source/reference/generated/numpy.testing.Tester.test.rst, /build/python-numpy-17bPkq/python-numpy-1.5.1/doc/source/reference/generated/numpy.vectorize.__init__.rst
| building [html]: targets for 82 source files that are out of date
| updating environment: 1896 added, 0 changed, 0 removed
| reading sources... [  0%] _templates/autosummary/class
| reading sources... [  0%] about
| reading sources... [  0%] bugs
| reading sources... [  0%] contents
| reading sources... [  0%] glossary
|
| Exception occurred:
|   File "/usr/lib/pymodules/python2.7/docutils/parsers/rst/states.py", line 321, in nested_list_parse
|     node=node, match_titles=match_titles)
|   File "/usr/lib/pymodules/python2.7/docutils/parsers/rst/states.py", line 195, in run
|     results = StateMachineWS.run(self, input_lines, input_offset)
|   File "/usr/lib/pymodules/python2.7/docutils/statemachine.py", line 237, in run
|     context, state, transitions)
|   File "/usr/lib/pymodules/python2.7/docutils/statemachine.py", line 458, in check_line
|     return method(match, context, next_state)
|   File "/usr/lib/pymodules/python2.7/docutils/parsers/rst/states.py", line 2589, in explicit_markup
|     nodelist, blank_finish = self.explicit_construct(match)
|   File "/usr/lib/pymodules/python2.7/docutils/parsers/rst/states.py", line 2295, in explicit_construct
|     return method(self, expmatch)
|   File "/usr/lib/pymodules/python2.7/docutils/parsers/rst/states.py", line 2036, in directive
|     directive_class, match, type_name, option_presets)
|   File "/usr/lib/pymodules/python2.7/docutils/parsers/rst/states.py", line 2087, in run_directive
|     result = directive_instance.run()
|   File "/usr/lib/pymodules/python2.7/sphinx/domains/__init__.py", line 190, in run
|     return BaseDirective.run(self)
|   File "/usr/lib/pymodules/python2.7/sphinx/domains/std.py", line 318, in run
|     self.state.nested_parse(definition, definition.items[0][1], defnode)
| IndexError: list index out of range
| The full traceback has been saved in /tmp/sphinx-err-IebjX1.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.
| Either send bugs to the mailing list at <http://groups.google.com/group/sphinx-dev/>,
| or report them in the tracker at <http://bitbucket.org/birkenfeld/sphinx/issues/>. Thanks!
| make[1]: *** [html] Error 1
| make[1]: Leaving directory `/build/python-numpy-17bPkq/python-numpy-1.5.1/doc'
| make: *** [build-indep] Error 2
| dpkg-buildpackage: error: debian/rules build gave error exit status 2

(I'm not actually sure it's Numpy's fault. Please feel free to reassign 
to Sphinx if you believe it's not.)

-- 
Jakub Wilk
-------------- next part --------------
# Sphinx version: 1.1.2
# Python version: 2.7.2+
# Docutils version: 0.8.1 release
# Jinja2 version: 2.6
Traceback (most recent call last):
  File "/usr/lib/pymodules/python2.7/sphinx/cmdline.py", line 189, in main
    app.build(force_all, filenames)
  File "/usr/lib/pymodules/python2.7/sphinx/application.py", line 204, in build
    self.builder.build_update()
  File "/usr/lib/pymodules/python2.7/sphinx/builders/__init__.py", line 196, in build_update
    'out of date' % len(to_build))
  File "/usr/lib/pymodules/python2.7/sphinx/builders/__init__.py", line 216, in build
    purple, length):
  File "/usr/lib/pymodules/python2.7/sphinx/builders/__init__.py", line 120, in status_iterator
    for item in iterable:
  File "/usr/lib/pymodules/python2.7/sphinx/environment.py", line 613, in update_generator
    self.read_doc(docname, app=app)
  File "/usr/lib/pymodules/python2.7/sphinx/environment.py", line 761, in read_doc
    pub.publish()
  File "/usr/lib/pymodules/python2.7/docutils/core.py", line 211, in publish
    self.settings)
  File "/usr/lib/pymodules/python2.7/docutils/readers/__init__.py", line 69, in read
    self.parse()
  File "/usr/lib/pymodules/python2.7/docutils/readers/__init__.py", line 75, in parse
    self.parser.parse(self.input, document)
  File "/usr/lib/pymodules/python2.7/docutils/parsers/rst/__init__.py", line 157, in parse
    self.statemachine.run(inputlines, document, inliner=self.inliner)
  File "/usr/lib/pymodules/python2.7/docutils/parsers/rst/states.py", line 170, in run
    input_source=document['source'])
  File "/usr/lib/pymodules/python2.7/docutils/statemachine.py", line 237, in run
    context, state, transitions)
  File "/usr/lib/pymodules/python2.7/docutils/statemachine.py", line 458, in check_line
    return method(match, context, next_state)
  File "/usr/lib/pymodules/python2.7/docutils/parsers/rst/states.py", line 2943, in text
    self.section(title.lstrip(), source, style, lineno + 1, messages)
  File "/usr/lib/pymodules/python2.7/docutils/parsers/rst/states.py", line 329, in section
    self.new_subsection(title, lineno, messages)
  File "/usr/lib/pymodules/python2.7/docutils/parsers/rst/states.py", line 398, in new_subsection
    node=section_node, match_titles=1)
  File "/usr/lib/pymodules/python2.7/docutils/parsers/rst/states.py", line 284, in nested_parse
    node=node, match_titles=match_titles)
  File "/usr/lib/pymodules/python2.7/docutils/parsers/rst/states.py", line 195, in run
    results = StateMachineWS.run(self, input_lines, input_offset)
  File "/usr/lib/pymodules/python2.7/docutils/statemachine.py", line 237, in run
    context, state, transitions)
  File "/usr/lib/pymodules/python2.7/docutils/statemachine.py", line 458, in check_line
    return method(match, context, next_state)
  File "/usr/lib/pymodules/python2.7/docutils/parsers/rst/states.py", line 2285, in explicit_markup
    self.explicit_list(blank_finish)
  File "/usr/lib/pymodules/python2.7/docutils/parsers/rst/states.py", line 2316, in explicit_list
    match_titles=self.state_machine.match_titles)
  File "/usr/lib/pymodules/python2.7/docutils/parsers/rst/states.py", line 321, in nested_list_parse
    node=node, match_titles=match_titles)
  File "/usr/lib/pymodules/python2.7/docutils/parsers/rst/states.py", line 195, in run
    results = StateMachineWS.run(self, input_lines, input_offset)
  File "/usr/lib/pymodules/python2.7/docutils/statemachine.py", line 237, in run
    context, state, transitions)
  File "/usr/lib/pymodules/python2.7/docutils/statemachine.py", line 458, in check_line
    return method(match, context, next_state)
  File "/usr/lib/pymodules/python2.7/docutils/parsers/rst/states.py", line 2589, in explicit_markup
    nodelist, blank_finish = self.explicit_construct(match)
  File "/usr/lib/pymodules/python2.7/docutils/parsers/rst/states.py", line 2295, in explicit_construct
    return method(self, expmatch)
  File "/usr/lib/pymodules/python2.7/docutils/parsers/rst/states.py", line 2036, in directive
    directive_class, match, type_name, option_presets)
  File "/usr/lib/pymodules/python2.7/docutils/parsers/rst/states.py", line 2087, in run_directive
    result = directive_instance.run()
  File "/usr/lib/pymodules/python2.7/sphinx/domains/__init__.py", line 190, in run
    return BaseDirective.run(self)
  File "/usr/lib/pymodules/python2.7/sphinx/domains/std.py", line 318, in run
    self.state.nested_parse(definition, definition.items[0][1], defnode)
IndexError: list index out of range


More information about the Python-modules-team mailing list