ITK: Windows Python Module Import Failure

Description

Windows Python CI fails due to failure to import ITKImageIntensity module in several Python CTests.

CDash results

Expected behavior

Modules load successfully and CI passes

Actual behavior

Traceback (most recent call last):
  File "D:/a/1/s/Modules/Core/Mesh/wrapping/test/itkConnectedRegionsMeshFilterTest.py", line 28, in <module>
    threshold_filter = itk.BinaryThresholdImageFilter.IUC3IUC3.New()
  File "D:\a\1\s-build\Wrapping\Generators\Python\itk\support\lazy.py", line 138, in __getattribute__
    base.itk_load_swig_module(module, namespace)
  File "D:\a\1\s-build\Wrapping\Generators\Python\itk\support\base.py", line 96, in itk_load_swig_module
    itk_load_swig_module(dep, namespace)
  File "D:\a\1\s-build\Wrapping\Generators\Python\itk\support\base.py", line 132, in itk_load_swig_module
    l_module = loader.load(swig_module_name)
  File "D:\a\1\s-build\Wrapping\Generators\Python\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 848, in exec_module
  File "<frozen importlib._bootstrap>", line 219, in _call_with_frames_removed
  File "D:\a\1\s-build\Wrapping\Generators\Python\itk\support\..\ITKImageIntensityPython.py", line 13, in <module>
    from . import _ITKImageIntensityPython
ImportError: cannot import name '_ITKImageIntensityPython' from 'itk' (D:\a\1\s-build\Wrapping\Generators\Python\itk\__init__.py)
itkTestDriver: Process exited with return value: 1

Reproducibility

Versions

master

Environment

Windows

Additional Information

About this issue

  • Original URL
  • State: closed
  • Created 2 years ago
  • Comments: 18 (18 by maintainers)

Commits related to this issue

Most upvoted comments

@tbirdso no, it is not.