Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Pickling error attempting to create 'multiprocxxx' Actor system #32

Closed
kwadl opened this issue Jan 15, 2017 · 5 comments
Closed

Pickling error attempting to create 'multiprocxxx' Actor system #32

kwadl opened this issue Jan 15, 2017 · 5 comments
Labels
bug

Comments

@kwadl
Copy link

@kwadl kwadl commented Jan 15, 2017

Hi there

Thanks for releasing what looks like a really promising project. I'm keen to get started with it, but am encountering an issue with starting a 'multiprocTCPBase' Actor system (or any 'multiproc' Actor system) in a Windows environment. It looks like in multiprocCommon.py in _startAdmin (line 102) a reference to the multiprocessing module itself is being passed to a new process as an argument? This seems to lead to a pickling error...
trace.txt

@kwadl
Copy link
Author

@kwadl kwadl commented Jan 15, 2017

Okay, so the attached mods seem to fix this for Python 2.7+Windows, but not sure what the broader implications might be. The mods allow the context to be passed around as a default of None if version 3.4 of multiprocessing is not found (instead of a default reference to the multiprocessing module itself), avoiding the pickling error. Users of the context test for the default and use the multiprocessing module directly if required...
multiprocCommon.py.txt

@kquick
Copy link
Member

@kquick kquick commented Jan 16, 2017

Thanks for the update! Most of the recent Windows work has been done using 3.5 (python version validation testing normally happens under linux), so it's been a while since I validated the combo of Windows and 2.7 and it looks like a compatibility issue crept in.

Please give me a day or so to run validation of your fix across the other environments, and then I can generate a bugfix release. In the meantime, I'd love to have you submit your fix as a pull request so you can get proper attribution.

@kwquick kwquick added the bug label Jan 17, 2017
@kwadl
Copy link
Author

@kwadl kwadl commented Jan 18, 2017

Hope it helps! I'm not too handy with github, so not sure I can master a pull request, but if the mods work for you of course you can incorporate them. Cheers

@kwquick
Copy link
Contributor

@kwquick kwquick commented Jan 18, 2017

The mods do work for me as well and tested out on all the environments, so I'll be releasing this shortly. Thanks again for your contribution!

@kwquick
Copy link
Contributor

@kwquick kwquick commented Jan 19, 2017

@kwquick kwquick closed this Jan 19, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Linked pull requests

Successfully merging a pull request may close this issue.

None yet
3 participants
You can’t perform that action at this time.