Backwards incompatibility with (pip) itk-5.3rc4.post2 and itk-elastix-0.14.1

Hi!

I just want to report that if I install:

pip uninstall -y itk{,-{,elastix,tubetk,strain,core,filtering,io,minimalpathextraction,numerics,registration,segmentation}} && pip install -U pip && pip cache purge && pip install itk{==5.3rc4,-{elastix,strain}}

then this works:

parameter_object = itk.ParameterObject.New()

Otherwise, I get this error:

>>> parameter_object = itk.ParameterObject.New()
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "/home/edgar/.local/lib/python3.10/site-packages/itk/support/lazy.py", line 138, in __getattribute__
    base.itk_load_swig_module(module, namespace)
  File "/home/edgar/.local/lib/python3.10/site-packages/itk/support/base.py", line 132, in itk_load_swig_module
    l_module = loader.load(swig_module_name)
  File "/home/edgar/.local/lib/python3.10/site-packages/itk/support/base.py", line 291, in load
    l_spec.loader.exec_module(l_module)  # pytype: disable=attribute-error
  File "<frozen importlib._bootstrap_external>", line 883, in exec_module
  File "<frozen importlib._bootstrap>", line 241, in _call_with_frames_removed
  File "/home/edgar/.local/lib/python3.10/site-packages/itk/support/../ElastixPython.py", line 13, in <module>
    from . import _ElastixPython
AttributeError: PyCapsule_Import "_ITKCommonPython._C_API" is not valid

(with itk-5.3rc4.post2)

Cheers!

Thanks for reporting, but it looks like a duplicate of:

Yes, indeed. I’m glad that it is being addressed :slight_smile: . (I will try to remember to check the repository next time).