questions about multiprocessing

Robert Kern robert.kern at gmail.com
Mon Mar 7 19:37:40 EST 2011


On 3/7/11 3:27 PM, Vincent Ren wrote:
> On Mar 7, 9:21 pm, Jean-Michel Pichavant<jeanmic... at sequans.com>
> wrote:
>
>> It's a mistake many beginners do, I don't understand why, but it's a
>> very common thing. RTFM should stand for "Read The Formidable (error)
>> Message" as  well.
>> Your url is invalid, check your url definition.
>>
>> JM
>
> I've fixed that problem. But I got a new one
>
>    PicklingError: Can't pickle<type 'instancemethod'>: attribute
> lookup
>    __builtin__.instancemethod failed
>
> The details were listed in my last post in this thread.
> Thanks for your reply :)

I'm afraid his response applies to this as well: you can't pass methods to 
pool.map() or any other such communication channel to your subprocesses.

-- 
Robert Kern

"I have come to believe that the whole world is an enigma, a harmless enigma
  that is made terrible by our own mad attempt to interpret it as though it had
  an underlying truth."
   -- Umberto Eco




More information about the Python-list mailing list