-
Notifications
You must be signed in to change notification settings - Fork 24
Cloudpickle fails on boost-histogram #342
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
Comments
This should be doable, as long as you can cloudpickle numpy arrays and things like that. I thought cloudpickle was supposed to simply pickle any normally picklable objects. I'll check, and maybe see if I can add it to the tests. |
I think it's failing while trying to figure out if the module is a dynamic one or not, where cloudpickle advertises being able to also serialize dynamic ones. |
The following workaround solves this for now: bh._core.hist.__file__ = bh._core.__file__
|
The workaround does fix it it for me! Thanks for the help! |
I'm using boost histograms inside Coffea accumulators. I ran into the issue now that boost histograms appear not to be pickleable by cloudpickle (anymore? I think this used to work).
When running something like this:
I get an error like
Should that even work? If so, any pointers how I can resolve or circumvent this issue? This is especially unfortunate since standard pickle appears to work fine, but Coffea uses cloudpickle.
The text was updated successfully, but these errors were encountered: