Skip to content
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

Dockerfile missing locale #32

Open
TristanRobitaille opened this issue Jan 31, 2025 · 1 comment
Open

Dockerfile missing locale #32

TristanRobitaille opened this issue Jan 31, 2025 · 1 comment
Assignees

Comments

@TristanRobitaille
Copy link

The Docker image, at least when running it on Apptainer, doesn't have locale settings. This leads make docs to fail.

Singularity> make docs
make -C docs html
make[1]: Entering directory '/scratch/sem24h24/Deeploy/docs'
Traceback (most recent call last):
  File "/usr/local/bin/sphinx-build", line 8, in <module>
    sys.exit(main())
  File "/usr/local/lib/python3.10/dist-packages/sphinx/cmd/build.py", line 546, in main
    locale.setlocale(locale.LC_ALL, '')
  File "/usr/lib/python3.10/locale.py", line 620, in setlocale
    return _setlocale(category, locale)
locale.Error: unsupported locale setting
make[1]: *** [Makefile:21: html] Error 1
make[1]: Leaving directory '/scratch/sem24h24/Deeploy/docs'
make: *** [Makefile:354: docs] Error 2

Running before make docs solves the issue.

export LC_ALL=C
export LANG=C
export LANGUAGE=C
@Victor-Jung Victor-Jung self-assigned this Jan 31, 2025
@Victor-Jung Victor-Jung added bug Something isn't working and removed bug Something isn't working labels Jan 31, 2025
@Victor-Jung
Copy link
Member

Hi Tristan, thanks for your report. I think the issue is Apptrainer here. I pulled the Docker image, and I can run make docs there without issues.

However, this issue just made me realize I don't build the documentation in the CI, so I will add this right away :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants