-
-
Notifications
You must be signed in to change notification settings - Fork 2.4k
Description
Describe the bug
Hi,
I'm trying to build docs locally on a macOS machine with recent versions and running make html reports
Traceback (most recent call last):
File "/Users/DelazJ/Documents/gh/anotherDocBranch/venv/bin/sphinx-build", line 8, in
sys.exit(main())
File "/Users/DelazJ/Documents/gh/anotherDocBranch/venv/lib/python3.9/site-packages/sphinx/cmd/build.py", line 326, in main
locale.setlocale(locale.LC_ALL, '')
File "/Library/Developer/CommandLineTools/Library/Frameworks/Python3.framework/Versions/3.9/lib/python3.9/locale.py", line 610, in setlocale
return _setlocale(category, locale)
locale.Error: unsupported locale setting
make: *** [html] Error 1
Since my 4.x version of Sphinx buils without issue, and trying to understand, I found that this was a macOS issue worked around by #5724 some time ago, and this patch was removed in c7d7f29 (I couldn't find the rationale but assumed because the issue on Python side is resolved?)
How to Reproduce
I think the issue relates to the OS and a Sphinx version >= 6.2.0. Any project could be used I think.
Environment Information
Platform: darwin; (macOS-13.6-arm64-arm-64bit)
Python version: 3.9.6 (default, May 7 2023, 23:32:44)
[Clang 14.0.3 (clang-1403.0.22.14.1)])
Python implementation: CPython
Sphinx version: 7.2.6
Docutils version: 0.18.1
Jinja2 version: 3.1.2
Pygments version: 2.16.1
Sphinx extensions
No response
Additional context
No response