[Python-modules-team] Bug#567457: python-scipy: mstats_basic.py:106 asserting a tuple

Greg Kochanski gpk at kochanski.org
Fri Jan 29 08:03:29 UTC 2010


Package: python-scipy
Version: 0.7.0-2+b1
Severity: minor


When installing, I get this:

Setting up python-scipy (0.7.0-2+b1) ...
/usr/lib/python2.6/dist-packages/scipy/stats/mstats_basic.py:106: SyntaxWarning: assertion is always true, perhaps remove parentheses?
  assert(output.ndim == 2, "The input should be 2D!")

This is manifestly a bug: it the parentheses make a tuple
with two entries, so you are testing that the tuple is
true.   Which it always will be.    Presumably, the intent
is to check that output.ndim==2.    As the compiler says,
the way to do that is to get rid of the parentheses.


-- System Information:
Debian Release: squeeze/sid
  APT prefers testing
  APT policy: (990, 'testing'), (500, 'testing-proposed-updates')
Architecture: i386 (i686)

Kernel: Linux 2.6.32-trunk-686 (SMP w/1 CPU core)
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  libatlas3gf-base [liblapack 3.6.0-24     Automatically Tuned Linear Algebra
ii  libblas3gf [libblas.so.3gf] 1.2-2        Basic Linear Algebra Subroutines 3
ii  libc6                       2.10.2-2     GNU C Library: Shared libraries
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.3.4-1  The GNU C++ compiler
ii  g++-4.3 [c++-compiler]        4.3.4-6    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