[Python-modules-team] Bug#579041: python-scipy: Sparse (lil) assignment bug

Johannes Hjorth hjorth at nada.kth.se
Sat Apr 24 17:02:00 UTC 2010

Package: python-scipy
Version: 0.7.1-1
Severity: normal

from scipy import sparse
a = sparse.lil_matrix((10,10))
a[:,2] = 1 # Works
a[4,:] = 3 # Fails

Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "/usr/lib/python2.5/site-packages/scipy/sparse/lil.py", line 313, in __setitem__
    self._insertat3(row, data, j, x)
  File "/usr/lib/python2.5/site-packages/scipy/sparse/lil.py", line 279, in _insertat3
    self._insertat2(row, data, jj, x)
  File "/usr/lib/python2.5/site-packages/scipy/sparse/lil.py", line 246, in _insertat2
    raise ValueError('setting an array element with a sequence')
ValueError: setting an array element with a sequence

-- System Information:
Debian Release: squeeze/sid
  APT prefers testing
  APT policy: (500, 'testing')
Architecture: amd64 (x86_64)

Kernel: Linux 2.6.32-trunk-amd64 (SMP w/16 CPU cores)
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash

Versions of packages python-scipy depends on:
ii  libamd2.2.0                 1:3.4.0-1    approximate minimum degree orderin
ii  libblas3gf [libblas.so.3gf] 1.2-7        Basic Linear Algebra Reference imp
ii  libc6                       2.10.2-6     Embedded GNU C Library: Shared lib
ii  libgcc1                     1:4.4.2-9    GCC support library
ii  libgfortran3                4.4.2-9      Runtime library for GNU Fortran ap
ii  liblapack3gf [liblapack.so. 3.2.1-2      library of linear algebra routines
ii  libstdc++6                  4.4.2-9      The GNU Standard C++ Library v3
ii  libumfpack5.4.0             1:3.4.0-1    sparse LU factorization library
ii  python                      2.5.4-9      An interactive high-level object-o
ii  python-central              0.6.14+nmu2  register and build utility for Pyt
ii  python-numpy                1:1.3.0-3+b1 Numerical Python adds a fast array

Versions of packages python-scipy recommends:
ii  g++ [c++-compiler]            4:4.4.2-3  The GNU C++ compiler
ii  g++-4.3 [c++-compiler]        4.3.4-8    The GNU C++ compiler
ii  g++-4.4 [c++-compiler]        4.4.2-9    The GNU C++ compiler

Versions of packages python-scipy suggests:
pn  python-profiler               <none>     (no description available)

-- no debconf information

More information about the Python-modules-team mailing list