Skip to content

Commit 5e48246

Browse files
authored
Add LC_ALL to force a default locale (pytorch#360)
Last run of the build, I saw: ``` 02:15:55 make html 02:15:55 make[1]: Entering directory '/var/lib/jenkins/workspace' 02:15:56 Traceback (most recent call last): 02:15:56 File "/opt/conda/bin/sphinx-build", line 11, in <module> 02:15:56 sys.exit(main()) 02:15:56 File "/opt/conda/lib/python3.6/site-packages/sphinx/cmd/build.py", line 313, in main 02:15:56 locale.setlocale(locale.LC_ALL, '') 02:15:56 File "/opt/conda/lib/python3.6/locale.py", line 598, in setlocale 02:15:56 return _setlocale(category, locale) 02:15:56 locale.Error: unsupported locale setting 02:15:56 make[1]: *** [html] Error 1 02:15:56 Makefile:21: recipe for target 'html' failed ``` So trying to fix it with an explicit locale set
1 parent a2b1aac commit 5e48246

File tree

2 files changed

+6
-0
lines changed

2 files changed

+6
-0
lines changed

Makefile

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,9 @@
11
# Minimal makefile for Sphinx documentation
22
#
33

4+
# Locale
5+
export LC_ALL=C
6+
47
# You can set these variables from the command line.
58
SPHINXOPTS =
69
SPHINXBUILD = sphinx-build

README.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,5 +22,8 @@ In case you prefer to write your tutorial in jupyter, you can use [this script](
2222
## Building
2323

2424
- Start with installing torch, torchvision, and your GPUs latest drivers. Install other requirements using `pip install -r requirements.txt`
25+
26+
> If you want to use `virtualenv`, make your environment in a `venv` directory like: `virtualenv ./venv`, then `source ./venv/bin/activate`.
27+
2528
- Then you can build using `make docs`. This will download the data, execute the tutorials and build the documentation to `docs/` directory. This will take about 60-120 min for systems with GPUs. If you do not have a GPU installed on your system, then see next step.
2629
- You can skip the computationally intensive graph generation by running `make html-noplot` to build basic html documentation to `_build/html`. This way, you can quickly preview your tutorial.

0 commit comments

Comments
 (0)