Debian Bug report logs - #470293
python-numpy: bug in numpy.histogram

version graph

Package: python-numpy; Maintainer for python-numpy is Sandro Tosi <morph@debian.org>; Source for python-numpy is src:python-numpy (PTS, buildd, popcon).

Reported by: Manuel Metz <mmetz@astro.uni-bonn.de>

Date: Mon, 10 Mar 2008 14:12:01 UTC

Severity: important

Tags: patch

Found in version python-numpy/1:1.0.4-6

Fixed in version python-numpy/1:1.0.4-8

Done: Ondrej Certik <ondrej@certik.cz>

Bug is archived. No further changes may be made.

Toggle useless messages

View this report as an mbox folder, status mbox, maintainer mbox


Report forwarded to debian-bugs-dist@lists.debian.org, Debian Python Modules Team <python-modules-team@lists.alioth.debian.org>:
Bug#470293; Package python-numpy. (full text, mbox, link).


Acknowledgement sent to Manuel Metz <mmetz@astro.uni-bonn.de>:
New Bug report received and forwarded. Copy sent to Debian Python Modules Team <python-modules-team@lists.alioth.debian.org>. (full text, mbox, link).


Message #5 received at submit@bugs.debian.org (full text, mbox, reply):

From: Manuel Metz <mmetz@astro.uni-bonn.de>
To: Debian Bug Tracking System <submit@bugs.debian.org>
Subject: python-numpy: bug in numpy.histogram
Date: Mon, 10 Mar 2008 15:10:25 +0100
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




Information forwarded to debian-bugs-dist@lists.debian.org, Debian Python Modules Team <python-modules-team@lists.alioth.debian.org>:
Bug#470293; Package python-numpy. (full text, mbox, link).


Acknowledgement sent to "Ondrej Certik" <ondrej@certik.cz>:
Extra info received and forwarded to list. Copy sent to Debian Python Modules Team <python-modules-team@lists.alioth.debian.org>. (full text, mbox, link).


Message #10 received at 470293@bugs.debian.org (full text, mbox, reply):

From: "Ondrej Certik" <ondrej@certik.cz>
To: "Manuel Metz" <mmetz@astro.uni-bonn.de>, 470293@bugs.debian.org
Subject: Re: Bug#470293: python-numpy: bug in numpy.histogram
Date: Mon, 10 Mar 2008 15:38:04 +0100
On Mon, Mar 10, 2008 at 3:10 PM, Manuel Metz <mmetz@astro.uni-bonn.de> wrote:
> 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

Thanks for the bugreport. This is fixed in the upstream svn. Upstream
should release a new version of numpy soon, so then it will be fixed.
If you want to have it fixed earlier, feel free to commit a patch with
this into the numpy debian svn (see the Vcs-svn field) and I'll upload
a new revision. Add it to debian/patches.

Ondrej




Information forwarded to debian-bugs-dist@lists.debian.org, Debian Python Modules Team <python-modules-team@lists.alioth.debian.org>:
Bug#470293; Package python-numpy. (full text, mbox, link).


Acknowledgement sent to Manuel Metz <mmetz@astro.uni-bonn.de>:
Extra info received and forwarded to list. Copy sent to Debian Python Modules Team <python-modules-team@lists.alioth.debian.org>. (full text, mbox, link).


Message #15 received at 470293@bugs.debian.org (full text, mbox, reply):

From: Manuel Metz <mmetz@astro.uni-bonn.de>
To: Ondrej Certik <ondrej@certik.cz>
Cc: 470293@bugs.debian.org
Subject: Re: Bug#470293: python-numpy: bug in numpy.histogram
Date: Tue, 11 Mar 2008 16:33:44 +0100
Ondrej Certik wrote:
> On Mon, Mar 10, 2008 at 3:10 PM, Manuel Metz <mmetz@astro.uni-bonn.de> wrote:
>> 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
> 
> Thanks for the bugreport. This is fixed in the upstream svn. Upstream
> should release a new version of numpy soon, so then it will be fixed.
> If you want to have it fixed earlier, feel free to commit a patch with
> this into the numpy debian svn (see the Vcs-svn field) and I'll upload
> a new revision. Add it to debian/patches.
> 
> Ondrej

Hi,
okay, I've seen that there are plans to release numpy 1.0.5 on Wednesday 
(tomorrow). So I think a patch is not needed.

Manuel




Tags added: pending Request was from akumar@users.alioth.debian.org to control@bugs.debian.org. (Wed, 23 Apr 2008 13:03:09 GMT) (full text, mbox, link).


Reply sent to Ondrej Certik <ondrej@certik.cz>:
You have taken responsibility. (full text, mbox, link).


Notification sent to Manuel Metz <mmetz@astro.uni-bonn.de>:
Bug acknowledged by developer. (full text, mbox, link).


Message #22 received at 470293-close@bugs.debian.org (full text, mbox, reply):

From: Ondrej Certik <ondrej@certik.cz>
To: 470293-close@bugs.debian.org
Subject: Bug#470293: fixed in python-numpy 1:1.0.4-8
Date: Wed, 30 Apr 2008 12:17:03 +0000
Source: python-numpy
Source-Version: 1:1.0.4-8

We believe that the bug you reported is fixed in the latest version of
python-numpy, which is due to be installed in the Debian FTP archive:

python-numpy-dbg_1.0.4-8_i386.deb
  to pool/main/p/python-numpy/python-numpy-dbg_1.0.4-8_i386.deb
python-numpy-doc_1.0.4-8_all.deb
  to pool/main/p/python-numpy/python-numpy-doc_1.0.4-8_all.deb
python-numpy-ext_1.0.4-8_all.deb
  to pool/main/p/python-numpy/python-numpy-ext_1.0.4-8_all.deb
python-numpy_1.0.4-8.diff.gz
  to pool/main/p/python-numpy/python-numpy_1.0.4-8.diff.gz
python-numpy_1.0.4-8.dsc
  to pool/main/p/python-numpy/python-numpy_1.0.4-8.dsc
python-numpy_1.0.4-8_i386.deb
  to pool/main/p/python-numpy/python-numpy_1.0.4-8_i386.deb



A summary of the changes between this version and the previous one is
attached.

Thank you for reporting the bug, which will now be closed.  If you
have further comments please address them to 470293@bugs.debian.org,
and the maintainer will reopen the bug report if appropriate.

Debian distribution maintenance software
pp.
Ondrej Certik <ondrej@certik.cz> (supplier of updated python-numpy package)

(This message was generated automatically at their request; if you
believe that there is a problem with it please contact the archive
administrators by mailing ftpmaster@debian.org)


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Format: 1.8
Date: Wed, 30 Apr 2008 13:52:37 +0200
Source: python-numpy
Binary: python-numpy python-numpy-dbg python-numpy-ext python-numpy-doc
Architecture: source all i386
Version: 1:1.0.4-8
Distribution: unstable
Urgency: medium
Maintainer: Debian Python Modules Team <python-modules-team@lists.alioth.debian.org>
Changed-By: Ondrej Certik <ondrej@certik.cz>
Description: 
 python-numpy - Numerical Python adds a fast array facility to the Python languag
 python-numpy-dbg - Fast array facility to the Python language (debug extension)
 python-numpy-doc - NumPy documentation
 python-numpy-ext - NumPy adds a fast array facility to the Python language
Closes: 470293 477243 478496
Changes: 
 python-numpy (1:1.0.4-8) unstable; urgency=medium
 .
   [ Kumar Appaiah ]
   * debian/rules:
     + Add the --single-version-externally-managed flag.
   * debian/patches/03_histogram_fix.diff:
     + Patch from Manuel Metz to fix numpy.histogram. (Closes: #470293)
   * debian/python-numpy.install:
     + Install the egg-info file. (Closes: #477243)
   * debian/control:
     + Update Kumar Appaiah's e-mail address to the debian.org
       address.
 .
   [ Chris AtLee ]
   * debian/control
     + Update description to clarify relationship between numpy and
       python-(numarray|numeric).
 .
   [ Kumar Appaiah ]
   * debian/rules: Fix symlinks for include file location change
     due to pycentral modification. (Closes: #478496)
Checksums-Sha1: 
 06dce8a39db8066048c9cfcc8b18671b6b664613 1733 python-numpy_1.0.4-8.dsc
 a2fe2b721bed9d529f2f2d0ba01b8b5f463ee9ce 8800 python-numpy_1.0.4-8.diff.gz
 c57d8911dbeebaa87f3c4d34ae1736c1c62509ae 5928 python-numpy-ext_1.0.4-8_all.deb
 26ac825e8c99b16670ccae73c41584efff720dee 90006 python-numpy-doc_1.0.4-8_all.deb
 7bc9de663d395133c0cec3135d2e8d25abbc8e7f 1477728 python-numpy_1.0.4-8_i386.deb
 5032b705af5a4e98bdb7aa4ff3307b2b0bf18a3f 3624168 python-numpy-dbg_1.0.4-8_i386.deb
Checksums-Sha256: 
 12e205f23c631ef3a8845ebe2e822b757b5e63e1dd38e4142c36745bbd8488e5 1733 python-numpy_1.0.4-8.dsc
 4967b5396ffc0dbc738445536ba41f91396e510d70ea87f3fc85d2c48ce16710 8800 python-numpy_1.0.4-8.diff.gz
 82fd2ee4e8e5cf55ab78bdc3dc81ad6a6e8e60091c3f176c2064c9306821d4c1 5928 python-numpy-ext_1.0.4-8_all.deb
 cd86e72a818721a597f31aa9f5931e79cb4c0e725e73a6e05bddc1569eeaa02c 90006 python-numpy-doc_1.0.4-8_all.deb
 d91b7a1cc6c0c60937c6b48a0f801f864b59c275a0ec36d1c93f52b1aeab343f 1477728 python-numpy_1.0.4-8_i386.deb
 d615e2c08b6169c8667d5818ebf7b79239dbcce7793620b3012775e7df376011 3624168 python-numpy-dbg_1.0.4-8_i386.deb
Files: 
 2737a5b0d7bb5f6c8f991e18954e26be 1733 python optional python-numpy_1.0.4-8.dsc
 d3ec7ddbe9cdebdedbf06d1710aa42a4 8800 python optional python-numpy_1.0.4-8.diff.gz
 aca349202b40e4cc1d91de3433afff2c 5928 python optional python-numpy-ext_1.0.4-8_all.deb
 a8fb736bde6ee2e6ba9d476086e75d8e 90006 doc optional python-numpy-doc_1.0.4-8_all.deb
 64c4b75f4a7fdf719c3f6a15b82d2cf8 1477728 python optional python-numpy_1.0.4-8_i386.deb
 ceaa7e49918ccb4a5f409d49e057c80d 3624168 python extra python-numpy-dbg_1.0.4-8_i386.deb

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.6 (GNU/Linux)

iD8DBQFIGGEiKQ++Uu6gdgkRAh48AJ9ykkGcYrKr4deT7mIyQMyrDekD+ACaAn9e
BFvqFQwotm/6ppA365My74E=
=n9RA
-----END PGP SIGNATURE-----





Bug archived. Request was from Debbugs Internal Request <owner@bugs.debian.org> to internal_control@bugs.debian.org. (Wed, 04 Jun 2008 07:35:45 GMT) (full text, mbox, link).


Send a report that this bug log contains spam.


Debian bug tracking system administrator <owner@bugs.debian.org>. Last modified: Thu Jan 11 00:39:32 2018; Machine Name: buxtehude

Debian Bug tracking system

Debbugs is free software and licensed under the terms of the GNU Public License version 2. The current version can be obtained from https://bugs.debian.org/debbugs-source/.

Copyright © 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson, 2005-2017 Don Armstrong, and many other contributors.