Re: PyObjC and multiprocessing module
Aahz <[email protected]>
| Newsgroups | gmane.comp.python.pyobjc.devel |
|---|---|
| Organization | The Cat & Dragon |
| Message-ID | <[email protected]> |
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 ([email protected]) <*> http://www.pythoncraft.com/ "....Normal is what cuts off your sixth finger and your tail..." --Siobhan ------------------------------------------------------------------------------ Cloud Services Checklist: Pricing and Packaging Optimization This white paper is intended to serve as a reference, checklist and point of discussion for anyone considering optimizing the pricing and packaging model of a cloud services business. Read Now! http://www.accelacomm.com/jaw/sfnl/114/51491232/