# ALPACA problem: ModuleNotFoundError: No module named 'itk'

**URL:** <https://discourse.slicer.org/t/alpaca-problem-modulenotfounderror-no-module-named-itk/41335>\
**Category:** SlicerMorph\
**Tags:** alpaca\
**Created:** [January 28, 2025, 12:41pm UTC](https://discourse.slicer.org/t/alpaca-problem-modulenotfounderror-no-module-named-itk/41335 "2025-01-28T12:41:12Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![nightmare](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/nightmare/32/79252_2.png) [@nightmare](https://discourse.slicer.org/u/nightmare)\
**Post date:** [January 28, 2025, 12:41pm UTC](https://discourse.slicer.org/t/alpaca-problem-modulenotfounderror-no-module-named-itk/41335/1 "2025-01-28T12:41:12Z")

</div>

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’

---

<div class="post-metadata">

**Author:** ![muratmaga](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/muratmaga/32/3622_2.png) [@muratmaga](https://discourse.slicer.org/u/muratmaga)\
**Post date:** [January 28, 2025, 2:24pm UTC](https://discourse.slicer.org/t/alpaca-problem-modulenotfounderror-no-module-named-itk/41335/2 "2025-01-28T14:24:32Z")

</div>

> [@nightmare](#):
>
> 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

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?

---

<div class="post-metadata">

**Author:** ![muratmaga](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/muratmaga/32/3622_2.png) [@muratmaga](https://discourse.slicer.org/u/muratmaga)\
**Post date:** [January 28, 2025, 3:06pm UTC](https://discourse.slicer.org/t/alpaca-problem-modulenotfounderror-no-module-named-itk/41335/3 "2025-01-28T15:06:08Z")

</div>

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

```auto
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?

---

<div class="post-metadata">

**Author:** ![dzenanz](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/dzenanz/32/1992_2.png) [@dzenanz](https://discourse.slicer.org/u/dzenanz)\
**Post date:** [January 28, 2025, 3:10pm UTC](https://discourse.slicer.org/t/alpaca-problem-modulenotfounderror-no-module-named-itk/41335/4 "2025-01-28T15:10:28Z")

</div>

We probably need `pip install itk-fpfh` somewhere.

---

<div class="post-metadata">

**Author:** ![muratmaga](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/muratmaga/32/3622_2.png) [@muratmaga](https://discourse.slicer.org/u/muratmaga)\
**Post date:** [January 28, 2025, 3:32pm UTC](https://discourse.slicer.org/t/alpaca-problem-modulenotfounderror-no-module-named-itk/41335/5 "2025-01-28T15:32:01Z")

</div>

> [@dzenanz](#):
>
> itk-fpfh

It is supposed to be installed:

> <https://github.com/SlicerMorph/SlicerMorph/blob/17bae274129a763f41951512fece68b413d6e076/ALPACA/ALPACA.py#L120>

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

---

<div class="post-metadata">

**Author:** ![nightmare](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/nightmare/32/79252_2.png) [@nightmare](https://discourse.slicer.org/u/nightmare)\
**Post date:** [February 7, 2025, 1:46pm UTC](https://discourse.slicer.org/t/alpaca-problem-modulenotfounderror-no-module-named-itk/41335/6 "2025-02-07T13:46:11Z")

</div>

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.
