Import SimpleITK fails

What is odd is that these results are different from my local build, package and testing that I reported in my review comment. With my installed package the import of SimpleITK is successful:

However I do see the reported import error when using the Slicer factory built versions. When viewing the configure command of recent Slicer preview builds I see that it is using

  • CMake 3.22.1 (released December 7th 2021)
  • Visual Studio 2022 >=17.9.6, <17.10

My successful build was with:

  • CMake 3.28.3 (released February 5th 2024)
  • Visual Studio 2022 17.9.5.

I wouldn’t be surprised if the older CMake version may be having issues with this latest SimpleITK.