I have just tried to use ALPACA module for the first time on a new lab laptop (Windows 11) running 3D Slicer 5.7.0 (preview release). Slicer ran into an issue loading in the python script then spat out the following “import itk” error in the python console.
I have since closed and reopened Slicer, but this “issue with the python script”+ error in the console happens every time I go to use ALPACA.
It seems like there is a permission issue but I don’t know why. Please could I get some help on this subject/guidance on how I might be able to resolve this issue!
I can replicate a similar issue on latest preview on Mac as well. ALPACA fails with
Traceback (most recent call last): File "/Users/amaga/SlicerMorph/ALPACA/ALPACA.py", line 105, in setup from itk import Fpfh ImportError: cannot import name 'Fpfh' from 'itk' (/Users/amaga/Desktop/Slicer.app/Contents/lib/Python/lib/python3.9/site-packages/itk/__init__.py)
@jcfr is this related to the recent ITK version change in preview builds?
@EllaNicklin Meanwhile, you can use ALPACA with the latest stable build (5.6.2)
@EllaNicklin appears to be using Slicer Preview version 5.7.0-2024-05-21 which was prior to the ITK 5.4.0 update which was integrated on June 3rd. Ella’s error looks to be from installing Slicer in the Program Files system location instead of the default AppData users location. It is installing the itk python package in the extensions directory located in the install location which in this case is a system location which requires higher permissions to modify. Installing this Slicer version (5.7.0-2024-05-21) in the user space instead of Program Files would likely resolve this issue for the user.
@EllaNicklin please reinstall (or move if you have the rights) Slicer to a folder where you can have write permission. This can be something like C:/Users/YOURUSER/AppData or even your desktop, and retry.
But my mac problem with the latest preview seems something to do with the new ITK version.