[Pythonmac-SIG] Does anyone know what is causing these errors?

Albert Chin-A-Young china at thewrittenword.com
Mon Nov 27 04:34:53 CET 2006


On Wed, Nov 22, 2006 at 04:35:07PM -0700, Todd Thal wrote:
> I finally got readline working with python2.5.  I now get these errors
> 
> I have mac ppc darwin 8.8.0 kernel
> 
> I use the
> 
> Apple's gcc
> Apple's veclib for BLAS and LAPACK
> 
> fink g77
> fink fftw
> 
> latest src of Python-2.5; numpy-1.0; and scipy-0.5.1
> 
> Almost there...arrrgghhhhh

We get some of these errors for numpy-1.0, SciPy-0.5.1, and Python
2.4.2 so I don't know how "real" they are.

> thanks,
> 
> t.
> 
> ERROR: Solve: single precision complex
> ----------------------------------------------------------------------
> Traceback (most recent call last):
> File 
> "/usr/lanl/packages/local-python.thetatest/lib/python2.5/site-packages/scipy/linsolve/umfpack/tests/test_umfpack.py", 
> line 25, in check_solve_complex_without_umfpack
>   x = linsolve.spsolve(a, b)
> File 
> "/usr/lanl/packages/local-python.thetatest/lib/python2.5/site-packages/scipy/linsolve/linsolve.py", 
> line 76, in spsolve
>   return gssv(N, lastel, data, index0, index1, b, csc, permc_spec)[0]
> TypeError: array cannot be safely cast to required type
> 
> ======================================================================
> ERROR: check loadmat case cellnest
> ----------------------------------------------------------------------
> Traceback (most recent call last):
> File 
> "/usr/lanl/packages/local-python.thetatest/lib/python2.5/site-packages/scipy/io/tests/test_mio.py", 
> line 80, in cc
>   self._check_case(name, expected)
> File 
> "/usr/lanl/packages/local-python.thetatest/lib/python2.5/site-packages/scipy/io/tests/test_mio.py", 
> line 75, in _check_case
>   self._check_level(k_label, expected, matdict[k])
> File 
> "/usr/lanl/packages/local-python.thetatest/lib/python2.5/site-packages/scipy/io/tests/test_mio.py", 
> line 33, in _check_level
>   self._check_level(level_label, ev, actual[i])
> File 
> "/usr/lanl/packages/local-python.thetatest/lib/python2.5/site-packages/scipy/io/tests/test_mio.py", 
> line 33, in _check_level
>   self._check_level(level_label, ev, actual[i])
> File 
> "/usr/lanl/packages/local-python.thetatest/lib/python2.5/site-packages/scipy/io/tests/test_mio.py", 
> line 33, in _check_level
>   self._check_level(level_label, ev, actual[i])
> File 
> "/usr/lanl/packages/local-python.thetatest/lib/python2.5/site-packages/scipy/io/tests/test_mio.py", 
> line 30, in _check_level
>   assert len(expected) == len(actual), "Different list lengths at %s" % 
> label
> TypeError: len() of unsized object
> 
> ======================================================================
> ERROR: check loadmat case object
> ----------------------------------------------------------------------
> Traceback (most recent call last):
> File 
> "/usr/lanl/packages/local-python.thetatest/lib/python2.5/site-packages/scipy/io/tests/test_mio.py", 
> line 80, in cc
>   self._check_case(name, expected)
> File 
> "/usr/lanl/packages/local-python.thetatest/lib/python2.5/site-packages/scipy/io/tests/test_mio.py", 
> line 70, in _check_case
>   matdict = loadmat(f)
> File 
> "/usr/lanl/packages/local-python.thetatest/lib/python2.5/site-packages/scipy/io/mio.py", 
> line 804, in loadmat
>   thisdict = _loadv5(fid,basename)
> File 
> "/usr/lanl/packages/local-python.thetatest/lib/python2.5/site-packages/scipy/io/mio.py", 
> line 742, in _loadv5
>   el, varname, unused = _get_element(fid, return_name_dtype=True)
> File 
> "/usr/lanl/packages/local-python.thetatest/lib/python2.5/site-packages/scipy/io/mio.py", 
> line 727, in _get_element
>   el, name = _parse_mimatrix(fid,numbytes)
> File 
> "/usr/lanl/packages/local-python.thetatest/lib/python2.5/site-packages/scipy/io/mio.py", 
> line 633, in _parse_mimatrix
>   xrange(0,len(names),namelength)]
> TypeError: only 0-d integerarrays can be converted to an index
> 
> ======================================================================
> ERROR: check loadmat case struct
> ----------------------------------------------------------------------
> Traceback (most recent call last):
> File 
> "/usr/lanl/packages/local-python.thetatest/lib/python2.5/site-packages/scipy/io/tests/test_mio.py", 
> line 80, in cc
>   self._check_case(name, expected)
> File 
> "/usr/lanl/packages/local-python.thetatest/lib/python2.5/site-packages/scipy/io/tests/test_mio.py", 
> line 70, in _check_case
>   matdict = loadmat(f)
> File 
> "/usr/lanl/packages/local-python.thetatest/lib/python2.5/site-packages/scipy/io/mio.py", 
> line 804, in loadmat
>   thisdict = _loadv5(fid,basename)
> File 
> "/usr/lanl/packages/local-python.thetatest/lib/python2.5/site-packages/scipy/io/mio.py", 
> line 742, in _loadv5
>   el, varname, unused = _get_element(fid, return_name_dtype=True)
> File 
> "/usr/lanl/packages/local-python.thetatest/lib/python2.5/site-packages/scipy/io/mio.py", 
> line 727, in _get_element
>   el, name = _parse_mimatrix(fid,numbytes)
> File 
> "/usr/lanl/packages/local-python.thetatest/lib/python2.5/site-packages/scipy/io/mio.py", 
> line 613, in _parse_mimatrix
>   xrange(0,len(names),namelength)]
> TypeError: only 0-d integerarrays can be converted to an index
> 
> ======================================================================
> ERROR: check loadmat case structarr
> ----------------------------------------------------------------------
> Traceback (most recent call last):
> File 
> "/usr/lanl/packages/local-python.thetatest/lib/python2.5/site-packages/scipy/io/tests/test_mio.py", 
> line 80, in cc
>   self._check_case(name, expected)
> File 
> "/usr/lanl/packages/local-python.thetatest/lib/python2.5/site-packages/scipy/io/tests/test_mio.py", 
> line 70, in _check_case
>   matdict = loadmat(f)
> File 
> "/usr/lanl/packages/local-python.thetatest/lib/python2.5/site-packages/scipy/io/mio.py", 
> line 804, in loadmat
>   thisdict = _loadv5(fid,basename)
> File 
> "/usr/lanl/packages/local-python.thetatest/lib/python2.5/site-packages/scipy/io/mio.py", 
> line 742, in _loadv5
>   el, varname, unused = _get_element(fid, return_name_dtype=True)
> File 
> "/usr/lanl/packages/local-python.thetatest/lib/python2.5/site-packages/scipy/io/mio.py", 
> line 727, in _get_element
>   el, name = _parse_mimatrix(fid,numbytes)
> File 
> "/usr/lanl/packages/local-python.thetatest/lib/python2.5/site-packages/scipy/io/mio.py", 
> line 613, in _parse_mimatrix
>   xrange(0,len(names),namelength)]
> TypeError: only 0-d integerarrays can be converted to an index
> 
> ======================================================================
> ERROR: check loadmat case structnest
> ----------------------------------------------------------------------
> Traceback (most recent call last):
> File 
> "/usr/lanl/packages/local-python.thetatest/lib/python2.5/site-packages/scipy/io/tests/test_mio.py", 
> line 80, in cc
>   self._check_case(name, expected)
> File 
> "/usr/lanl/packages/local-python.thetatest/lib/python2.5/site-packages/scipy/io/tests/test_mio.py", 
> line 70, in _check_case
>   matdict = loadmat(f)
> File 
> "/usr/lanl/packages/local-python.thetatest/lib/python2.5/site-packages/scipy/io/mio.py", 
> line 804, in loadmat
>   thisdict = _loadv5(fid,basename)
> File 
> "/usr/lanl/packages/local-python.thetatest/lib/python2.5/site-packages/scipy/io/mio.py", 
> line 742, in _loadv5
>   el, varname, unused = _get_element(fid, return_name_dtype=True)
> File 
> "/usr/lanl/packages/local-python.thetatest/lib/python2.5/site-packages/scipy/io/mio.py", 
> line 727, in _get_element
>   el, name = _parse_mimatrix(fid,numbytes)
> File 
> "/usr/lanl/packages/local-python.thetatest/lib/python2.5/site-packages/scipy/io/mio.py", 
> line 613, in _parse_mimatrix
>   xrange(0,len(names),namelength)]
> TypeError: only 0-d integerarrays can be converted to an index
> 
> ======================================================================
> FAIL: check_rvs (scipy.stats.tests.test_distributions.test_randint)
> ----------------------------------------------------------------------
> Traceback (most recent call last):
> File 
> "/usr/lanl/packages/local-python.thetatest/lib/python2.5/site-packages/scipy/stats/tests/test_distributions.py", 
> line 84, in check_rvs
>   assert isinstance(val, numpy.ScalarType),`type(val)`
> AssertionError: <type 'numpy.ndarray'>
> 
> ======================================================================
> FAIL: check loadmat case vec
> ----------------------------------------------------------------------
> Traceback (most recent call last):
> File 
> "/usr/lanl/packages/local-python.thetatest/lib/python2.5/site-packages/scipy/io/tests/test_mio.py", 
> line 80, in cc
>   self._check_case(name, expected)
> File 
> "/usr/lanl/packages/local-python.thetatest/lib/python2.5/site-packages/scipy/io/tests/test_mio.py", 
> line 74, in _check_case
>   assert k in matdict, "Missing key at %s" % k_label
> AssertionError: Missing key at Test 'vec', 
> file:/usr/lanl/packages/local-python.thetatest/lib/python2.5/site-packages/scipy/io/tests/./data/testvec_4_GLNX86.mat, 
> variable fit_params
> 
> ----------------------------------------------------------------------
> Ran 1567 tests in 5.337s
> 
> FAILED (failures=2, errors=6)
> <unittest.TextTestRunner object at 0x3d956f0>
> 
> 

-- 
albert chin (china at thewrittenword.com)


More information about the Pythonmac-SIG mailing list