|
From: Eduardo L. C. <le...@jo...> - 2010-04-08 14:38:31
|
Hi,
I am trying to use the pool method of
multiprocessing. Each process has
as input a number and a class. This class has
a sparse matrix (pysparse ll_mat) inside it.
The problem is that the class must be pickled
and depickled when moving around processes and
I am having the following error:
Exception in thread Thread-1:
Traceback (most recent call last):
File "/usr/lib/python2.6/threading.py", line 532, in __bootstrap_inner
self.run()
File "/usr/lib/python2.6/threading.py", line 484, in run
self.__target(*self.__args, **self.__kwargs)
File "/usr/lib/python2.6/multiprocessing/pool.py", line 225, in
_handle_tasks
put(task)
UnpickleableError: Cannot pickle <type 'll_mat'> objects
I am searching all around and could not find any tip to
solve this problem. Any clue ?
Thanks,
Eduardo.
--
Esta mensagem foi verificada pelo sistema de antivírus e
acredita-se estar livre de perigo.
|