-
Notifications
You must be signed in to change notification settings - Fork 34
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
TypeError: cannot pickle 'starry._c_ops.Ops' object #254
Comments
Interesting. Mark Popinchalk messaged me today with the same error. Agreed it's something about the new pymc3 version. He found that setting |
and |
It's all the same issue and it's really a Python issue, not pymc3 really. I've found that using fork instead of forkserver works fine in general. |
Looking at @bmorris3's comment, the workaround is import multiprocessing as mp
pm.sample(
...,
mp_ctx=mp.get_context("fork")
) |
Yes - I expect that that will do it. |
Thanks for the fix, this works! |
FYI I'm implementing simple pickling support in #270, to be merged into master soon. Should fix this issue without needing to switch to |
The eclipsing binary example notebook with MCMC is failing at the NUTS sampling step. It has something to do with the new version of PyMC3 (3.9) because it works fine with PyMC3 3.7.
The following cell fails with the error
TypeError: cannot pickle 'starry._c_ops.Ops' object
:It works if you set
chains=1
.Starry version:
1.0.1.dev161+g9c462a2c
exoplanet version:
0.3.3
PyMC3 version:
3.9.3
macOS Catalina
install from source
The text was updated successfully, but these errors were encountered: