[Python-modules-team] Bug#470293: python-numpy: bug in numpy.histogram

Manuel Metz mmetz at astro.uni-bonn.de
Mon Mar 10 14:10:25 UTC 2008


Package: python-numpy
Version: 1:1.0.4-6
Severity: important
Tags: patch


There is a bug in site-packages/numpy/lib/function_base.py, line 154

The line is 
  if(any(bins[1:]-bins[:-1] < 0)):
which causes an error
  NameError: global name 'any' is not defined


It should be:
  if(bins[1:]-bins[:-1] < 0).any():

see also
  http://www.mail-archive.com/numpy-discussion@scipy.org/msg06746.html


-- System Information:
Debian Release: lenny/sid
  APT prefers oldstable
  APT policy: (500, 'oldstable'), (500, 'unstable'), (1, 'experimental')
Architecture: amd64 (x86_64)

Kernel: Linux 2.6.24.3 (SMP w/2 CPU cores)
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/bash

Versions of packages python-numpy depends on:
ii  libblas3gf [libblas.so.3gf 1.2-1.5       Basic Linear Algebra Subroutines 3
ii  libc6                      2.7-9         GNU C Library: Shared libraries
ii  libgcc1                    1:4.3.0~rc2-1 GCC support library
ii  libgfortran3               4.3.0~rc2-1   Runtime library for GNU Fortran ap
ii  liblapack3gf [liblapack.so 3.1.1-0.4     library of linear algebra routines
ii  python                     2.4.4-6       An interactive high-level object-o
ii  python-central             0.5.15-0.1    register and build utility for Pyt

python-numpy recommends no packages.

-- no debconf information





More information about the Python-modules-team mailing list