Skip to content
New issue

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

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

format in plot_direcitive sphinx>=1.0.6 compatible patch #232

Closed
ddale opened this issue Jun 20, 2011 · 1 comment
Closed

format in plot_direcitive sphinx>=1.0.6 compatible patch #232

ddale opened this issue Jun 20, 2011 · 1 comment

Comments

@ddale
Copy link
Contributor

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
Copy link
Member

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 as completed Sep 2, 2012
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants