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

Pickle error and never ending code with 1.43.1 #26

Closed
TabeaW opened this issue Nov 26, 2024 · 5 comments
Closed

Pickle error and never ending code with 1.43.1 #26

TabeaW opened this issue Nov 26, 2024 · 5 comments
Labels
bug Something isn't working

Comments

@TabeaW
Copy link

TabeaW commented Nov 26, 2024

With the new version 1.43.1 we receive a pickle error while opening Sentinel-3 OLCI data. The error isn't really helpful, as everything comes from the distributed/pickle/python side, the error:

distributed.protocol.pickle - ERROR - Failed to serialize <pykdtree.dktree.KDTree object 
...
TypeError: no default __reduce__ due to non-trivial __cinit__

After the error, the code hangs and does not end.
There was no error with the version 1.43.0.

@TabeaW TabeaW added the bug Something isn't working label Nov 26, 2024
@remi-braun
Copy link
Member

Hi there,

We indeed added a deeper use of Dask in this 1.43.1 release, so maybe it has broken some weird things like that 🤔
I think maybe it's more of an eoreader issue.

I'll investiguate.

@bastiencyr
Copy link
Contributor

bastiencyr commented Nov 26, 2024

Hello @TabeaW ,
Do you use threading or cython or multithreading somwhere in your code ?
Notice that sertit-utils will not use Dask if you dont have it in your environement

@bastiencyr
Copy link
Contributor

The issue is linked to storpipfugl/pykdtree#81

@bastiencyr
Copy link
Contributor

rasters now creates a local threaded cluster which should solve your issue. You can test your code against the latest version of sertit-utils (on main branch)

@remi-braun
Copy link
Member

Done, released in 1.43.2

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants