Re: [Pyobjc-dev] PyObjC and multiprocessing module
Brought to you by:
ronaldoussoren
From: Aahz <aa...@py...> - 2011-12-08 00:05:01
|
On Wed, Dec 07, 2011, Trevor Bentley wrote: > > I found a bunch of hits for this on Google, but no answers: > > I am working on a Python application that uses the multiprocessing library. > I am trying to spawn a process and perform text-to-speech with pyttsx, but > I get the > dreaded __THE_PROCESS_HAS_FORKED_AND_YOU_CANNOT_USE_THIS_COREFOUNDATION_FUNCTIONALITY___YOU_MUST_EXEC__() > error. > > Is there any way to get this working, short of switching back to threads? > I see that the 'correct' way is to fork() and exec(), but I don't see any > way to make that compatible with the multiprocessing module's API. You could do something other than multiprocessing module to access another process (socket to me!). Depends how much a problem the GIL is for you. -- Aahz (aa...@py...) <*> http://www.pythoncraft.com/ "....Normal is what cuts off your sixth finger and your tail..." --Siobhan |