update numpy to 1.8.2 in trusty

Bug #1358870 reported by Julian Taylor
8
This bug affects 1 person
Affects Status Importance Assigned to Milestone
python-numpy (Ubuntu)
Fix Released
Undecided
Unassigned
Trusty
Fix Released
Undecided
Unassigned

Bug Description

[Impact] numpy has recently released a bugfix release fixing several bugs that are severe or hard to workaround.
Full changelog:

* gh-4836: partition produces wrong results for multiple selections in equal ranges
* gh-4656: Make fftpack._raw_fft threadsafe
* gh-4628: incorrect argument order to _copyto in in np.nanmax, np.nanmin
* gh-4642: Hold GIL for converting dtypes types with fields
* gh-4733: fix np.linalg.svd(b, compute_uv=False)
* gh-4853: avoid unaligned simd load on reductions on i386
* gh-4722: Fix seg fault converting empty string to object
* gh-4613: Fix lack of NULL check in array_richcompare
* gh-4774: avoid unaligned access for strided byteswap
* gh-650: Prevent division by zero when creating arrays from some buffers
* gh-4602: ifort has issues with optimization flag O2, use O1

[Test case]
the partition issue is the most severe:

python
d = np.array([0, 1, 2, 3, 4, 5, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7,7, 7, 7, 7, 7, 9])
kth = [0, 3, 19, 20]
np.partition(d, kth)[kth]

output:
array([7, 3, 7, 7])

expected:
(0, 3, 7, 7)

[Regression potential]
low, the fixes where intentionally kept simple to avoid regressions.
the test coverage of numpy is good and most of its dependencies (scipy, pandas, pytables, ..) have tested the release via their own extensive testsuites.

Julian Taylor (jtaylor)
description: updated
Revision history for this message
Julian Taylor (jtaylor) wrote :
Revision history for this message
Julian Taylor (jtaylor) wrote :
Revision history for this message
Matthias Klose (doko) wrote :

this looks ok from my side

Revision history for this message
Iain Lane (laney) wrote :

Uploaded, cheers

Changed in python-numpy (Ubuntu):
status: New → Incomplete
status: Incomplete → In Progress
Changed in python-numpy (Ubuntu Trusty):
status: New → In Progress
Changed in python-numpy (Ubuntu):
status: In Progress → Fix Released
Revision history for this message
Chris J Arges (arges) wrote : Please test proposed package

Hello Julian, or anyone else affected,

Accepted python-numpy into trusty-proposed. The package will build now and be available at http://launchpad.net/ubuntu/+source/python-numpy/1:1.8.2-0ubuntu0.1 in a few hours, and then in the -proposed repository.

Please help us by testing this new package. See https://wiki.ubuntu.com/Testing/EnableProposed for documentation how to enable and use -proposed. Your feedback will aid us getting this update out to other Ubuntu users.

If this package fixes the bug for you, please add a comment to this bug, mentioning the version of the package you tested, and change the tag from verification-needed to verification-done. If it does not fix the bug for you, please add a comment stating that, and change the tag to verification-failed. In either case, details of your testing will help us make a better decision.

Further information regarding the verification process can be found at https://wiki.ubuntu.com/QATeam/PerformingSRUVerification . Thank you in advance!

Changed in python-numpy (Ubuntu Trusty):
status: In Progress → Fix Committed
tags: added: verification-needed
Revision history for this message
Sebastien Bacher (seb128) wrote :

that got uploaded, unsubscribing the sponsors

Revision history for this message
Mathew Hodson (mhodson) wrote :

python-numpy and python3-numpy 1:1.8.2-0ubuntu0.1 produce the expected output for the test case.

Python 2.7.6 (default, Mar 22 2014, 22:59:56)
[GCC 4.8.2] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> import numpy as np
>>> d = np.array([0, 1, 2, 3, 4, 5, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7,7, 7, 7, 7, 7, 9])
>>> kth = [0, 3, 19, 20]
>>> np.partition(d, kth)[kth]
array([0, 3, 7, 7])

Python 3.4.0 (default, Apr 11 2014, 13:05:11)
[GCC 4.8.2] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> import numpy as np
>>> d = np.array([0, 1, 2, 3, 4, 5, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7,7, 7, 7, 7, 7, 9])
>>> kth = [0, 3, 19, 20]
>>> np.partition(d, kth)[kth]
array([0, 3, 7, 7])

tags: added: verification-done
removed: verification-needed
Revision history for this message
Brian Murray (brian-murray) wrote :

I did find this new crash about python-numpy in the Error Tracker:

https://errors.ubuntu.com/problem/8e5582acee98219d95d45e3703a8c64c530c0e96

Is it worth worrying about?

Revision history for this message
Brian Murray (brian-murray) wrote :

I discussed this with jtaylor on irc and he indicated it isn't.

Revision history for this message
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package python-numpy - 1:1.8.2-0ubuntu0.1

---------------
python-numpy (1:1.8.2-0ubuntu0.1) trusty; urgency=medium

  * New upstream bugfix release (LP: #1358870)
 -- Julian Taylor <email address hidden> Mon, 15 Sep 2014 18:05:27 +0100

Changed in python-numpy (Ubuntu Trusty):
status: Fix Committed → Fix Released
Revision history for this message
Brian Murray (brian-murray) wrote : Update Released

The verification of the Stable Release Update for python-numpy has completed successfully and the package has now been released to -updates. Subsequently, the Ubuntu Stable Release Updates Team is being unsubscribed and will not receive messages about this bug report. In the event that you encounter a regression using the package from -updates please report a new bug using ubuntu-bug and tag the bug report regression-update so we can easily find any regressions.

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.