Comments you submit will be routed for moderation. If you have an account, please log in first.
Modify

Ticket #146 (new defect)

Opened 3 years ago

Last modified 18 months ago

pyinstaller not working with multiprocessing.Manager()

Reported by: spongebob Owned by: giovannibajo
Priority: normal Milestone:
Component: PyInstaller Version:
Severity: major Keywords:
Cc:

Description (last modified by giovannibajo) (diff)

I'm trying to build a standalone .exe using python's multiprocessing.Manager with pyinstaller but I get the following error:

Process SyncManager-1:
Traceback (most recent call last):
  File "c:\trunk-r767\trunk\manager_test\build\pyi.win32\manager_test\outPYZ1.py
z/multiprocessing.process", line 232, in _bootstrap
  File "c:\trunk-r767\trunk\manager_test\build\pyi.win32\manager_test\outPYZ1.py
z/multiprocessing.process", line 88, in run
  File "c:\trunk-r767\trunk\manager_test\build\pyi.win32\manager_test\outPYZ1.py
z/multiprocessing.managers", line 520, in _run_server
IOError: [Errno 6] The handle is invalid
Traceback (most recent call last):
  File "<string>", line 7, in <module>
  File "c:\trunk-r767\trunk\manager_test\build\pyi.win32\manager_test\outPYZ1.py
z/multiprocessing", line 98, in Manager
  File "c:\trunk-r767\trunk\manager_test\build\pyi.win32\manager_test\outPYZ1.py
z/multiprocessing.managers", line 499, in start
EOFError

If i build to a directory instead of a standalone package, it runs fine.

configuration:

latest svn of pyinstaller

activepython 2.6.4.8

test script to reproduce error:

import multiprocessing

if __name__ == '__main__':

    multiprocessing.freeze_support()

    man=multiprocessing.Manager()

Question: Can you suggest a workaround/solution?

Attachments

Change History

comment:1 Changed 3 years ago by giovannibajo

  • Description modified (diff)
View

Add a comment

Modify Ticket

Action
as new
Author


E-mail address and user name can be saved in the Preferences.

 
Note: See TracTickets for help on using tickets.