adonthell-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Adonthell-devel] Re: Python and i18n issues


From: Alexandre Courbot
Subject: [Adonthell-devel] Re: Python and i18n issues
Date: 12 Apr 2002 14:06:41 +0200

> > Traceback (most recent call last):
> >   File "/home/kai/adonthell/wastesedge/scripts/schedules/mapcharacters/lucia.py", line 19, in ?
> >     import random
> >   File "/usr/local/lib/python2.1/random.py", line 93, in ?
> >     _verify('NV_MAGICCONST', 1.71552776992141)
> >   File "/usr/local/lib/python2.1/random.py", line 88, in _verify
> >     raise ValueError(
> > ValueError: computed value for NV_MAGICCONST deviates too much (computed 2,82843, expected 1)
Okay, I think I know what's going on, thanks to google ;)

http://mail.python.org/pipermail/python-list/2002-March/090293.html
http://mail.python.org/pipermail/python-list/2002-March/090324.html
http://mail.python.org/pipermail/python-list/2002-March/090360.html

This guy had the same problem - for him it came from gnome.ui locale settings, so I guess it's the same for us. So it doesn't really come from i18n, but rather from l10n. Importing random before any locale is set or doing as suggested in the 3rd mail should do it.

Or maybe we can do without locales at all?

Alex.
-- 
http://www.gnurou.org

reply via email to

[Prev in Thread] Current Thread [Next in Thread]