[SciPy-user] importing pylab??

Saber Mbarek mscipy@googlemail....
Wed Sep 24 02:57:43 CDT 2008


Hi,

I installed scipy a few days ago on my laptop (with os linux debian), but
while importing the pylab module from the (installed) python-matplotlib 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
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://projects.scipy.org/pipermail/scipy-user/attachments/20080924/dbee4ab6/attachment-0001.html 


More information about the SciPy-user mailing list