You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The problem here is that setting dill.settings['recurse'] = True doesn't seem to prevent the same issues that are present in Issue #155 of dill while using multiprocess.
To give a minimal test code, running the code below,
importdillfromsympyimportSymbol, lambdifydill.detect.trace(False) # Let me know if you'd like to see this output.dill.settings['recurse'] =Truex=Symbol('x', real=True)
H=lambdify(x, x**2, 'numpy')
print(dill.loads(dill.dumps(H)))
yields the same error as in the multiprocess script.
The text was updated successfully, but these errors were encountered:
cjayross
changed the title
Multiprocess fails to adhere to dill.settings['recurse'] = True
Pool objects fail to adhere to dill settings during asynchronous processing.
Nov 13, 2018
@cjayross: Sorry for the slow response. Yep, I know -- multiprocess cannot yet adhere to dill.settings outside of the defaults. It's a planned feature.
recent changes to dill now enable dill.settings to have an effect on serialization used by multiprocess. Closing this. Please reopen if the issue isn't resolved for you.
The problem here is that setting dill.settings['recurse'] = True doesn't seem to prevent the same issues that are present in Issue #155 of dill while using multiprocess.
To give a minimal test code, running the code below,
yields an expected result of printing
While the following code
throws the exception:
with the full output posted here.
I'm running Python 3.7.1 with
Oh, and running the first script with
yields the same error as in the multiprocess script.
The text was updated successfully, but these errors were encountered: