[Numpy-discussion] anyone compiling on IRIX 6.5

David Cournapeau david@ar.media.kyoto-u.ac...
Wed Oct 24 03:34:31 CDT 2007


fdu.xiaojf@gmail.com wrote:
> David Cournapeau wrote:
>  >> Python 2.4.4 (#2, May 17 2004, 22:47:37) [C] on irix6
>  >> Type "help", "copyright", "credits" or "license" for more information.
>  >>>>> from numpy import *
>  >> Running from numpy source directory.
>  > Here is the problem: this means numpy will NOT work. Two possibilities:
>  >     - you really are in numpy source directory (i.e the directory where
>  > the setup.py file is): then launch python from another directory, and
>  > try importing again.
>
> Oh, yes, I was in the numpy source directory.
>
>  >      - you are not in numpy source directory: there is a problem
>  > somewhere in the build system I should correct.
>  >
>  > cheers,
>  >
>  > David
>
>
> I changed directory, and do the following test:
>
> """
> Python 2.4.4 (#2, May 17 2004, 22:47:37) [C] on irix6
> Type "help", "copyright", "credits" or "license" for more information.
>  >>> import numpy
> Warning: Error importing pyext, error was ctypes is not available.
>  >>> numpy.test()
> Numpy is installed in /disk2/jfxiao/local/lib/python2.4/site-packages/numpy
> Numpy version 1.0.4.dev4276
> Python version 2.4.4 (#2, May 17 2004, 22:47:37) [C]
>    Found 10/10 tests for numpy.core.defmatrix
>    Found 36/36 tests for numpy.core.ma
>    Found 221/221 tests for numpy.core.multiarray
>    Found 62/62 tests for numpy.core.numeric
>    Found 31/31 tests for numpy.core.numerictypes
>    Found 12/12 tests for numpy.core.records
>    Found 6/6 tests for numpy.core.scalarmath
>    Found 14/14 tests for numpy.core.umath
>    Found 4/4 tests for numpy.ctypeslib
>    Found 5/5 tests for numpy.distutils.misc_util
>    Found 1/1 tests for numpy.fft.fftpack
>    Found 3/3 tests for numpy.fft.helper
>    Found 9/9 tests for numpy.lib.arraysetops
>    Found 46/46 tests for numpy.lib.function_base
>    Found 5/5 tests for numpy.lib.getlimits
>    Found 4/4 tests for numpy.lib.index_tricks
>    Found 3/3 tests for numpy.lib.polynomial
>    Found 49/49 tests for numpy.lib.shape_base
>    Found 14/14 tests for numpy.lib.twodim_base
>    Found 43/43 tests for numpy.lib.type_check
>    Found 1/1 tests for numpy.lib.ufunclike
>    Found 40/40 tests for numpy.linalg
>    Found 2/2 tests for numpy.random
>    Found 1/1 tests for numpy.scons_fake.pyext.spam
>    Found 0/0 tests for __main__
> ........................................................................................................................................................................................................................................................................................................................................................................................................F.....................................................................................................................................................................................................................................................................................................sh: 
> dir:  not found
> .
> ======================================================================
> FAIL: test_divideerr (numpy.core.tests.test_numeric.test_seterr)
> ----------------------------------------------------------------------
> Traceback (most recent call last):
>    File 
> "/disk2/jfxiao/local/lib/python2.4/site-packages/numpy/core/tests/test_numeric.py", 
> line 196, in test_divideerr
>      self.fail()
> AssertionError
>
> ----------------------------------------------------------------------
> Ran 687 tests in 4.659s
>
> FAILED (failures=1)
> <unittest._TextTestResult run=687 errors=0 failures=1>
>  >>> a = numpy.array(range(10))
>  >>> a
> array([0, 1, 2, 3, 4, 5, 6, 7, 8, 9])
>  >>> b = a*a
>  >>> b
> array([ 0,  1,  4,  9, 16, 25, 36, 49, 64, 81])
>  >>>
> """
>   
Ok. You can safely ignore the error importing pyext, as well as dir not 
found. The divideerr, I don't know what it is, I will check this. I am 
happy that IRIX works without touching it, though :)

cheers,

David


More information about the Numpy-discussion mailing list