SuperElastix / SimpleElastix

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

AttributeError: module 'SimpleITK' has no attribute 'GetDefaultParameterMap' #385

Open Arnoldo29 opened 4 years ago

Arnoldo29 commented 4 years ago

Hello, i use a Windows 10 system and the Python version 3.7 of Anaconda.

I got this error (AttributeError: module 'SimpleITK' has no attribute 'GetDefaultParameterMap') when I tried to create a parameter list with SimpleElastix.

maybe someone could tell me what to do. Thanks

kaspermarstal commented 4 years ago

Hi Arnold, you probably have SimpleITK installed, not SimpleElastix. It is great source of confusion that the SimpleElatix python package is also called SimplITK and we are working on a solution.

pangyuteng commented 3 years ago

@Arnoldo29

we had a similar situation. We had to build SimpleElastix using a base docker container with SimpleITK installed. After building, and python setup.py install, we simply ran pip uinstall SimpleITK python then recognized SimpleElastix when running import SimpleITK as sitk.