dividing by zero blows up and busts

I've compiled MPL on a new Solaris 10 box, but now it won't initialize on
this new box (though it still works fine on the old box). Here's what
happened:

from pylab import *

loaded rc file /home/erik/.matplotlib/matplotlibrc
matplotlib version 0.84
verbose.level debug
interactive is False
platform is sunos5
loaded modules: ['pylab', '_bisect', '__future__', 'copy_reg',
'sre_compile', 'distutils', '_sre', '__main__', 'site', '__builtin__',
'datetime', 'matplotlib.tempfile', 'encodings', 'pytz.datetime',
'sre_constants', 'distutils.string', 'dateutil', 'matplotlib.datetime',
'posixpath', '_random', 'tempfile', 'errno', 'matplotlib.warnings',
'binascii', 'encodings.codecs', 'matplotlib.sys', 're', 'os.path',
'pytz.sys', '_codecs', 'distutils.sysconfig', 'encodings.exceptions',
'pytz.sets', 'math', 'fcntl', 'stat', 'zipimport', 'string', 'warnings',
'encodings.types', 'UserDict', 'encodings.ascii', 'distutils.os',
'matplotlib', 'sys', 'pytz.tzinfo', 'pytz', 'matplotlib.__future__',
'codecs', 'distutils.re', 'readline', 'matplotlib.pytz', 'types', 'strop',
'matplotlib.dateutil', 'matplotlib.os', 'thread', 'sre', 'bisect',
'matplotlib.distutils', 'signal', 'distutils.errors', 'random',
'linecache', 'itertools', 'posix', 'encodings.aliases', 'sets',
'exceptions', 'sre_parse', 'pytz.bisect', 'distutils.sys', 'os']
Traceback (most recent call last):
  File "<stdin>", line 1, in ?
  File "/usr/local/lib/python2.4/site-packages/pylab.py", line 1, in ?
    from matplotlib.pylab import *
  File "/usr/local/lib/python2.4/site-packages/matplotlib/pylab.py", line
194, in ?
    import cm
  File "/usr/local/lib/python2.4/site-packages/matplotlib/cm.py", line 5,
in ?
    import colors
  File "/usr/local/lib/python2.4/site-packages/matplotlib/colors.py", line
33, in ?
    from numerix import array, arange, take, put, Float, Int, where, \
  File
"/usr/local/lib/python2.4/site-packages/matplotlib/numerix/__init__.py",
line 59, in ?
    from _nc_imports import nx, inf, infinity, Infinity
  File
"/usr/local/lib/python2.4/site-packages/matplotlib/numerix/_nc_imports.py",
line 25, in ?
    inf = infty = infinity = Infinity = (array([1])/0.0)[0]
OverflowError: math range error

Any help would be greatly appreciated.

Thanks!

E

Erik Curiel wrote:

I've compiled MPL on a new Solaris 10 box, but now it won't initialize on
this new box (though it still works fine on the old box). Here's what
happened:

from pylab import *

[snip]

  File
"/usr/local/lib/python2.4/site-packages/matplotlib/numerix/_nc_imports.py",
line 25, in ?
    inf = infty = infinity = Infinity = (array([1])/0.0)[0]
OverflowError: math range error

The divide-by-zero behavior may have changed between Numeric versions.
What are the version numbers on each of your machines?

···

--
Robert Kern
rkern@...376...

"In the fields of hell where the grass grows high
Are the graves of dreams allowed to die."
  -- Richard Harter

The divide-by-zero behavior may have changed between Numeric versions.
What are the version numbers on each of your machines?

In fact, we just figured that out. The one that worked was with Numeric
24.0b2. The one that blew up was 23.8. For future reference, in case
anyone cares, you can make 23.8 work by compiling it with

  -DHAVE_FINITE=1

E