Dear all,
I’ve built and tested custom version of SimpleITK on MacOS Sierra 10.12.5. 99% of tests passed, from Python tests only 2 failed.
I also see that newly built SimpleITK package is successfully installed to root environment in Anaconda.
Nevertheless, when I attempt to import SimpleITK I receive a following error message:
import SimpleITK
Traceback (most recent call last):
File “/Users/mkvasnyt/anaconda3/lib/python3.6/site-packages/SimpleITK-1.2.0.dev72+g7d893-py3.6-macosx-10.7-x86_64.egg/SimpleITK/SimpleITK.py”, line 14, in swig_import_helper
return importlib.import_module(mname)
File “/Users/mkvasnyt/anaconda3/lib/python3.6/importlib/init.py”, line 126, in import_module
return _bootstrap._gcd_import(name[level:], package, level)
File “”, line 994, in _gcd_import
File “”, line 971, in _find_and_load
File “”, line 955, in _find_and_load_unlocked
File “”, line 658, in _load_unlocked
File “”, line 571, in module_from_spec
File “”, line 922, in create_module
File “”, line 219, in _call_with_frames_removed
ImportError: dynamic module does not define module export function (PyInit__SimpleITK)
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File “”, line 1, in
File “/Users/mkvasnyt/anaconda3/lib/python3.6/site-packages/SimpleITK-1.2.0.dev72+g7d893-py3.6-macosx-10.7-x86_64.egg/SimpleITK/init.py”, line 1, in
from .SimpleITK import *
File “/Users/mkvasnyt/anaconda3/lib/python3.6/site-packages/SimpleITK-1.2.0.dev72+g7d893-py3.6-macosx-10.7-x86_64.egg/SimpleITK/SimpleITK.py”, line 17, in
_SimpleITK = swig_import_helper()
File “/Users/mkvasnyt/anaconda3/lib/python3.6/site-packages/SimpleITK-1.2.0.dev72+g7d893-py3.6-macosx-10.7-x86_64.egg/SimpleITK/SimpleITK.py”, line 16, in swig_import_helper
return importlib.import_module(’_SimpleITK’)
File “/Users/mkvasnyt/anaconda3/lib/python3.6/importlib/init.py”, line 126, in import_module
return _bootstrap._gcd_import(name[level:], package, level)
ModuleNotFoundError: No module named ‘_SimpleITK’
The SimpleITK subfolder of SimpleITK-1.2.0.dev72+g7d893-py3.6-macosx-10.7-x86_64.egg contains init.py, SimpleITK.py, _SimpleITK.py, _SimpleITK.cpython-36m-darwin.so.
Could you please hint me what shall I do to enable import?
Thanks!