After pip install: ImportError: DLL load failed while importing _ITKCommonPython
See original GitHub issueCould you please help us out? We (@ViktorvdValk @ntatsisk, me) tried to pip install itk-elastix on Windows. It did work well with itk-elastix 0.12.0, but no longer with the latest version, 0.14.1 or 0.14.0. It might be a Windows issue…? See output from the Python terminal, below.
Python 3.9.12 (main, Apr 4 2022, 05:22:27) [MSC v.1916 64 bit (AMD64)] :: Anaconda, Inc. on win32
Type "help", "copyright", "credits" or "license" for more information.
>>> import itk
>>> itk.elastix_registration_method
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "C:\ProgramData\Anaconda3\envs\ITKElastixPy39_14\lib\site-packages\itk\support\lazy.py", line 138, in __getattribute__
base.itk_load_swig_module(module, namespace)
File "C:\ProgramData\Anaconda3\envs\ITKElastixPy39_14\lib\site-packages\itk\support\base.py", line 96, in itk_load_swig_module
itk_load_swig_module(dep, namespace)
File "C:\ProgramData\Anaconda3\envs\ITKElastixPy39_14\lib\site-packages\itk\support\base.py", line 96, in itk_load_swig_module
itk_load_swig_module(dep, namespace)
File "C:\ProgramData\Anaconda3\envs\ITKElastixPy39_14\lib\site-packages\itk\support\base.py", line 96, in itk_load_swig_module
itk_load_swig_module(dep, namespace)
File "C:\ProgramData\Anaconda3\envs\ITKElastixPy39_14\lib\site-packages\itk\support\base.py", line 132, in itk_load_swig_module
l_module = loader.load(swig_module_name)
File "C:\ProgramData\Anaconda3\envs\ITKElastixPy39_14\lib\site-packages\itk\support\base.py", line 291, in load
l_spec.loader.exec_module(l_module) # pytype: disable=attribute-error
File "<frozen importlib._bootstrap_external>", line 850, in exec_module
File "<frozen importlib._bootstrap>", line 228, in _call_with_frames_removed
File "C:\ProgramData\Anaconda3\envs\ITKElastixPy39_14\lib\site-packages\itk\support\..\ITKCommonPython.py", line 13, in <module>
from . import _ITKCommonPython
ImportError: DLL load failed while importing _ITKCommonPython: The specified module could not be found.
>>> itk.elastix_registration_method
Issue Analytics
- State:
- Created a year ago
- Comments:6 (5 by maintainers)
Top Results From Across the Web
How to resolve "ImportError: DLL load failed:" on Python?
1) In console Anaconda CMD type echo %path% to see where your anaconda is installed. 2) In spyder's python console you can enter...
Read more >ImportError: DLL load failed while importing cythonbiogeme
After installing Biogeme 3.2.10 using pip 21.1.2 I got the following error. ImportError: DLL load failed while importing cythonbiogeme: The ...
Read more >DLL load failed while importing _igraph on Windows
I installed igraph by “pip install python-igraph”. I run “import igraph” inPython, I got the error as the following.
Read more >How to Fix Python ImportError: Dll Load Failed Error
You can try the following methods. Fix 1. Reinstall Library. In most cases, the error occurs when you import a library. The cause...
Read more >DLL Load failed error - Developers - Raspberry Shake
... a “ImportError: DLL load failed while importing _arpack: The specified procedure could not be found.”? The background is originally I installed Python ......
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Just checked at PR https://github.com/SuperElastix/elastix/pull/762: SuperElastix/elastix builds fine with ITK tag v5.3.0 (no need to wait for PR https://github.com/SuperElastix/elastix/pull/762 to be merged, it just works).
Hi @ntatsisk , glad to hear this has been resolved. Yes, we should bump
itk-elastix
for the ITK v5.3.0 release.