Workaround for "unknown locale: en_IL" error

63 views
Skip to first unread message

TB

unread,
Jun 16, 2019, 5:09:29 AM6/16/19
to sage-...@googlegroups.com

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
>>> Checking online list of optional packages.
>>> Checking online list of experimental packages.vim
>>> Checking online list of huge packages.
Error: could not find a package matching list
       Try 'sage --package list' to see the available packages
       Did you mean: bliss, flint, git, lie, boost?
Attempting to download package list
Downloading the Sage mirror list
Searching fastest mirror

[snip]

>>> Checking online list of optional packages.
>>> Checking online list of experimental packages.
>>> Checking online list of huge packages.
Error: could not find a package matching list
       Try 'sage --package list' to see the available packages
       Did you mean: bliss, flint, git, isl, lie?


FWIW, I do not think that an unrecognized locale should break the build, just give a warning.


Regards,

TB

dochtml_short.log
Reply all
Reply to author
Forward
0 new messages