Python locale error: unsupported locale setting
location: linuxexchange.com - date: April 14, 2015
Why do I get the following error when doing this in python:
>>> import locale
>>> print str( locale.getlocale() )
>>> locale.setlocale(locale.LC_ALL, 'de_DE')
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "/usr/lib/python2.7/locale.py", line 531, in setlocale
return _setlocale(category, locale)
locale.Error: unsupported locale setting
This works with other locales like fr or nl as well. I'm using Ubuntu 11.04.
Update: Doing the following did not yield anything:
perl: warning: Setting locale failed.
perl: warning: Please check that your locale settings:
LANGUAGE = (unset),
LC_ALL = (unset),
LC_CTYPE = "UTF-8",
LANG = (unset)
are supported and installed on your system.
perl: warning: Falling back to the standard locale ("C").
locale: Cannot set LC_CTYPE to default locale: No such file or directory
locale: Cannot set LC_ALL to default locale: No such
Error: “unsupported locale setting” on Python / OSX
location: linuxexchange.com - date: August 1, 2013
I've got the following error trying to run a local Python scriot on OSX Lion 10.7:
You are using the base settings file.
You are advised to create a local.py file (based on local_sample.py) with your personal settings.
Traceback (most recent call last):
File "manage.py", line 39, in <module>
File "manage.py", line 22, in detect_port
default_port = getattr(settings, 'RUNSERVER_PORT', None)
File "/Library/Python/2.7/site-packages/django/conf/__init__.py", line 53, in __getattr__
File "/Library/Python/2.7/site-packages/django/conf/__init__.py", line 48, in _setup
self._wrapped = Settings(settings_module)
File "/Library/Python/2.7/site-packages/django/conf/__init__.py", line 132, in __init__
mod = importlib.import_module(self.SETTINGS_MODULE)
File "/Library/Python/2.7/site-packages/django/utils/importlib.py", line 35, in import_module
afterInstallation errors. locale error. unsupported locale settings and two more
location: linuxquestions.com - date: April 28, 2008
Ok here's the story. to start-off here's my machine specs
Proc: P4 2.8
Mobo: Asus P4GE-MX
Video Card: 64MB geforce mx 400
•80 gig (windows xp) [Primary Master]
•40 gig (this is where i plan to install FC 8) [Secondary Primary Master]
•CD drive [Primary Slave]
•DVD drive [Secondary Primary Slave]
so there, i booted up my pc with my Fedora-8-i386-DVD, everything went fine. the from choosing whether to rescue etc, media testing, language selection and the keyboard. then here's the 1st problem i encountered.
fedora recognizes my hdd's as sda and sdb. i tried installing slackware 12 and centos 5 before and they all see my hdd's as hda so on..
still i pushed through, made my custom layout unchecked sda and chosed sdb as the path to install FC8 so on, default bootloader settings upto optional packages installation. Everything went fine, packages are installed up until it says reboot.
here's the 2nd problem i had. DVD ejects
django unsupported locale setting on Mac OS X
location: linuxexchange.com - date: June 4, 2012
I've been developing an application using Django for the past a year. The application was written in a Debian environment, the development and testing was entirely done in a debain machine.
Recently, I decided to move the application to my local Mac OS X based laptop. using port's I did a virtual environment and pulled my project from github. When I try to runserver, am getting "unsupported locale setting" exception.
My application uses locale heavily, I noticed though the language setting in my machine is set for en_US.UTF-8 while on the debian machine it was en_US.UTF8. I don't know if the dash is the reason why it is failing though.
My application is using django-localeurl for creating language code url schema for i10n and i18n.
below is the exception am getting
Request Method: GET
Request URL: http://127.0.0.1:8000/en/
Django Version: 1.3.1
Python Version: 2.7.1
How to fix messed up locale setting
location: ubuntuforums.com - date: December 23, 2010
Somehow my language/locale setting has gotten messed up, and I don't know how to fix it. Several applications complain with a message like: "No matching locale found for 'C'."
The contents of /etc/default/locale is:
But when I type "locale" in a terminal, it lists:
How can I fix this?
(I'm running 64-bit Ubuntu 10.10 with all updates applied.)
locale setting, problem with enUS.UTF8
location: linuxquestions.com - date: April 16, 2008
I would appreciate any help on the issue:
I have installed libfacet - enchanced locale facets
from http://multitran.sourceforge.net/ with the oter dictionary files and as I understand it changed my locale.LC_ALL setting to en_US.UTF-8.
After reboot I get the following error from hplip:
Date format and locale setting
- date: September 7, 2009
I would like to configure Sunbird to display dates in the dd/mm/yyyy format, but it seems that isn't directly possible.
I have seen advice that the date format depends upon locale settings, which are as follows;
I would prefer settings which reflect Australian conventions, if these are available.
Any advice please, on what/how to change.
LANGUAGE locale setting
location: linuxquestions.com - date: February 15, 2006
I noticed that Debian has another line in the locales setting:
I have not seen this in other distros (Slackware, Mandriva) and am wondering what its purpose is.
Problem with individual locale setting
location: linuxquestions.com - date: August 17, 2012
on my desktop PC I'm running Linux Mint 12 (Lisa) using the MATE desktop. The system's locale is basically en_US.utf8. For a long time, I had the assignment
gnometerminal doesn't work maybe because of locale setting
location: linuxexchange.com - date: July 17, 2014
I installed Antergos (easy version of Arch) with the Japanese environment.
But I wanted to chaned the language to English, so I reffer the wiki article then run some commands after uncomment #en_US.UTF-8 UTF-8 in /etc/locale.gen and edit /etc/locale.conf into following:
The problem starts from here.
I restarted my computer and found that gnome-terminal doesn't work.
I substituted eshell on Emacs and run gnome-terminal command, then got error messages:
(process:1202): Gtk-WARNING **: Locale not supported by C library.
Using the fallback 'C' locale.
Error constructing proxy for org.gnome.Terminal:/org/gnome/Terminal/Factory0: Error calling StartServiceByName for org.gnome.Terminal:
Page: 1 2 3 4 5 6 7 8 9 10