Title: Unable to generate POT for Python documentation · Issue #104284 · python/cpython · GitHub
Open Graph Title: Unable to generate POT for Python documentation · Issue #104284 · python/cpython
X Title: Unable to generate POT for Python documentation · Issue #104284 · python/cpython
Description: Bug report I coordinate Brazilian Portuguese translation of the Python documentation. As part of the translation update process, I run sphinx-build's gettext builder to generate POT (translation files template) and update translations. S...
Open Graph Description: Bug report I coordinate Brazilian Portuguese translation of the Python documentation. As part of the translation update process, I run sphinx-build's gettext builder to generate POT (translation fi...
X Description: Bug report I coordinate Brazilian Portuguese translation of the Python documentation. As part of the translation update process, I run sphinx-build's gettext builder to generate POT (translatio...
Opengraph URL: https://github.com/python/cpython/issues/104284
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Unable to generate POT for Python documentation","articleBody":"\u003c!--\r\n If you're new to Python and you're not sure whether what you're experiencing is a bug, the CPython issue tracker is not\r\n the right place to seek help. Consider the following options instead:\r\n\r\n - reading the Python tutorial: https://docs.python.org/3/tutorial/\r\n - posting in the \"Users\" category on discuss.python.org: https://discuss.python.org/c/users/7\r\n - emailing the Python-list mailing list: https://mail.python.org/mailman/listinfo/python-list\r\n - searching our issue tracker (https://github.com/python/cpython/issues) to see if\r\n your problem has already been reported\r\n--\u003e\r\n\r\n# Bug report\r\n\r\nI coordinate Brazilian Portuguese translation of the Python documentation. As part of the translation update process, I run sphinx-build's `gettext` builder to generate POT (translation files template) and update translations.\r\n\r\nSince 3 days ago I'm unable to successfully generate POT files because the `gettext` builder fails for me with the following output:\r\n\r\n```\r\n ...\r\nreading sources... [ 14%] distutils/apiref \r\nException occurred:\r\n File \"/home/rffontenelle/cpython/Doc/venv/lib/python3.11/site-packages/sphinx/domains/python.py\", line 1043, in run\r\n indextext = '%s; %s' % (pairindextypes['module'], modname)\r\n ~~~~~~~~~~~~~~^^^^^^^^^^\r\nKeyError: 'module'\r\nThe full traceback has been saved in /tmp/sphinx-err-ds0bs43h.log, if you want to report the issue to the developers.\r\nPlease also report this if it was a user error, so that a better error message can be provided next time.\r\nA bug report can be filed in the tracker at \u003chttps://github.com/sphinx-doc/sphinx/issues\u003e. Thanks!\r\nmake: *** [Makefile:53: build] Error 2\r\n```\r\n\r\nThe log file containing the full traceback: [sphinx-err-ds0bs43h.log](https://github.com/python/cpython/files/11417013/sphinx-err-ds0bs43h.log)\r\n\r\n\r\nThis might be related to #104000.\r\n\r\nSteps to reproduce:\r\n- `cd cpython/Doc`\r\n- `git switch 3.11` # current target of translation efforts\r\n- `make venv`\r\n- `make ALLSPHINXOPTS='-b gettext -d build/doctrees . locales/pot' build`\r\n\r\n# Your environment\r\n\r\n\u003c!-- Include as many relevant details as possible about the environment you experienced the bug in --\u003e\r\n\r\n- CPython versions tested on: 3.11 and 3.10\r\n- Operating system and architecture: Arch Linux x86_64 and Ubuntu 22.04 (GitHub runner image)\r\n- Packages installed by `make venv`: Jinja2-3.1.2 MarkupSafe-2.1.2 Pygments-2.15.1 alabaster-0.7.13 babel-2.12.1 blurb-1.1.0 certifi-2023.5.7 charset-normalizer-3.1.0 contourpy-1.0.7 cycler-0.11.0 docutils-0.17.1 fonttools-4.39.3 idna-3.4 imagesize-1.4.1 kiwisolver-1.4.4 matplotlib-3.7.1 numpy-1.24.3 packaging-23.1 pillow-9.5.0 polib-1.2.0 pyparsing-3.0.9 python-dateutil-2.8.2 python-docs-theme-2023.3.1 regex-2023.5.5 requests-2.30.0 six-1.16.0 snowballstemmer-2.2.0 sphinx-4.5.0 sphinx-lint-0.6.7 sphinxcontrib-applehelp-1.0.4 sphinxcontrib-devhelp-1.0.2 sphinxcontrib-htmlhelp-2.0.1 sphinxcontrib-jsmath-1.0.1 sphinxcontrib-qthelp-1.0.3 sphinxcontrib-serializinghtml-1.1.5 sphinxext-opengraph-0.8.2 urllib3-2.0.2\r\n\r\n\u003c!--\r\nYou can freely edit this text. Remove any lines you believe are unnecessary.\r\n--\u003e\r\n\n\n\u003c!-- gh-linked-prs --\u003e\n### Linked PRs\n* gh-104296\n* gh-104299\n\u003c!-- /gh-linked-prs --\u003e\n","author":{"url":"https://github.com/rffontenelle","@type":"Person","name":"rffontenelle"},"datePublished":"2023-05-08T01:31:27.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":5},"url":"https://github.com/104284/cpython/issues/104284"}
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:586bfffc-98ee-56c5-9f14-596a46de8cf2 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | C9D4:861EA:27C767:357033:6969793F |
| html-safe-nonce | e95d086806eb83e8298af74d09497d1695a56f20b35d11fa5a5c3150de31bce9 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJDOUQ0Ojg2MUVBOjI3Qzc2NzozNTcwMzM6Njk2OTc5M0YiLCJ2aXNpdG9yX2lkIjoiODI2Njc4MDkyMzcwNDk5ODIwNyIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | 5d7a2ed9c88fa59af253025eff4a9c8ef833729c7a2de2e58927df8504b692e1 |
| hovercard-subject-tag | issue:1699355836 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/python/cpython/104284/issue_layout |
| twitter:image | https://opengraph.githubassets.com/d39b7c048e105aaf56321f7209f531f3cf2d6089a0220e0ece5832c7f32a0669/python/cpython/issues/104284 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/d39b7c048e105aaf56321f7209f531f3cf2d6089a0220e0ece5832c7f32a0669/python/cpython/issues/104284 |
| og:image:alt | Bug report I coordinate Brazilian Portuguese translation of the Python documentation. As part of the translation update process, I run sphinx-build's gettext builder to generate POT (translation fi... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | rffontenelle |
| hostname | github.com |
| expected-hostname | github.com |
| None | c6f193beb8ff08443adc07685d75302ab8aaf0a135f6e251c3ff3112c8deb881 |
| turbo-cache-control | no-preview |
| go-import | github.com/python/cpython git https://github.com/python/cpython.git |
| octolytics-dimension-user_id | 1525981 |
| octolytics-dimension-user_login | python |
| octolytics-dimension-repository_id | 81598961 |
| octolytics-dimension-repository_nwo | python/cpython |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 81598961 |
| octolytics-dimension-repository_network_root_nwo | python/cpython |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 212e3e3d3298bf5b313830edfd2399e869f7ea76 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width