Repository navigation
Closed
Description
python ./make.py --small htmlfiles with
# Sphinx version: 1.3.4
# Python version: 2.7.11 (CPython)
# Docutils version: 0.12 release
# Jinja2 version: 2.8
# Last messages:
# reading sources... [ 4%] api/index
# reading sources... [ 4%] api/index_backend_api
# reading sources... [ 4%] api/legend_api
# reading sources... [ 4%] api/lines_api
# reading sources... [ 4%] api/markers_api
# reading sources... [ 4%] api/mathtext_api
# reading sources... [ 4%] api/matplotlib_configuration_api
# reading sources... [ 5%] api/mlab_api
# reading sources... [ 5%] api/offsetbox_api
# reading sources... [ 5%] api/patches_api
# Loaded extensions:
# sphinx.ext.graphviz (1.3.4) from /usr/lib64/python2.7/site-packages/sphinx/ext/graphviz.pyc
# sphinxext.github (unknown version) from /var/tmp/portage/dev-python/matplotlib-1.5.1/work/matplotlib-1.5.1-python2_7/doc/sphinxext/github.py
# sphinx.ext.autodoc (1.3.4) from /usr/lib64/python2.7/site-packages/sphinx/ext/autodoc.pyc
# sphinx.ext.doctest (1.3.4) from /usr/lib64/python2.7/site-packages/sphinx/ext/doctest.pyc
# matplotlib.sphinxext.mathmpl (unknown version) from /var/tmp/portage/dev-python/matplotlib-1.5.1/work/matplotlib-1.5.1-python2_7/build/build/lib/matplotlib/sphinxext/mathmpl.py
# matplotlib.sphinxext.plot_directive (unknown version) from /var/tmp/portage/dev-python/matplotlib-1.5.1/work/matplotlib-1.5.1-python2_7/build/build/lib/matplotlib/sphinxext/plot_directive.py
# alabaster (0.7.7) from /usr/lib64/python2.7/site-packages/alabaster/__init__.pyc
# sphinx.ext.inheritance_diagram (1.3.4) from /usr/lib64/python2.7/site-packages/sphinx/ext/inheritance_diagram.pyc
# matplotlib.sphinxext.only_directives (unknown version) from /var/tmp/portage/dev-python/matplotlib-1.5.1/work/matplotlib-1.5.1-python2_7/build/build/lib/matplotlib/sphinxext/only_directives.py
# numpydoc (unknown version) from /usr/lib64/python2.7/site-packages/numpydoc/__init__.pyc
# sphinxext.gen_rst (unknown version) from /var/tmp/portage/dev-python/matplotlib-1.5.1/work/matplotlib-1.5.1-python2_7/doc/sphinxext/gen_rst.py
# IPython.sphinxext.ipython_console_highlighting (unknown version) from /usr/lib64/python2.7/site-packages/IPython/sphinxext/ipython_console_highlighting.pyc
# sphinxext.gen_gallery (unknown version) from /var/tmp/portage/dev-python/matplotlib-1.5.1/work/matplotlib-1.5.1-python2_7/doc/sphinxext/gen_gallery.py
# sphinx.ext.autosummary (1.3.4) from /usr/lib64/python2.7/site-packages/sphinx/ext/autosummary/__init__.pyc
# IPython.sphinxext.ipython_directive (unknown version) from /usr/lib64/python2.7/site-packages/IPython/sphinxext/ipython_directive.pyc
# sphinxext.math_symbol_table (unknown version) from /var/tmp/portage/dev-python/matplotlib-1.5.1/work/matplotlib-1.5.1-python2_7/doc/sphinxext/math_symbol_table.py
Traceback (most recent call last):
File "/usr/lib64/python2.7/site-packages/sphinx/cmdline.py", line 244, in main
app.build(opts.force_all, filenames)
File "/usr/lib64/python2.7/site-packages/sphinx/application.py", line 266, in build
self.builder.build_update()
File "/usr/lib64/python2.7/site-packages/sphinx/builders/__init__.py", line 251, in build_update
'out of date' % len(to_build))
File "/usr/lib64/python2.7/site-packages/sphinx/builders/__init__.py", line 265, in build
self.doctreedir, self.app))
File "/usr/lib64/python2.7/site-packages/sphinx/environment.py", line 618, in update
self._read_serial(docnames, app)
File "/usr/lib64/python2.7/site-packages/sphinx/environment.py", line 638, in _read_serial
self.read_doc(docname, app)
File "/usr/lib64/python2.7/site-packages/sphinx/environment.py", line 791, in read_doc
pub.publish()
File "/usr/lib64/python2.7/site-packages/docutils/core.py", line 218, in publish
self.apply_transforms()
File "/usr/lib64/python2.7/site-packages/docutils/core.py", line 199, in apply_transforms
self.document.transformer.apply_transforms()
File "/usr/lib64/python2.7/site-packages/docutils/transforms/__init__.py", line 171, in apply_transforms
transform.apply(**kwargs)
File "/usr/lib64/python2.7/site-packages/sphinx/transforms.py", line 182, in apply
apply_source_workaround(n)
File "/usr/lib64/python2.7/site-packages/sphinx/util/nodes.py", line 53, in apply_source_workaround
'\s*:\s*%s' % classifier.astext(), '', node.rawsource)
File "/usr/lib64/python2.7/re.py", line 155, in sub
return _compile(pattern, flags).sub(repl, string, count)
File "/usr/lib64/python2.7/re.py", line 251, in _compile
raise error, v # invalid expression
error: unbalanced parenthesis
Activity
jlec commentedon Jan 17, 2016
This is mpl-1.4.3
jenshnielsen commentedon Jan 17, 2016
Yes Im seeing this too. It builds correctly with Sphinx 1.3.3
jenshnielsen commentedon Jan 17, 2016
The problem is somewhere in the patches api autodoc. Disabling this and it builds correctly.
jenshnielsen commentedon Jan 17, 2016
Note to self. The issue is somewhere in the ConnectionStyle docs. The error from sphinx is not very help full
tacaswell commentedon Jan 17, 2016
Do we think sphinx broke or was fixed between 1.3.3 and 1.3.4?
dev-python/matplotlib: Don't use sphinx-1.3.4 for doc building
jenshnielsen commentedon Jan 17, 2016
I don't know yet. We will see when I have found the exact spot. I am in the middle of manually bisecting it. I definitly think the error message could be better and will probably report that at the least.
jenshnielsen commentedon Jan 17, 2016
It seems to fail on matching the parenthesis in
*angle* : angle of the connecting line (if None, parallel to A and B)on https://github.com/matplotlib/matplotlib/blob/master/lib/matplotlib/patches.py#L3021 due to the new line. Removing the newline fixes the compilation (but violates pep8 )tacaswell commentedon Jan 17, 2016
Should probably just re-do that docstring as proper numpydoc style...
matthew-brett commentedon Jan 18, 2016
Related : sphinx-doc/sphinx#2247 ?
jenshnielsen commentedon Jan 18, 2016
That looks quite likely
jenshnielsen commentedon Jan 24, 2016
For reference sphinx-doc/sphinx#2247 has been resolved by Sphinx 1.3.5 and our docs build with a single warning. Solved by #5872
jlec commentedon Jan 25, 2016
Work here, when backported to 1.5.1.