It seems you have your locale set to something that Python doesn't support.

Can you send the output of "locale" to this list?

For example, I have:

 > locale
LANG=en_US.UTF-8
LC_CTYPE="en_US.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=


Saber Mbarek wrote:
> Hi,
>
> I installed scipy a few days ago on my laptop (with os linux debian), 
> but while importing the pylab module from the python-matplotlib 
> (version 0.98.1-1) I got the following error:
>
> -------------------------------------------------------------------------------------------------------------
> Python 2.5.2 (r252:60911, Aug  8 2008, 09:22:44)
> [GCC 4.3.1] on linux2
> Type "help", "copyright", "credits" or "license" for more information.
> >>> import scipy
> >>> import numpy
> >>> import pylab
> Traceback (most recent call last):
>   File "<stdin>", line 1, in <module>
>   File "/usr/lib/python2.5/site-packages/pylab.py", line 1, in <module>
>     from matplotlib.pylab import *
>   File "/usr/lib/python2.5/site-packages/matplotlib/__init__.py", line 
> 128, in <module>
>     from rcsetup import defaultParams, validate_backend, validate_toolbar
>   File "/usr/lib/python2.5/site-packages/matplotlib/rcsetup.py", line 
> 18, in <module>
>     from matplotlib.colors import is_color_like
>   File "/usr/lib/python2.5/site-packages/matplotlib/colors.py", line 
> 39, in <module>
>     import matplotlib.cbook as cbook
>   File "/usr/lib/python2.5/site-packages/matplotlib/cbook.py", line 
> 14, in <module>
>     preferredencoding = locale.getpreferredencoding()
>   File "/usr/lib/python2.5/locale.py", line 514, in getpreferredencoding
>     setlocale(LC_CTYPE, "")
>   File "/usr/lib/python2.5/locale.py", line 478, in setlocale
>     return _setlocale(category, locale)
> locale.Error: unsupported locale setting
> ------------------------------------------------------------------------------------------------------------
>
> Could you please help me ?
>
> Best regards,
> Saber
>
> ------------------------------------------------------------------------
>
> -------------------------------------------------------------------------
> This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
> Build the coolest Linux based applications with Moblin SDK & win great prizes
> Grand prize is a trip for two to an Open Source event anywhere in the world
> http://moblin-contest.org/redirect.php?banner_id=100&url=/
> ------------------------------------------------------------------------
>
> _______________________________________________
> Matplotlib-users mailing list
> Matplotlib-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/matplotlib-users
>   

-- 
Michael Droettboom
Science Software Branch
Operations and Engineering Division
Space Telescope Science Institute
Operated by AURA for NASA


-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-users

Reply via email to