Worked. Thanks.

On Wed, May 2, 2012 at 3:00 PM, Adnane Belmadiaf <[email protected]>wrote:

> Hi,
>
> Look at this ticket https://code.djangoproject.com/ticket/5846
>
> For more infos :
> http://patrick.arminio.info/blog/2012/02/fix-valueerror-unknown-locale-utf8/
>
> 2012/5/2 Timothy Makobu <[email protected]>
>
>> Hi Devs,
>>
>> I got no reply on this issue when I posted it on django-users. I was
>> eventually able to go around it by installing Django 1.3 (I was getting the
>> error on 1.4) This error occurred on both PostreSQL and MySQL databases.
>>
>> regards,
>> Tim
>>
>>
>> ---------- Forwarded message ----------
>> From: Timothy Makobu <[email protected]>
>> Date: Sun, Apr 29, 2012 at 1:09 PM
>> Subject: ValueError: unknown locale: UTF-8
>> To: [email protected]
>>
>>
>> Hi,
>>
>> I'm getting an "unknown locale" exception and yet the LANG environment
>> variable is set:
>>
>> Traceback (most recent call last):
>>   File "manage.py", line 14, in <module>
>>     execute_manager(settings)
>>   File
>> "/opt/local/lib/python2.7/site-packages/django/core/management/__init__.py",
>> line 459, in execute_manager
>>     utility.execute()
>>   File
>> "/opt/local/lib/python2.7/site-packages/django/core/management/__init__.py",
>> line 382, in execute
>>     self.fetch_command(subcommand).run_from_argv(self.argv)
>>   File
>> "/opt/local/lib/python2.7/site-packages/django/core/management/base.py",
>> line 196, in run_from_argv
>>     self.execute(*args, **options.__dict__)
>>   File
>> "/opt/local/lib/python2.7/site-packages/django/core/management/base.py",
>> line 232, in execute
>>     output = self.handle(*args, **options)
>>   File
>> "/opt/local/lib/python2.7/site-packages/django/core/management/base.py",
>> line 371, in handle
>>     return self.handle_noargs(**options)
>>   File
>> "/opt/local/lib/python2.7/site-packages/south/management/commands/syncdb.py",
>> line 90, in handle_noargs
>>     syncdb.Command().execute(**options)
>>   File
>> "/opt/local/lib/python2.7/site-packages/django/core/management/base.py",
>> line 232, in execute
>>     output = self.handle(*args, **options)
>>   File
>> "/opt/local/lib/python2.7/site-packages/django/core/management/base.py",
>> line 371, in handle
>>     return self.handle_noargs(**options)
>>   File
>> "/opt/local/lib/python2.7/site-packages/django/core/management/commands/syncdb.py",
>> line 110, in handle_noargs
>>     emit_post_sync_signal(created_models, verbosity, interactive, db)
>>   File
>> "/opt/local/lib/python2.7/site-packages/django/core/management/sql.py",
>> line 189, in emit_post_sync_signal
>>     interactive=interactive, db=db)
>>   File
>> "/opt/local/lib/python2.7/site-packages/django/dispatch/dispatcher.py",
>> line 172, in send
>>     response = receiver(signal=self, sender=sender, **named)
>>   File
>> "/opt/local/lib/python2.7/site-packages/django/contrib/auth/management/__init__.py",
>> line 73, in create_superuser
>>     call_command("createsuperuser", interactive=True, database=db)
>>   File
>> "/opt/local/lib/python2.7/site-packages/django/core/management/__init__.py",
>> line 150, in call_command
>>     return klass.execute(*args, **defaults)
>>   File
>> "/opt/local/lib/python2.7/site-packages/django/core/management/base.py",
>> line 232, in execute
>>     output = self.handle(*args, **options)
>>   File
>> "/opt/local/lib/python2.7/site-packages/django/contrib/auth/management/commands/createsuperuser.py",
>> line 70, in handle
>>     default_username = get_default_username()
>>   File
>> "/opt/local/lib/python2.7/site-packages/django/contrib/auth/management/__init__.py",
>> line 105, in get_default_username
>>     default_username = get_system_username()
>>   File
>> "/opt/local/lib/python2.7/site-packages/django/contrib/auth/management/__init__.py",
>> line 85, in get_system_username
>>     return getpass.getuser().decode(locale.getdefaultlocale()[1])
>>   File "/opt/local/lib/python2.7/locale.py", line 503, in getdefaultlocale
>>     return _parse_localename(localename)
>>   File "/opt/local/lib/python2.7/locale.py", line 435, in
>> _parse_localename
>>     raise ValueError, 'unknown locale: %s' % localename
>> ValueError: unknown locale: UTF-8
>>
>>
>> # echo $LANG
>> # en_US.UTF-8
>>
>>
>>  --
>> You received this message because you are subscribed to the Google Groups
>> "Django developers" group.
>> To post to this group, send email to [email protected].
>> To unsubscribe from this group, send email to
>> [email protected].
>> For more options, visit this group at
>> http://groups.google.com/group/django-developers?hl=en.
>>
>
>
>
> --
> Cordialement
> Adnane Belmadiaf
>
> --
> You received this message because you are subscribed to the Google Groups
> "Django developers" group.
> To post to this group, send email to [email protected].
> To unsubscribe from this group, send email to
> [email protected].
> For more options, visit this group at
> http://groups.google.com/group/django-developers?hl=en.
>

-- 
You received this message because you are subscribed to the Google Groups 
"Django developers" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/django-developers?hl=en.

Reply via email to