[python] Python locale error: unsupported locale setting

  • run this command locale to get what locale is used. Such as:

LANG=en_US.UTF-8
LANGUAGE=en_US:en
LC_CTYPE=zh_CN.UTF-8
LC_NUMERIC="en_US.UTF-8"
LC_TIME="en_US.UTF-8"
LC_COLLATE="en_US.UTF-8"
LC_MONETARY="en_US.UTF-8"
LC_MESSAGES="en_US.UTF-8"
LC_PAPER="en_US.UTF-8"
LC_NAME="en_US.UTF-8"
LC_ADDRESS="en_US.UTF-8"
LC_TELEPHONE="en_US.UTF-8"
LC_MEASUREMENT="en_US.UTF-8"
LC_IDENTIFICATION="en_US.UTF-8"
LC_ALL=

  • search for the listed locales list in first step in /etc/locale-gen file. Uncomment to used ones
  • run locale-gen to generate newly added locales

Examples related to python

programming a servo thru a barometer Is there a way to view two blocks of code from the same file simultaneously in Sublime Text? python variable NameError Why my regexp for hyphenated words doesn't work? Comparing a variable with a string python not working when redirecting from bash script is it possible to add colors to python output? Get Public URL for File - Google Cloud Storage - App Engine (Python) Real time face detection OpenCV, Python xlrd.biffh.XLRDError: Excel xlsx file; not supported Could not load dynamic library 'cudart64_101.dll' on tensorflow CPU-only installation

Examples related to locale

Python locale error: unsupported locale setting Android get current Locale, not default How can I get my Android device country code without using GPS? Set Locale programmatically List of All Locales and Their Short Codes? How to get Locale from its String representation in Java? How to fix a locale setting warning from Perl Changing Locale within the app itself How can I format date by locale in Java? SimpleDateFormat and locale based format string

Examples related to ubuntu-11.04

Python locale error: unsupported locale setting String comparison in bash. [[: not found Where is Ubuntu storing installed programs? Hadoop: «ERROR : JAVA_HOME is not set» How to run a script at the start up of Ubuntu? /etc/apt/sources.list" E212: Can't open file for writing curl : (1) Protocol https not supported or disabled in libcurl linux/videodev.h : no such file or directory - OpenCV on ubuntu 11.04