Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

Already on GitHub? Sign in to your account

format in plot_direcitive sphinx>=1.0.6 compatible patch #232

ddale opened this Issue Jun 20, 2011 · 1 comment


None yet
2 participants

ddale commented Jun 20, 2011

Original report at SourceForge, opened Wed Jan 26 01:07:52 2011

Since Sphinx version 1.0.6, sphinx-build try decoding -D and -A command-line arguments with the locale's preferred encoding.
Due to this change, documentation build using "sphinx-build -D plot_formats="[('png', 80)]"" fails because plot_formats wll be decoded and interpreted as unicode string.
Therefore python make.py --small html latex in doc will fails with "ValueError: need more than 1 value to unpack".

To evade this problem, this patch is presented.
This patch replaces checking str to checking str or unicode.

SourceForge History

  • On Wed Jan 26 01:07:53 2011, by auchida: File Added: 399819: format-in-plot_directive.patch

pelson commented Sep 2, 2012

Running sphinx-build -D plot_formats="[('png', 80)]" -b html -d build/doctrees . build/html on the mpl docs now works fine. Assuming this has been fixed at some point.

@pelson pelson closed this Sep 2, 2012

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment