Here's an example:
import multiprocessing
class SendeventProcess(multiprocessing.Process):
def __init__(self, resultQueue):
self.resultQueue = resultQueue
multiprocessing.Process.__init__(self)
self.start()
def run(self):
self.resultQueue.put((1,2))
if __name__ == '__main__':
multiprocessing.freeze_support()
print 'pyb'
resultQueue = multiprocessing.Queue()
SendeventProcess(resultQueue)
print 'pyb'
When I run the compiled executable, I variously get the "handle is
invalid" error, the "Access is denied" error, and a successful run
with no errors. The un-compiled script runs well.
On Oct 6, 6:03 am, Martin Zibricky <[email protected]> wrote:
> Brian píše v St 05. 10. 2011 v 21:40 -0700:
>
> > I do have multiprocessing.freeze_support() at the very start of my
> > code, but I don't have any multiprocessing.Manager's.
>
> Could you please put together a small multiprocessing example which
> would reproduce the issue?
>
> BTW, I didn't know there is freeze_support() function in python. We
> should mention that in the manual.
--
You received this message because you are subscribed to the Google Groups
"PyInstaller" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/pyinstaller?hl=en.