|
Dear list,
In case anyone encounter the following error building Sage (here on Ubuntu 18.04):
ValueError: unknown locale: en_IL
or similar, the easy workaround is to set your locale to something recognized by glibc, e.g. en_US. At least for me there is no need to set LC_ALL, but just to run:
LANG=en_US make
instead of make. The reason is that
en_IL is a rather new locale, from about 2 years ago, and Python's
glibc is not not recent enough in many systems. Attached is a part
of the dochtml.log to make it easier for a search engine to find
the error. When the build fails it also produced errors building
mathjax-2.7.4 and *list*, which is not even a Sage package. The
relevant part of list.log:
Attempting to download package list [snip] >>> Checking online list of
optional packages.
FWIW, I do not think that an unrecognized
locale should break the build, just give a warning.
Regards, TB You received this message because you are subscribed to the Google Groups "sage-devel" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To post to this group, send email to [email protected]. Visit this group at https://groups.google.com/group/sage-devel. To view this discussion on the web visit https://groups.google.com/d/msgid/sage-devel/ade07373-e5f7-1252-b719-632e173fe14d%40gmail.com. For more options, visit https://groups.google.com/d/optout. |
Error building the documentation.
Traceback (most recent call last):
File "/the/path/to/sage/local/lib/python2.7/runpy.py", line 174, in _run_module_as_main
"__main__", fname, loader, pkg_name)
File "/the/path/to/sage/local/lib/python2.7/runpy.py", line 72, in _run_code
exec code in run_globals
File "/the/path/to/sage/local/lib/python2.7/site-packages/sage_setup/docbuild/__main__.py", line 2, in <module>
main()
File "/the/path/to/sage/local/lib/python2.7/site-packages/sage_setup/docbuild/__init__.py", line 1730, in main
builder()
File "/the/path/to/sage/local/lib/python2.7/site-packages/sage_setup/docbuild/__init__.py", line 351, in _wrapper
getattr(get_builder(document), 'inventory')(*args, **kwds)
File "/the/path/to/sage/local/lib/python2.7/site-packages/sage_setup/docbuild/__init__.py", line 547, in _wrapper
build_many(build_ref_doc, L)
File "/the/path/to/sage/local/lib/python2.7/site-packages/sage_setup/docbuild/__init__.py", line 288, in build_many
ret = x.get(99999)
File "/the/path/to/sage/local/lib/python2.7/multiprocessing/pool.py", line 572, in get
raise self._value
ValueError: unknown locale: en_IL
Note: incremental documentation builds sometimes cause spurious
error messages. To be certain that these are real errors, run
"make doc-clean" first and try again.
Deleting empty directory /the/path/to/sage/src/doc/en/reference/notebook
Building reference manual, first pass.
Error building the documentation.
Traceback (most recent call last):
File "/the/path/to/sage/local/lib/python2.7/runpy.py", line 174, in _run_module_as_main
"__main__", fname, loader, pkg_name)
File "/the/path/to/sage/local/lib/python2.7/runpy.py", line 72, in _run_code
exec code in run_globals
File "/the/path/to/sage/local/lib/python2.7/site-packages/sage_setup/docbuild/__main__.py", line 2, in <module>
main()
File "/the/path/to/sage/local/lib/python2.7/site-packages/sage_setup/docbuild/__init__.py", line 1730, in main
builder()
File "/the/path/to/sage/local/lib/python2.7/site-packages/sage_setup/docbuild/__init__.py", line 351, in _wrapper
getattr(get_builder(document), 'inventory')(*args, **kwds)
File "/the/path/to/sage/local/lib/python2.7/site-packages/sage_setup/docbuild/__init__.py", line 547, in _wrapper
build_many(build_ref_doc, L)
File "/the/path/to/sage/local/lib/python2.7/site-packages/sage_setup/docbuild/__init__.py", line 288, in build_many
ret = x.get(99999)
File "/the/path/to/sage/local/lib/python2.7/multiprocessing/pool.py", line 572, in get
raise self._value
ValueError: unknown locale: en_IL
Note: incremental documentation builds sometimes cause spurious
error messages. To be certain that these are real errors, run
"make doc-clean" first and try again.
bash: warning: setlocale: LC_ALL: cannot change locale (en_US)
bash: warning: setlocale: LC_ALL: cannot change locale (en_US)
bash: warning: setlocale: LC_ALL: cannot change locale (en_US)
[snip...]
Build finished. The built documents can be found in /the/path/to/sage/local/share/doc/sage/html/en/thematic_tutorials
Elapsed time: 567.7 seconds.
Done building the documentation!
Building reference manual, first pass.
Error building the documentation.
Traceback (most recent call last):
File "/the/path/to/sage/local/lib/python2.7/runpy.py", line 174, in _run_module_as_main
"__main__", fname, loader, pkg_name)
File "/the/path/to/sage/local/lib/python2.7/runpy.py", line 72, in _run_code
exec code in run_globals
File "/the/path/to/sage/local/lib/python2.7/site-packages/sage_setup/docbuild/__main__.py", line 2, in <module>
main()
File "/the/path/to/sage/local/lib/python2.7/site-packages/sage_setup/docbuild/__init__.py", line 1730, in main
builder()
File "/the/path/to/sage/local/lib/python2.7/site-packages/sage_setup/docbuild/__init__.py", line 351, in _wrapper
getattr(get_builder(document), 'inventory')(*args, **kwds)
File "/the/path/to/sage/local/lib/python2.7/site-packages/sage_setup/docbuild/__init__.py", line 547, in _wrapper
build_many(build_ref_doc, L)
File "/the/path/to/sage/local/lib/python2.7/site-packages/sage_setup/docbuild/__init__.py", line 288, in build_many
ret = x.get(99999)
File "/the/path/to/sage/local/lib/python2.7/multiprocessing/pool.py", line 572, in get
raise self._value
ValueError: unknown locale: en_IL
Note: incremental documentation builds sometimes cause spurious
error messages. To be certain that these are real errors, run
"make doc-clean" first and try again.
