[NumPy-Tickets] [NumPy] #1803: ndarray dump function (and straight cPickle) fails for large arrays

NumPy Trac numpy-tickets@scipy....
Tue Apr 19 02:49:55 CDT 2011


#1803: ndarray dump function (and straight cPickle) fails for large arrays
----------------------------+-----------------------------------------------
 Reporter:  meawoppl        |       Owner:  somebody   
     Type:  defect          |      Status:  new        
 Priority:  normal          |   Milestone:  Unscheduled
Component:  Other           |     Version:  1.5.1      
 Keywords:  ndarray pickle  |  
----------------------------+-----------------------------------------------
 a = zeros((300000, 1000))
 f = open("test.pkl", "w")
 cPickle.dump(a, f)
 -------------------
 SystemError           Traceback (most recent call last)

 /home/kddcup/code/matt/svd-projection/take5/<ipython console> in
 <module>()

 SystemError: error return without exception set

 Or using the .dump function:

 a.dump("test.pkl")
 --------------------------------------------------
 SystemError            Traceback (most recent call last)

 /home/kddcup/code/matt/svd-projection/take5/<ipython console> in
 <module>()

 SystemError: NULL result without error in PyObject_Call

 I am not sure if this is a numpy or Pickle/cPickle glitch.  In either
 case, a more instructive error message would certainly help.  I think the
 problem only happens for arrays larger than 2**(32-1) bytes but I would
 have to experiment more to be sure.

-- 
Ticket URL: <http://projects.scipy.org/numpy/ticket/1803>
NumPy <http://projects.scipy.org/numpy>
My example project


More information about the NumPy-Tickets mailing list