Floating exception when rendering ylabel()

I just installed matplotlib 0.87.5 and numpy 1.0 from source on my
Debian "sarge" (stable release) system. (I chose those versions
because they're the ones currently included in the testing "etch"
release.) Everything I've tried has worked *except* the ylabel()
command. Whenever a plot containing a ylabel is rendered (on the
screen with show() or figure(), or non-interactively with savefig()),
python exits with the error

Floating exception

This does not happen if the ylabel() command is omitted, and there is
no problem with xlabel(), so I assume the issue is rotating the text
for the y axis label.

Simple example:

···

==================================================

ipython -pylab

/usr/lib/python2.3/site-packages/numpy/ctypeslib.py:12: UserWarning: All features of ctypes interface may not work with ctypes < 1.0.1
   warnings.warn("All features of ctypes interface may not work with " \
/usr/lib/python2.3/site-packages/IPython/Shell.py:628: GtkDeprecationWarning: gtk.timeout_add is deprecated, use gobject.timeout_add instead
   self.gtk.timeout_add(self.TIMEOUT, self.on_timer)
Python 2.3.5 (#2, Oct 16 2006, 19:19:48) Type "copyright", "credits" or "license" for more information.

IPython 0.6.13 -- An enhanced Interactive Python.
? -> Introduction to IPython's features.
%magic -> Information about IPython's 'magic' % functions.
help -> Python's own help system.
object? -> Details about 'object'. ?object also works, ?? prints more.

   Welcome to pylab, a matplotlib-based Python environment.
   For more information, type 'help(pylab)'.

In [1]: plot([0, 1],[0, 1]) Out[1]: [<matplotlib.lines.Line2D instance at 0xb5b46f2c>]

In [2]: xlabel('foo')
Out[2]: <matplotlib.text.Text instance at 0xb5b2d4cc>

In [3]: ylabel('bar')
Floating exception

Anyone have experience with this and care to point me towards the
solution to such a problem?
         Thanks,
--

Office: 0.17 (Golm) Dr. John T. Whelan
Phone: +49 331 567 7117 Albert-Einstein Institute
FAX: +49 331 567 7298 Am Muehlenberg 1
http://www.aei.mpg.de/~whelan/ D-14476 Potsdam
john.whelan@...1436... john.whelan@...1437...

You may be encountering this bug: http://code.astraw.com/debian_sarge_libc.html

John T Whelan wrote:

···

I just installed matplotlib 0.87.5 and numpy 1.0 from source on my
Debian "sarge" (stable release) system. (I chose those versions
because they're the ones currently included in the testing "etch"
release.) Everything I've tried has worked *except* the ylabel()
command. Whenever a plot containing a ylabel is rendered (on the
screen with show() or figure(), or non-interactively with savefig()),
python exits with the error

Floating exception

This does not happen if the ylabel() command is omitted, and there is
no problem with xlabel(), so I assume the issue is rotating the text
for the y axis label.

Simple example:

==================================================
  

ipython -pylab
    

/usr/lib/python2.3/site-packages/numpy/ctypeslib.py:12: UserWarning: All features of ctypes interface may not work with ctypes < 1.0.1
   warnings.warn("All features of ctypes interface may not work with " \
/usr/lib/python2.3/site-packages/IPython/Shell.py:628: GtkDeprecationWarning: gtk.timeout_add is deprecated, use gobject.timeout_add instead
   self.gtk.timeout_add(self.TIMEOUT, self.on_timer)
Python 2.3.5 (#2, Oct 16 2006, 19:19:48) Type "copyright", "credits" or "license" for more information.

IPython 0.6.13 -- An enhanced Interactive Python.
? -> Introduction to IPython's features.
%magic -> Information about IPython's 'magic' % functions.
help -> Python's own help system.
object? -> Details about 'object'. ?object also works, ?? prints more.

   Welcome to pylab, a matplotlib-based Python environment.
   For more information, type 'help(pylab)'.

In [1]: plot([0, 1],[0, 1]) Out[1]: [<matplotlib.lines.Line2D instance at 0xb5b46f2c>]

In [2]: xlabel('foo')
Out[2]: <matplotlib.text.Text instance at 0xb5b2d4cc>

In [3]: ylabel('bar')
Floating exception

Anyone have experience with this and care to point me towards the
solution to such a problem?
         Thanks,

Thanks for the tip. I didn't manage to patch the bug in glibc6, but
based the discussion in

http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=279294

I tried uninstalling my atlas3-sse packages, and the problem went
away.

···

On Fri, 26 Jan 2007, Andrew Straw wrote:

You may be encountering this bug: http://code.astraw.com/debian_sarge_libc.html

--

Office: 0.17 (Golm) Dr. John T. Whelan
Phone: +49 331 567 7117 Albert-Einstein Institute
FAX: +49 331 567 7298 Am Muehlenberg 1
http://www.aei.mpg.de/~whelan/ D-14476 Potsdam
john.whelan@...1436... john.whelan@...1437...