SuperElastix / SimpleElastix

Multi-lingual medical image registration library
http://simpleelastix.github.io
Apache License 2.0
509 stars 149 forks source link

Suggested branch for SimpleElastix (DLL load failed while importing _SimpleITK) #434

Closed davidweioct closed 3 years ago

davidweioct commented 3 years ago

Hello, does anyone install/update SimpleElastix recently on windows? Any suggestion on which branch I should use.

I tried the "master", "develop", and "azure-ci-simpleitk" branches, but unfortunately none of them works for me.

The latest test is on "develop" branch to avoid an error in OpenJPEG https://github.com/SuperElastix/SimpleElastix/pull/425

I build with VS2019 without error (following figure)

image

However I was stopped at the last step with error DLL load failed while importing _SimpleITK: The specified module could not be found.. I tried to debug following https://github.com/SuperElastix/SimpleElastix/issues/372

1) I do not have any other file in SimpleITK-build\Wrapping\Python\Packaging except for "setup.py.in"

2) there is no _SimpleITK.pyd in SimpleITK-build\Wrapping\Python, while there is a _SimpleITK.pyd in SimpleITK-build\Wrapping\Python\SimpleITK. I tried by adding this folder with sys.path.append(). I was able to find the SimpleITK.py file but it does not work for _SimpleITK.pyd.

Can any one give some suggestions? An old version dates back to 1-2 years ago would also work for me.

Thank you in advance!

Package used: windows 10, VS2019, CMake 3.21.0-rc3, Anaconda3-2021.05-Windows-x86_64

davidweioct commented 3 years ago

This seems to be a typo in doc. https://github.com/SuperElastix/SimpleElastix/pull/353

Is the correct setup.py file locating in SimpleITK-build\Wrapping\Python rather than SimpleITK-build\Wrapping\Python\Packaging?