You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Recently, I tried to do a simple experiment of using sphinx-build to build PEPs with its gettext generated .po files.
However, I found that pep_html_translator.py will throw an exception error (even if I haven't translated the .po files yet):
Exception occurred:
File "/home/hwhsu1231/Repo/peps/pep_sphinx_extensions/pep_processor/html/pep_html_translator.py", line 36, in should_be_compact_paragraph
if any((key != "classes", not set(value) <= {"first", "last"})):
TypeError: 'bool' object is not iterable
The full traceback has been saved in /tmp/sphinx-err-o5nv3zch.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.
A bug report can be filed in the tracker at <https://github.com/sphinx-doc/sphinx/issues>. Thanks!
And it won't throw the above exception error if I don't use the gettext .po files to build it.
How to Reproduce
After downloading the demo.tar.gz file, run the following commands in order:
tar -xf demo.tar.gz
git clone https://github.com/python/peps.git
cd peps
git checkout ec21ce3471999e52645e7e43a59ec44c11443d54
mkdir -p peps/locale/
cp -r ../zh_TW/ ./peps/locale/
make venv
source .venv/bin/activate
LANG=en_US.UTF-8 sphinx-build -b html -D language=zh_TW -D locale_dirs=locale peps build
LANG=en_US.UTF-8 sphinx-build -b html peps build
The PEPs have a fairly complex set of extensions to Sphinx, including patching some internals. We only publish PEPs in English and sadly don't have the time to support translations (the key point being that PEPs are change proposals, translations for Python's actual documentation are of course supported).
Problem Description
Hello, PEPs Maintainance Team.
Recently, I tried to do a simple experiment of using
sphinx-build
to build PEPs with its gettext generated.po
files.However, I found that
pep_html_translator.py
will throw an exception error (even if I haven't translated the.po
files yet):And it won't throw the above exception error if I don't use the gettext
.po
files to build it.How to Reproduce
After downloading the demo.tar.gz file, run the following commands in order:
See the full log below.
Version and Platform
Full log
Click to expand the full log
sphinx-err-o5nv3zch.log
The text was updated successfully, but these errors were encountered: