ALPACA problem: ModuleNotFoundError: No module named 'itk'

Hi, how can I solve this problem?
alpaca does not descend and does not open.

Traceback (most recent call last):
File “C:/Users/İhsanBeratKILIÇLI/AppData/Local/slicer.org/Slicer 5.6.2/slicer.org/Extensions-32448/SlicerMorph/lib/Slicer-5.6/qt-scripted-modules/ALPACA.py”, line 126, in setup
import itk
ModuleNotFoundError: No module named ‘itk’

This should work, as we routinely use ALPACA on windows with v5.6.2. Can you try to install Slicer in a path that doesn’t have Turkish characters? Something like C:/Slicer-5.6.2 and then try installing SlicerMorph and running ALPACA?

actually I am seeing an issue with itk libraries missing on Mac too.

Traceback (most recent call last):
  File "/Applications/Slicer.app/Contents/Extensions-33216/SlicerMorph/lib/Slicer-5.8/qt-scripted-modules/ALPACA.py", line 105, in setup
    from itk import Fpfh
ImportError: cannot import name 'Fpfh' from 'itk' (/Applications/Slicer.app/Contents/lib/Python/lib/python3.9/site-packages/itk/__init__.py)

@dzenanz do you have thoughts on this?

We probably need pip install itk-fpfh somewhere.

It is supposed to be installed:

Likewise on Windows 5.6.2 the error is missing the ITK library, which was never an issue before.

I’m sorry, I was on vacation and couldn’t check your answers. The problem was solved when I installed it without Turkish characters. @dzenanz
I would also like to give additional information: Version of Windows users must also be active.

1 Like