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

PicklingError on multiprocessing.pool "Can't pickle <class 'zstd.ZstdError' #248

Open
hub-il opened this issue Jan 21, 2025 · 0 comments
Open

Comments

@hub-il
Copy link

hub-il commented Jan 21, 2025

Using the zstandard module to compress and decompress data in a multiprocessing context. If there is a zstd.ZstdError thrown when running in a pool such as:

zstd.ZstdError: decompression error: did not decompress full frame

It results in this error:

multiprocessing.pool.MaybeEncodingError: Error sending result: '<multiprocessing.pool.ExceptionWithTraceback object at 0x74ccabe98bb0>'. Reason: 'PicklingError("Can't pickle <class 'zstd.ZstdError'>: import of module 'zstd' failed")'

Seems that there is something in the zstd.ZstdError class that can't be pickled by the multiprossing.pool.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant