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

Python wrappings don't work in RelWithDebInfo mode #143

Open
dzenanz opened this issue Feb 21, 2022 · 0 comments
Open

Python wrappings don't work in RelWithDebInfo mode #143

dzenanz opened this issue Feb 21, 2022 · 0 comments

Comments

@dzenanz
Copy link
Member

dzenanz commented Feb 21, 2022

import itk
parameter_object = itk.ParameterObject.New()

produces:

Traceback (most recent call last):
  File "C:\Dev\ITK-py\Wrapping\Generators\Python\itk\support\lazy.py", line 137, in __getattribute__
    base.itk_load_swig_module(module, namespace)
  File "C:\Dev\ITK-py\Wrapping\Generators\Python\itk\support\base.py", line 110, in itk_load_swig_module
    l_module = loader.load(swig_module_name)
  File "C:\Dev\ITK-py\Wrapping\Generators\Python\itk\support\base.py", line 259, in load
    l_spec.loader.exec_module(l_module)  # pytype: disable=attribute-error
  File "<frozen importlib._bootstrap_external>", line 728, in exec_module
  File "<frozen importlib._bootstrap>", line 219, in _call_with_frames_removed
  File "C:\Dev\ITK-py\Wrapping\Generators\Python\itk\support\..\ElastixPython.py", line 13, in <module>
    from . import _ElastixPython
ImportError: cannot import name '_
' from 'itk' (C:\Dev\ITK-py\Wrapping\Generators\Python\itk\__init__.py)
python-BaseException

Process finished with exit code -1

_ElastixPython.pyd exists on disk.

If Release mode is used, everything works as expected. If this is ever fixed, a humane warning in #142 should be removed.

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

1 participant