KeyError: 'hessian_recursive_gaussian_image_filter'

I am following along the Segment Blood Vessels tutorial in Python.

I installed itk itk-5.1.0 in an anconda enviornment. When running the tutorial I get the following error:

---------------------------------------------------------------------------
KeyError                                  Traceback (most recent call last)
<ipython-input-31-294d027f4d70> in <module>
----> 1 hessian_image = itk.hessian_recursive_gaussian_image_filter(original_itk_image, sigma=sigma)

~/opt/anaconda3/envs/venv/lib/python3.7/site-packages/itkLazy.py in __getattribute__(self, attr)
     54             for k, v in namespace.items():
     55                 setattr(self, k, v)
---> 56             value = namespace[attr]
     57         return value
     58 

KeyError: 'hessian_recursive_gaussian_image_filter'

My question: Is it a bug in the ITK version or is it something to do with the way it was called? Any help would be appreciated.

Thanks

Hi @Kashyap,

Welcome to the ITK Community! :sun_with_face:

What was the installation command used?

Hi @matt.mccormick

Thank you for the welcome :slight_smile:

I installed it from conda-forge. It was suggested in this thread: ITK 4.13.1 has been released!

conda install -c conda-forge itk

My system specifications:

macOS Catalina Version 10.15.4 
MacBook Pro (13-inch, 2018) 

Thanks

1 Like

Hi @Kashyap,

Please try reinstalling from conda-forge for an updated version.

Thanks,
Matt