Problems in importing Pylab

Perfect; that saved my day.
Many thanks


2008/10/24 Angus McMorland <amcmorl@...287...>:


2008/10/24 Lorenzo Isella <lorenzo.isella@...287...>:

Dear All,
I am running Debian testing on my box. I had not used Python for about
a couple of weeks (during which I updated my system regularly) only to
find out that today I have a trouble if I try to import pylab. See
below what happens

In [1]: import pylab as p
ImportError Traceback (most recent call last)

/home/iselllo/<ipython console> in <module>()

/usr/lib/python2.5/site-packages/ in <module>()
----> 1 from matplotlib.pylab import *
     2 import matplotlib.pylab
     3 __doc__ = matplotlib.pylab.__doc__

/usr/lib/python2.5/site-packages/matplotlib/ in <module>()
   202 from numpy import ma
--> 204 from matplotlib import mpl # pulls in most modules
   206 from matplotlib.dates import date2num, num2date,\

/usr/lib/python2.5/site-packages/matplotlib/ in <module>()
----> 2 from matplotlib import axis
     3 from matplotlib import axes
     4 from matplotlib import cbook
     5 from matplotlib import collections
     6 from matplotlib import colors

/usr/lib/python2.5/site-packages/matplotlib/ in <module>()
    11 import matplotlib.patches as mpatches
    12 import matplotlib.scale as mscale
---> 13 import matplotlib.text as mtext
    14 import matplotlib.ticker as mticker
    15 import matplotlib.transforms as mtransforms

/usr/lib/python2.5/site-packages/matplotlib/ in <module>()
    17 from lines import Line2D
---> 19 import matplotlib.nxutils as nxutils
    21 def _process_text_args(override, fontdict=None, **kwargs):

ImportError: /usr/lib/python2.5/site-packages/matplotlib/
undefined symbol: __gxx_personality_v0

I have no idea of what is going on; I do not remember doing anything
funny with my Python installation.
Any help is really appreciated now, since without pylab many of my
codes are unusable.
Many thank in advance

I'm guessing this is because you've recently upgraded to the latest
testing version of mpl... and it's broken. If that's the case you need
to upgrade to the unstable version (0.98.3-3) and all will work again.




Free will does not consist in inverting the river flow, but in being
the fish that leaps upstream.

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
Matplotlib-users mailing list

AJC McMorland
Post-doctoral research fellow
Neurobiology, University of Pittsburgh

Free will does not consist in inverting the river flow, but in being
the fish that leaps upstream.