python-netcdf segmentation fault when setting attributes

Bug #1005571 reported by James Maddison
This bug report is a duplicate of:  Bug #1041302: python-scientific needs rebuilding. Edit Remove
12
This bug affects 2 people
Affects Status Importance Assigned to Milestone
python-scientific (Ubuntu)
Confirmed
Undecided
Unassigned

Bug Description

Tested on Ubuntu Precise 64 bit. The following code produces a segmentation fault:

#!/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()

The following avoids a segmentation fault, but produces an unexpected Python error:

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

$ ./test_netcdf
Traceback (most recent call last):
  File "./test_netcdf", line 5, in <module>
    handle.test = 1.0
ValueError: Must be a datetime.timedelta object

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

Status changed to 'Confirmed' because the bug affects multiple users.

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

looks like same issue as bug 1041302 and is solved by rebuilding

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.