Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ITK RLEImage not available as a Python image source #66

Open
jhlegarreta opened this issue Jan 3, 2025 · 2 comments
Open

ITK RLEImage not available as a Python image source #66

jhlegarreta opened this issue Jan 3, 2025 · 2 comments

Comments

@jhlegarreta
Copy link
Collaborator

The ITK RLEImage name seems not available as a Python image source:

Traceback (most recent call last):
  File "T:\Dashboard\ITK\Wrapping\Generators\Python\Tests\nolazy.py", line 22, in <module>
    import itk
  File "T:\Dashboard\ITK-build\Wrapping\Generators\Python\itk\__init__.py", line 163, in <module>
    _initialize_module()
  File "T:\Dashboard\ITK-build\Wrapping\Generators\Python\itk\__init__.py", line 133, in _initialize_module
    _base.itk_load_swig_module(module, sys.modules[__name__].__dict__)
  File "T:\Dashboard\ITK-build\Wrapping\Generators\Python\itk\support\base.py", line 247, in itk_load_swig_module
    init_function()
  File "T:\Dashboard\ITK-build\Wrapping\Generators\Python\itk\itkRLERegionOfInterestImageFilterPython.py", line 4265, in image_source_init_docstring
    filter_class = itk.RLEImage.ImageSource
                   ^^^^^^^^^^^^^^^^^^^^^^^^
  File "T:\Dashboard\ITK-build\Wrapping\Generators\Python\itk\support\template_class.py", line 538, in __getattr__
    self._LoadModules()
  File "T:\Dashboard\ITK-build\Wrapping\Generators\Python\itk\support\template_class.py", line 548, in _LoadModules
    modules = base.itk_base_global_lazy_attributes[name]
              ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^
KeyError: 'RLEImage'

reported in:
https://open.cdash.org/tests/1863679199

I am not sure where and how this needs to be fixed as I am not all that familiar with what this involves:
https://github.com/InsightSoftwareConsortium/ITK/blob/master/Wrapping/Generators/Python/itk/support/types.py
https://github.com/InsightSoftwareConsortium/ITK/blob/master/Wrapping/WrapITKTypes.cmake

@thewtex any idea?

@thewtex
Copy link
Contributor

thewtex commented Jan 3, 2025

https://open.cdash.org/tests/1863679199

This is likely due to a build configuration, non-clean build tree, etc. @dzenanz

@dzenanz
Copy link
Member

dzenanz commented Jan 3, 2025

This build has a lot of non-default modules enabled:

  ITK_WRAP_PYTHON:BOOL=ON

  Module_ITKReview:BOOL=ON
  Module_MorphologicalContourInterpolation:BOOL=ON
  Module_RLEImage:BOOL=ON
  Module_Cuberille:BOOL=ON
  Module_IOMeshSTL:BOOL=ON
  Module_ITKVtkGlue:BOOL=OFF
  Module_ITKLevelSetsv4Visualization:BOOL=ON
  Module_Montage:BOOL=ON

  Module_ITKFEMRegistration:BOOL=ON
  BUILD_EXAMPLES:BOOL=ON

But as a dashboard, its build tree is cleaned nightly. A lot of warnings come up when lazy loading is disabled.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants