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

Pickling the itk module fails #1050

jakirkham opened this issue Jul 1, 2019 · 2 comments


None yet
2 participants
Copy link

commented Jul 1, 2019


Pickling of the itk module fails.

Steps to Reproduce

import pickle
import itk                                                           


Expected behavior

Pickling succeeds.

Actual behavior

TypeError                                 Traceback (most recent call last)
<ipython-input-3-8fd95ab0c545> in <module>
----> 1 pickle.dumps(itk)

TypeError: can't pickle LazyITKModule objects


Every time.


ITK 5.0.0 with some modules as 5.0.0.post1.

$ conda list itk
# Name                    Version                   Build  Channel
itk                       5.0.0                    py37_1    conda-forge
itk-core                  5.0.0.post1              pypi_0    pypi
itk-filtering             5.0.0.post1              pypi_0    pypi
itk-numerics              5.0.0.post1              pypi_0    pypi
itk-registration          5.0.0.post1              pypi_0    pypi
itk-segmentation          5.0.0.post1              pypi_0    pypi


Ubuntu 16.04.5 LTS (Xenial)
Python 3.7.3


This comment has been minimized.

Copy link

commented Jul 5, 2019

xref #1051


This comment has been minimized.

Copy link

commented Jul 19, 2019

Pickling via cloudpickle addressed in #1090 .

@thewtex thewtex closed this Jul 19, 2019

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.