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

Closed
jakirkham opened this issue Jul 1, 2019 · 2 comments

Comments

Projects
None yet
2 participants
@jakirkham
Copy link
Member

commented Jul 1, 2019

Description

Pickling of the itk module fails.

Steps to Reproduce

import pickle
import itk                                                           

pickle.dumps(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

Reproducibility

Every time.

Versions

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

Environment

Ubuntu 16.04.5 LTS (Xenial)
Python 3.7.3

@thewtex

This comment has been minimized.

Copy link
Member

commented Jul 5, 2019

xref #1051

@thewtex

This comment has been minimized.

Copy link
Member

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.