I am using cPickle
to pickle a huge output. It is a numpy array shaped (4000,600,600)
.
Unfortunately, there is a well-documented problem using Python2.7
and cPickle
this way, with the error output:
SystemError: error return without exception set
This error has been solved however in Python3.4.
Please see here for details: https://github.com/numpy/numpy/issues/2396
I could just install the modules used and dependencies using Python3.4 and run the program, right? Unfortunately, there are various problems using Python 3.4 with this project. Various python modules do not have OpenMP and run into problems, etc.
Question 1:
I have tried breaking up the array and pickling it in small parts. I'm still running into issues.
What size should the array be such that cPickle
still functions?
Question 2: How can I quickly output this file to be readable to another Python script/IPython notebook?