[Numpy-discussion] OSX installer: please test

Robert Pyle rpyle@post.harvard....
Wed Apr 23 09:51:17 CDT 2008


Here are some more complete tests on my assorted Macs.

Note that on the dual G5 tower, /usr/local/lib/libgfortran.2.dylib  
seems to be missing, under both Tiger (10.4.11) and Leopard (10.5.2).   
However, under both operating systems, /usr/local/gfortran/lib/ 
libgfortran.2.dylib exists, as does /usr/local/lib/libgfortran.3.dylib.

There is a soft link from /usr/local/lib/libgfortran.dylib to /usr/ 
local/lib/libgfortran.3.dylib .  Should numpy be looking for  
libgfortran.dylib rather than libgfortran.2.dylib?  (I'm just  
guessing; I have no idea why the file is needed.)

Bob Pyle

#################################

700 MHz G3 iBook, OSX 10.4.11:

Python 2.5.2 (r252:60911, Feb 22 2008, 07:57:53)
[GCC 4.0.1 (Apple Computer, Inc. build 5363)] on darwin
Type "help", "copyright", "credits" or "license" for more information.
 >>> import numpy as np
 >>> np.test(all=True)
Numpy is installed in /Library/Frameworks/Python.framework/Versions/ 
2.5/lib/python2.5/site-packages/numpy
Numpy version 1.1.0rc1
Python version 2.5.2 (r252:60911, Feb 22 2008, 07:57:53) [GCC 4.0.1  
(Apple Computer, Inc. build 5363)]

[ ... many successful tests ... ]

Failed importing /Library/Frameworks/Python.framework/Versions/2.5/lib/ 
python2.5/site-packages/numpy/ma/tests/test_morestats.py: No module  
named scipy.stats.distributions

[ ... more successful tests ... ]

