Dear all,
I have the following error:
"CPickle.dump(l oclist,fout) Memory Error". This error occurs when I am trying to use the function "Locations_to_f ile" (see below) as I think my object loclist is too big.
Any suggestions please. Thanks.
I have the following error:
"CPickle.dump(l oclist,fout) Memory Error". This error occurs when I am trying to use the function "Locations_to_f ile" (see below) as I think my object loclist is too big.
Code:
def Locations_to_file(loclist,fname):
'''Routine to help write a list of location objects to a file'''
try:
fount = open(fname,"wb")
cPickle.dump(loclist,fout) # this is the line it complains about
fout.close()
except IOError, e:
raise(e)
#Locations_to file
Comment