Hmm, well I rebuilt with the referenced ITK and SimpleITK and didn’t get any build errors, but when I try to run it says I can’t import SimpleITK. I used the same build flags as before.
Switch to module: "SimpleFilters"
Traceback (most recent call last):
File "/s/python-install/lib/python3.6/site-packages/SimpleITK/SimpleITK.py", line 14, in swig_import_helper
return importlib.import_module(mname)
File "/s/python-install/lib/python3.6/importlib/__init__.py", line 126, in import_module
return _bootstrap._gcd_import(name[level:], package, level)
File "<frozen importlib._bootstrap>", line 994, in _gcd_import
File "<frozen importlib._bootstrap>", line 971, in _find_and_load
File "<frozen importlib._bootstrap>", line 953, in _find_and_load_unlocked
ModuleNotFoundError: No module named 'SimpleITK._SimpleITK'
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/s/Slicer-build/lib/Slicer-4.11/qt-scripted-modules/SimpleFilters.py", line 83, in __init__
import SimpleITK as sitk
File "/s/python-install/lib/python3.6/site-packages/SimpleITK/__init__.py", line 1, in <module>
from .SimpleITK import *
File "/s/python-install/lib/python3.6/site-packages/SimpleITK/SimpleITK.py", line 17, in <module>
_SimpleITK = swig_import_helper()
File "/s/python-install/lib/python3.6/site-packages/SimpleITK/SimpleITK.py", line 16, in swig_import_helper
return importlib.import_module('_SimpleITK')
File "/s/python-install/lib/python3.6/importlib/__init__.py", line 126, in import_module
return _bootstrap._gcd_import(name[level:], package, level)
ModuleNotFoundError: No module named '_SimpleITK'
qSlicerPythonCppAPI::instantiateClass - [ "SimpleFiltersWidget" ] - Failed to instantiate scripted pythonqt class "SimpleFiltersWidget" 0x7fcc110eae68
I agree with the comment from @lassoan that it would be cleaner and less confusing if the changes could be in a tagged ITK version. (Could it be ITK v5.1rc02?).