[SciPy-dev] from scipy import * error on ppc

Vincent Nijs v-nijs@kellogg.northwestern....
Tue Feb 27 14:44:28 CST 2007


I get the following output on a G5 PPC, OS 10.4.8 when I do 'from scipy
import *'. I am using the most recent Mac developer tools and gfortran. This
is for todays SVN builds of numpy and scipy.

Thanks,

Vincent



In [4]: from scipy import *
---------------------------------------------------------------------------
exceptions.OverflowError                             Traceback (most recent
call last)

/Users/vrn953/<ipython console>

/Library/Frameworks/Python.framework/Versions/2.4/lib/python2.4/site-package
s/scipy/io/__init__.py
     10 from mio import *
     11 from npfile import npfile
---> 12 from recaster import sctype_attributes, Recaster
     13 from array_import import *
     14 from data_store import *

/Library/Frameworks/Python.framework/Versions/2.4/lib/python2.4/site-package
s/scipy/io/recaster.py
     47     pass
     48 
---> 49 class Recaster(object):
     50     ''' Class to recast arrays to one of acceptable scalar types
     51 

/Library/Frameworks/Python.framework/Versions/2.4/lib/python2.4/site-package
s/scipy/io/recaster.py in Recaster()
     59     '''
     60 
---> 61     _sctype_attributes = sctype_attributes()
     62     _k = 2**10
     63     _option_defaults = {

/Library/Frameworks/Python.framework/Versions/2.4/lib/python2.4/site-package
s/scipy/io/recaster.py in sctype_attributes()
     13         t_list = sctypes[sc_type]
     14         for T in t_list:
---> 15             F = finfo(T)
     16             dt = dtype(T)
     17             d_dict[T] = {

/Library/Frameworks/Python.framework/Versions/2.4/lib/python2.4/site-package
s/numpy/lib/getlimits.py in __new__(cls, dtype)
     47         if obj is not None:
     48             return obj
---> 49         obj = object.__new__(cls)._init(dtype)
     50         for dt in dtypes:
     51             cls._finfo_cache[dt] = obj

/Library/Frameworks/Python.framework/Versions/2.4/lib/python2.4/site-package
s/numpy/lib/getlimits.py in _init(self, dtype)
     73                         lambda v:array(_frz(v)[0], dtype),
     74                         lambda v: fmt % array(_frz(v)[0], dtype),
---> 75                         'numpy %s precision floating point number' %
precname)
     76 
     77         for word in ['precision', 'iexp',

/Library/Frameworks/Python.framework/Versions/2.4/lib/python2.4/site-package
s/numpy/lib/machar.py in __init__(self, float_conv, int_conv,
float_to_float, float_to_str, title)
    263 
    264         import math
--> 265         self.precision = int(-math.log10(float_to_float(self.eps)))
    266         ten = two + two + two + two + two
    267         resolution = ten ** (-self.precision)

OverflowError: math range error

-- 





More information about the Scipy-dev mailing list