Skip to content

translator.gettext infinite recursion #13485

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

Open
njaros opened this issue Apr 14, 2025 · 4 comments
Open

translator.gettext infinite recursion #13485

njaros opened this issue Apr 14, 2025 · 4 comments
Labels
awaiting:response Waiting for a response from the author of this issue type:bug

Comments

@njaros
Copy link

njaros commented Apr 14, 2025

Describe the bug

Hello,
A collegue of mine had a weird bug in an experiment.

During an experiment, the summary HTML gereration by sphinx crashed with an RecursionError.
In the log file, it seems that is a bug in the locale module.

I send you the traceback log file generated by Sphinx.
I saw that is about language catalogs and my collegue didn't had the environment variable LANG set at all.
I try to reproduce the bug with same configurations but for the moment I don't have this crash.

If somehow you know the bug, do you know how I can avoid it ?

Have a good day

sphinx-err-ztdxz1s1.log

How to Reproduce

not reproduced by me at the moment

Environment Information

* Platform:         win32; (Windows-11-10.0.26100-SP0)
* Python version:   3.12.2 (CPython)
* Sphinx version:   8.2.3
* Docutils version: 0.21.2
* Jinja2 version:   3.1.6
* Pygments version: 2.19.1

Sphinx extensions

no extension

Additional context

No response

@AA-Turner
Copy link
Member

We need the content of conf.py and locale/language settings to be able to reproduce this.

A

@AA-Turner AA-Turner added the awaiting:response Waiting for a response from the author of this issue label Apr 14, 2025
@njaros
Copy link
Author

njaros commented Apr 15, 2025

here is the content:

# Copyright 2024 Quobly
# --------------------------------------------------------------------------------------

# Configuration file for the Sphinx documentation builder.
#
# For the full list of built-in configuration values, see the documentation:
# https://www.sphinx-doc.org/en/master/usage/configuration.html

# -- Project information -----------------------------------------------------
# https://www.sphinx-doc.org/en/master/usage/configuration.html#project-information
# type:ignore
project = "run_summary"
copyright = "2024-2025, Quobly"
author = "Nicolas Jaros"
release = "0.1"

extensions = []

# -- General configuration ---------------------------------------------------
# https://www.sphinx-doc.org/en/master/usage/configuration.html#general-configuration

exclude_patterns = [".venv", "templates"]

# -- Options for HTML output -------------------------------------------------
# https://www.sphinx-doc.org/en/master/usage/configuration.html#options-for-html-output

html_theme = "pydata_sphinx_theme"
html_static_path = ["_static"]
html_logo = "_static/carac_logo2.png"

About the locale/language settings I didn't touch it
Unfortunately, I'm not authorized to send you the .rst template files

The build is done by the command

from sphinx.cmd.build import main as sphinx_main_build
(...)
sphinx_main_build([str(SPHINX_PATH), str(Path(file).with_suffix(".spx")), "-q")

@valeriupredoi
Copy link

hi @AA-Turner and the good folk of Sphinx, just to let you folks know we are seeing similar issues, both with sphinx 8.1 and 8.2, and only since a couple days now, see our CircleCI test and the RTD build - to note that during my attempts to fix the issue, with sphinx 8.2, I have seen a couple (but few and far between) cases when docs builds actually succeeded, so it appears to be flaky, with most of runs failing though 🍺

@njaros
Copy link
Author

njaros commented Apr 16, 2025

For the while I added the line
`language="en"' in the conf.py file.

I'll only have news of this change in 10 days. (Hollydays)

I hope my thread is not a waste of time for Sphinx teams.
Best regards
Or cheers 🍻

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
awaiting:response Waiting for a response from the author of this issue type:bug
Projects
None yet
Development

No branches or pull requests

3 participants