............................................./Library/Frameworks/ 
Python.framework/Versions/2.5/lib/python2.5/site-packages/numpy/core/ 
ma.py:609: UserWarning: Cannot automatically convert masked array to  
numeric because data
     is masked in one or more locations.
   warnings.warn("Cannot automatically convert masked array to "\
E....................................................................... 
........................................................................ 
........................................................................ 
......................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................E...................
======================================================================
ERROR: check_testUfuncRegression (numpy.core.tests.test_ma.TestUfuncs)
----------------------------------------------------------------------
Traceback (most recent call last):
   File "/Library/Frameworks/Python.framework/Versions/2.5/lib/ 
python2.5/site-packages/numpy/core/tests/test_ma.py", line 691, in  
check_testUfuncRegression
     self.failUnless(eq(ur.filled(0), mr.filled(0), f))
   File "/Library/Frameworks/Python.framework/Versions/2.5/lib/ 
python2.5/site-packages/numpy/ma/core.py", line 1556, in filled
     result = self._data.copy()
   File "/Library/Frameworks/Python.framework/Versions/2.5/lib/ 
python2.5/site-packages/numpy/ma/core.py", line 1478, in _get_data
     return self.view(self._baseclass)
TypeError: Cannot change data-type for object array.

======================================================================
ERROR: check_testUfuncRegression (numpy.ma.tests.test_old_ma.TestUfuncs)
----------------------------------------------------------------------
Traceback (most recent call last):
   File "/Library/Frameworks/Python.framework/Versions/2.5/lib/ 
python2.5/site-packages/numpy/ma/tests/test_old_ma.py", line 657, in  
check_testUfuncRegression
     uf = getattr(umath, f)
NameError: global name 'umath' is not defined

----------------------------------------------------------------------
Ran 1215 tests in 14.448s

FAILED (errors=2)
<unittest._TextTestResult run=1215 errors=2 failures=0>

#################################

Dual G5 tower, OSX 10.4.11:

~ $ python
Python 2.5.2 (r252:60911, Feb 22 2008, 07:57:53)
[GCC 4.0.1 (Apple Computer, Inc. build 5363)] on darwin
Type "help", "copyright", "credits" or "license" for more information.
 >>> import numpy as np
 >>> np.test(all=True)
Numpy is installed in /Library/Frameworks/Python.framework/Versions/ 
2.5/lib/python2.5/site-packages/numpy
Numpy version 1.1.0rc1
Python version 2.5.2 (r252:60911, Feb 22 2008, 07:57:53) [GCC 4.0.1  
(Apple Computer, Inc. build 5363)]

[ ... many successful tests ... ]


Failed importing /Library/Frameworks/Python.framework/Versions/2.5/lib/ 
python2.5/site-packages/numpy/ma/tests/test_morestats.py: dlopen(/ 
Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/site- 
packages/scipy/special/_cephes.so, 2): Library not loaded: /usr/local/ 
lib/libgfortran.2.dylib
   Referenced from: /Library/Frameworks/Python.framework/Versions/2.5/ 
lib/python2.5/site-packages/scipy/special/_cephes.so
   Reason: image not found

[ ... more successful tests ... ]


............................................./Library/Frameworks/ 
Python.framework/Versions/2.5/lib/python2.5/site-packages/numpy/core/ 
ma.py:609: UserWarning: Cannot automatically convert masked array to  
numeric because data
     is masked in one or more locations.
   warnings.warn("Cannot automatically convert masked array to "\
E....................................................................... 
........................................................................ 
........................................................................ 
........................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................E...................
======================================================================
ERROR: check_testUfuncRegression (numpy.core.tests.test_ma.TestUfuncs)
----------------------------------------------------------------------
Traceback (most recent call last):
   File "/Library/Frameworks/Python.framework/Versions/2.5/lib/ 
python2.5/site-packages/numpy/core/tests/test_ma.py", line 691, in  
check_testUfuncRegression
     self.failUnless(eq(ur.filled(0), mr.filled(0), f))
   File "/Library/Frameworks/Python.framework/Versions/2.5/lib/ 
python2.5/site-packages/numpy/ma/core.py", line 1556, in filled
     result = self._data.copy()
   File "/Library/Frameworks/Python.framework/Versions/2.5/lib/ 
python2.5/site-packages/numpy/ma/core.py", line 1478, in _get_data
     return self.view(self._baseclass)
TypeError: Cannot change data-type for object array.

======================================================================
ERROR: check_testUfuncRegression (numpy.ma.tests.test_old_ma.TestUfuncs)
----------------------------------------------------------------------
Traceback (most recent call last):
   File "/Library/Frameworks/Python.framework/Versions/2.5/lib/ 
python2.5/site-packages/numpy/ma/tests/test_old_ma.py", line 657, in  
check_testUfuncRegression
     uf = getattr(umath, f)
NameError: global name 'umath' is not defined

----------------------------------------------------------------------
Ran 1217 tests in 3.004s

FAILED (errors=2)
<unittest._TextTestResult run=1217 errors=2 failures=0>
 >>>

#################################

Dual G5 tower, OSX 10.5.2:

~ $ python
Python 2.5.2 (r252:60911, Feb 22 2008, 07:57:53)
[GCC 4.0.1 (Apple Computer, Inc. build 5363)] on darwin
Type "help", "copyright", "credits" or "license" for more information.
 >>> import numpy as np
 >>> np.test(all=True)
Numpy is installed in /Library/Frameworks/Python.framework/Versions/ 
2.5/lib/python2.5/site-packages/numpy
Numpy version 1.1.0rc1
Python version 2.5.2 (r252:60911, Feb 22 2008, 07:57:53) [GCC 4.0.1  
(Apple Computer, Inc. build 5363)]

[ ... many successful tests ... ]

Failed importing /Library/Frameworks/Python.framework/Versions/2.5/lib/ 
python2.5/site-packages/numpy/ma/tests/test_morestats.py: dlopen(/ 
Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/site- 
packages/scipy/special/_cephes.so, 2): Library not loaded: /usr/local/ 
lib/libgfortran.2.dylib
   Referenced from: /Library/Frameworks/Python.framework/Versions/2.5/ 
lib/python2.5/site-packages/scipy/special/_cephes.so
   Reason: image not found

[ ... more successful tests ... ]

........................................................................ 
........................................................................ 
........................................................................ 
...............................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................E...................
======================================================================
ERROR: check_testUfuncRegression (numpy.ma.tests.test_old_ma.TestUfuncs)
----------------------------------------------------------------------
Traceback (most recent call last):
   File "/Library/Frameworks/Python.framework/Versions/2.5/lib/ 
python2.5/site-packages/numpy/ma/tests/test_old_ma.py", line 657, in  
check_testUfuncRegression
     uf = getattr(umath, f)
NameError: global name 'umath' is not defined

----------------------------------------------------------------------
Ran 1179 tests in 4.035s

FAILED (errors=1)
<unittest._TextTestResult run=1179 errors=1 failures=0>
 >>>

#################################

MacBook Pro, Intel Core Duo, OSX 10.5.2:

Last login: Sun Apr 20 13:44:38 on console
~ $ python
Python 2.5.2 (r252:60911, Feb 22 2008, 07:57:53)
[GCC 4.0.1 (Apple Computer, Inc. build 5363)] on darwin
Type "help", "copyright", "credits" or "license" for more information.
 >>> import numpy as np
 >>> np.test(all=True)
Numpy is installed in /Library/Frameworks/Python.framework/Versions/ 
2.5/lib/python2.5/site-packages/numpy
Numpy version 1.1.0rc1
Python version 2.5.2 (r252:60911, Feb 22 2008, 07:57:53) [GCC 4.0.1  
(Apple Computer, Inc. build 5363)]

[ ... many successful tests ... ]


............................................./Library/Frameworks/ 
Python.framework/Versions/2.5/lib/python2.5/site-packages/numpy/core/ 
ma.py:608: UserWarning: Cannot automatically convert masked array to  
numeric because data
     is masked in one or more locations.
   warnings.warn("Cannot automatically convert masked array to "\
E....................................................................... 
........................................................................ 
...........................................................E............ 
.....................................................................................................................................................................................................................................................................................................................................................E......................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................E...................
======================================================================
ERROR: check_testUfuncRegression (numpy.core.tests.test_ma.test_ufuncs)
----------------------------------------------------------------------
Traceback (most recent call last):
   File "/Library/Frameworks/Python.framework/Versions/2.5/lib/ 
python2.5/site-packages/numpy/core/tests/test_ma.py", line 691, in  
check_testUfuncRegression
     self.failUnless(eq(ur.filled(0), mr.filled(0), f))
   File "/Library/Frameworks/Python.framework/Versions/2.5/lib/ 
python2.5/site-packages/numpy/ma/core.py", line 1556, in filled
     result = self._data.copy()
   File "/Library/Frameworks/Python.framework/Versions/2.5/lib/ 
python2.5/site-packages/numpy/ma/core.py", line 1478, in _get_data
     return self.view(self._baseclass)
TypeError: Cannot change data-type for object array.

======================================================================
ERROR: Ticket #396
----------------------------------------------------------------------
Traceback (most recent call last):
   File "/Library/Frameworks/Python.framework/Versions/2.5/lib/ 
python2.5/site-packages/numpy/core/tests/test_regression.py", line  
600, in check_poly1d_nan_roots
     self.failUnlessRaises(np.linalg.LinAlgError,getattr,p,"r")
   File "/Library/Frameworks/Python.framework/Versions/2.5/lib/ 
python2.5/unittest.py", line 320, in failUnlessRaises
     callableObj(*args, **kwargs)
   File "/Library/Frameworks/Python.framework/Versions/2.5/lib/ 
python2.5/site-packages/numpy/lib/polynomial.py", line 661, in  
__getattr__
     return roots(self.coeffs)
   File "/Library/Frameworks/Python.framework/Versions/2.5/lib/ 
python2.5/site-packages/numpy/lib/polynomial.py", line 124, in roots
     roots = _eigvals(A)
   File "/Library/Frameworks/Python.framework/Versions/2.5/lib/ 
python2.5/site-packages/numpy/lib/polynomial.py", line 40, in _eigvals
     return eigvals(arg)
   File "/Library/Frameworks/Python.framework/Versions/2.5/lib/ 
python2.5/site-packages/scipy/linalg/decomp.py", line 378, in eigvals
     return eig(a,b=b,left=0,right=0,overwrite_a=overwrite_a)
   File "/Library/Frameworks/Python.framework/Versions/2.5/lib/ 
python2.5/site-packages/scipy/linalg/decomp.py", line 128, in eig
     a1 = asarray_chkfinite(a)
   File "/Library/Frameworks/Python.framework/Versions/2.5/lib/ 
python2.5/site-packages/numpy/lib/function_base.py", line 415, in  
asarray_chkfinite
     raise ValueError, "array must not contain infs or NaNs"
ValueError: array must not contain infs or NaNs

======================================================================
ERROR: Ticket #396
----------------------------------------------------------------------
Traceback (most recent call last):
   File "/Library/Frameworks/Python.framework/Versions/2.5/lib/ 
python2.5/site-packages/numpy/core/tests/test_regression.py", line  
600, in check_poly1d_nan_roots
     self.failUnlessRaises(np.linalg.LinAlgError,getattr,p,"r")
   File "/Library/Frameworks/Python.framework/Versions/2.5/lib/ 
python2.5/unittest.py", line 320, in failUnlessRaises
     callableObj(*args, **kwargs)
   File "/Library/Frameworks/Python.framework/Versions/2.5/lib/ 
python2.5/site-packages/numpy/lib/polynomial.py", line 661, in  
__getattr__
     return roots(self.coeffs)
   File "/Library/Frameworks/Python.framework/Versions/2.5/lib/ 
python2.5/site-packages/numpy/lib/polynomial.py", line 124, in roots
     roots = _eigvals(A)
   File "/Library/Frameworks/Python.framework/Versions/2.5/lib/ 
python2.5/site-packages/numpy/lib/polynomial.py", line 37, in _eigvals
     return eigvals(arg)
   File "/Library/Frameworks/Python.framework/Versions/2.5/lib/ 
python2.5/site-packages/scipy/linalg/decomp.py", line 378, in eigvals
     return eig(a,b=b,left=0,right=0,overwrite_a=overwrite_a)
   File "/Library/Frameworks/Python.framework/Versions/2.5/lib/ 
python2.5/site-packages/scipy/linalg/decomp.py", line 128, in eig
     a1 = asarray_chkfinite(a)
   File "/Library/Frameworks/Python.framework/Versions/2.5/lib/ 
python2.5/site-packages/numpy/lib/function_base.py", line 415, in  
asarray_chkfinite
     raise ValueError, "array must not contain infs or NaNs"
ValueError: array must not contain infs or NaNs

======================================================================
ERROR: check_testUfuncRegression (numpy.ma.tests.test_old_ma.TestUfuncs)
----------------------------------------------------------------------
Traceback (most recent call last):
   File "/Library/Frameworks/Python.framework/Versions/2.5/lib/ 
python2.5/site-packages/numpy/ma/tests/test_old_ma.py", line 657, in  
check_testUfuncRegression
     uf = getattr(umath, f)
NameError: global name 'umath' is not defined

----------------------------------------------------------------------
Ran 1221 tests in 3.267s

FAILED (errors=4)
<unittest._TextTestResult run=1221 errors=4 failures=0>





More information about the Numpy-discussion mailing list