[NumPy-Tickets] [NumPy] #2228: ABI change in 1.6.1

NumPy Trac numpy-tickets@scipy....
Tue Oct 23 11:25:05 CDT 2012


#2228: ABI change in 1.6.1
-----------------------------------------+----------------------------------
 Reporter:  michael.s.gilbert@…          |       Owner:  somebody   
     Type:  defect                       |      Status:  new        
 Priority:  normal                       |   Milestone:  Unscheduled
Component:  numpy.core                   |     Version:  1.6.1      
 Keywords:                               |  
-----------------------------------------+----------------------------------

Old description:

> Hi, an undocumented ABI change is present in numpy 1.6.1.  This at least
> affects the Scientific.IO.NetCDF module.  numpy should get an ABI bump
> for this.
>
> So for Scientific built against numpy 1.5.1, the following demonstrates
> the problem:
>
> apt-get install python-scientific python-netcdf
> 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
>
> you should get:
> [[' ' 'C']
>  [' ' 'O']]
>
> This is from debian bug report:
> http://bugs.debian.org/685812

New description:

 Hi, an undocumented ABI change is present in numpy 1.6.1.  This at least
 affects the Scientific.IO.NetCDF module.  numpy should get an ABI bump for
 this.

 So for Scientific built against numpy 1.5.1, the following demonstrates
 the problem:
 {{{
 apt-get install python-scientific python-netcdf
 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
 }}}
 you should get:
 {{{
 [[' ' 'C']
  [' ' 'O']]
 }}}

 This is from debian bug report:
 http://bugs.debian.org/685812

--

Comment(by rgommers):

 <reformat description>

-- 
Ticket URL: <http://projects.scipy.org/numpy/ticket/2228#comment:1>
NumPy <http://projects.scipy.org/numpy>
My example project


More information about the NumPy-Tickets mailing list