-
Bug
-
Resolution: Fixed
-
Normal
-
None
-
None
-
None
In picard-docs updating the .pot files with "python setup.py build pot" is currently broken and gives an error:
preparing documents... erledigt writing output... [100%] workflows/workflows writing message catalogs... [ 0%] sphinx Exception occurred: File "/home/phw/devel/musicbrainz/picard-docs/.venv/lib/python3.10/site-packages/sphinx/builders/gettext.py", line 84, in escape s = s.replace('\\', r'\\') AttributeError: 'NoneType' object has no attribute 'replace' The full traceback has been saved in /tmp/sphinx-err-r48508zs.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! Traceback (most recent call last): File "/home/phw/devel/musicbrainz/picard-docs/setup.py", line 1406, in <module> main() File "/home/phw/devel/musicbrainz/picard-docs/setup.py", line 1310, in main build_pot() File "/home/phw/devel/musicbrainz/picard-docs/setup.py", line 1154, in build_pot exit_code = subprocess.run(command, shell=True, check=True, capture_output=False, timeout=SPHINX_.BUILD_TIMEOUT).returncode File "/usr/lib/python3.10/subprocess.py", line 524, in run raise CalledProcessError(retcode, process.args, subprocess.CalledProcessError: Command 'sphinx-build -b gettext . _locale/gettext -c .' returned non-zero exit status 2.
I bisected it and it happens since commit https://github.com/metabrainz/picard-docs/commit/590476956c84c642a795a644196b345901bd6e70
Not quite sure yet which of the changes cause the issue. It seems to be some problem with extracting strings.