Problems in importing Pylab

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/pylab.py in <module>()
----> 1 from matplotlib.pylab import *
      2 import matplotlib.pylab
      3 __doc__ = matplotlib.pylab.__doc__

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

/usr/lib/python2.5/site-packages/matplotlib/mpl.py 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/axis.py 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/text.py in <module>()
     17 from lines import Line2D
     18
---> 19 import matplotlib.nxutils as nxutils
     20
     21 def _process_text_args(override, fontdict=None, **kwargs):

ImportError: /usr/lib/python2.5/site-packages/matplotlib/nxutils.so:
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

Lorenzo

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

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/pylab.py in <module>()
----> 1 from matplotlib.pylab import *
     2 import matplotlib.pylab
     3 __doc__ = matplotlib.pylab.__doc__

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

/usr/lib/python2.5/site-packages/matplotlib/mpl.py 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/axis.py 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/text.py in <module>()
    17 from lines import Line2D
    18
---> 19 import matplotlib.nxutils as nxutils
    20
    21 def _process_text_args(override, fontdict=None, **kwargs):

ImportError: /usr/lib/python2.5/site-packages/matplotlib/nxutils.so:
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.

HTH,

Angus.

···

Lorenzo

--
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
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

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

Alternatively, you can download the version targetted for testing,
0.98.1-1+lenny3, from [1] (by hand, sorry).

[1] http://ftp.debian.org/debian/pool/main/m/matplotlib/

···

On Fri, Oct 24, 2008 at 13:43, Angus McMorland <amcmorl@...287...> wrote:

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

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

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.

--
Sandro Tosi (aka morph, Morpheus, matrixhasu)
My website: http://matrixhasu.altervista.org/
Me at Debian: http://wiki.debian.org/SandroTosi