python-scientific needs rebuilding

Bug #1041302 reported by Marcin Dulak
24
This bug affects 3 people
Affects Status Importance Assigned to Milestone
python-scientific (Debian)
Fix Released
Unknown
python-scientific (Ubuntu)
Fix Released
Undecided
Unassigned
Precise
Fix Released
Undecided
Unassigned

Bug Description

Impact:
due to a yet unknown incompatibility with its dependencies several functionalities of python-scientific are broken and give unclear error message.
A rebuild fixes the issues.

TEST CASE:
python -c "import numpy as np; import Scientific.IO.NetCDF as nc; ncf = nc.NetCDFFile('t.nc','w'); ncf.createDimension('dim2', 2); ncf.createDimension('n',2); sym = ncf.createVariable('d','c',('n','dim2')); sym[:] = [' C', ' O']; print sym[:]"

Traceback (most recent call last):
  File "<string>", line 1, in <module>
ValueError: could not convert string to float: C

expected:
[[' ' 'C']
 [' ' 'O']]

TEST CASE:
should not crash:

#!/usr/bin/env python
import numpy
import Scientific.IO.NetCDF as netcdf
handle = netcdf.NetCDFFile("test.nc", "w")
handle.test = numpy.array(1.0)
handle.close()

Regression potential:
Only a rebuild no change to the source.

original report:
1.
Description: Ubuntu 12.04.1 LTS
Release: 12.04

2.
python-scientific:
  Installed: 2.8-2build1
  Candidate: 2.8-2build1
  Version table:
 *** 2.8-2build1 0
        500 http://dk.archive.ubuntu.com/ubuntu/ precise/universe amd64 Packages
        100 /var/lib/dpkg/status

3.
python -c "import numpy as np; import Scientific.IO.NetCDF as nc; ncf = nc.NetCDFFile('t.nc','w'); ncf.createDimension('dim2', 2); ncf.createDimension('n',2); sym = ncf.createVariable('d','c',('n','dim2')); sym[:] = [' C', ' O']; print sym[:]"

Traceback (most recent call last):
  File "<string>", line 1, in <module>
ValueError: could not convert string to float: C

4.
This is probably due to python-scientific being built with an older version of python-numpy (or python?).
After rebuilding python-scientific according to http://www.debian-administration.org/articles/20
and installing the resulting python-netcdf the above one-liner works.

Revision history for this message
Julian Taylor (jtaylor) wrote :

quantal was rebuilt in the meantime and is not affected

Changed in python-scientific (Ubuntu):
status: New → Fix Released
Changed in python-scientific (Ubuntu Precise):
status: New → Confirmed
Julian Taylor (jtaylor)
description: updated
Revision history for this message
Julian Taylor (jtaylor) wrote :

I have uploaded a no change rebuild to precise-proposed. Please test it when it is accepted.

Changed in python-scientific (Debian):
status: Unknown → New
Changed in python-scientific (Debian):
status: New → Incomplete
Revision history for this message
Scott Kitterman (kitterman) wrote : Please test proposed package

Hello Marcin, or anyone else affected,

Accepted into precise-proposed. The package will build now and be available in a few hours 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 change the bug tag from verification-needed to verification-done. If it does not, 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-scientific (Ubuntu Precise):
status: Confirmed → Fix Committed
tags: added: verification-needed
Revision history for this message
Marcin Dulak (marcin-dulak) wrote :

The version from -proposed repository fixes the bug for me:
sudo apt-get install python-scientific/precise-proposed
...
python-scientific is already the newest version.
Selected version '2.8-2ubuntu0.12.04.1' (Ubuntu:12.04/precise-proposed [all]) for 'python-scientific'
...

tags: added: verification-done
removed: verification-needed
Revision history for this message
James Maddison (jamesmadd) wrote :

The proposed package fixes issues I've encountered with python-netcdf (bug #1005571).

Revision history for this message
Adam Conrad (adconrad) wrote : Update Released

The verification of this Stable Release Update 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 regresssions.

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

This bug was fixed in the package python-scientific - 2.8-2ubuntu0.12.04.1

---------------
python-scientific (2.8-2ubuntu0.12.04.1) precise-proposed; urgency=low

  * No change rebuild to fix compatibility issues (LP: #1041302)
 -- Julian Taylor <email address hidden> Fri, 24 Aug 2012 21:13:48 +0200

Changed in python-scientific (Ubuntu Precise):
status: Fix Committed → Fix Released
Changed in python-scientific (Debian):
status: Incomplete → Confirmed
Changed in python-scientific (Debian):
status: Confirmed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Duplicates of this bug

Other bug subscribers

Remote bug watches

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