Hi,
- I'm trying to load a large file (about 300MB) using pickle.load().
- The file contains a PyMl classifier object
- When I load the file on my PC it works fine (with an XP operating system).
- When I load the file on a remote computer with a windows server 2003 operating system I get a memory error.
Anyone has any idea how to fix this?
Thx,
Tal.
Search Result
Collapse
3 results in 0.0013 seconds.
Keywords
Members
Tags
-
Pickle problem : Can't pickle 'SRE_Match' object:
Hi to all, I have spent the whole morning trying, with no success to pickle an object that I have created.
The error that I get is : Can't pickle 'SRE_Match' object: <_sre.SRE_Mat ch object at 0x2a969c0ad0>
the complete stack is the following :
Traceback (most recent call last):
File "manager.py ", line 305, in ?
commandLineExec (log, parser)
File "manager.py ",... -
Pickling Unicode
Using Python 2.6, I am trying to pickle a dictionary (for Chinese pinyin) which contains both Unicode characters in the range 128-255 and 4-byte Unicode characters. I get allergic reactions from pickle.dump() under all protocols.
Here’s a simple test program:
...Code:# Program 1 (protocol 0), program 2 (protocol 2) PickleFile = codecs.open('PFile.utf', 'w', 'utf-8') Str1 = u'lǘelü' pickle.dump(Str1,