Skip to content

Commit

Permalink
BUG: Remove declared but undefined method
Browse files Browse the repository at this point in the history
Remove declared but undefined method from
`itk::GradientDifferenceImageToImageMetric`.

Fixes:
```
Loading ITKRegistrationCommon... Traceback (most recent call last):
  File "<string>", line 1, in <module>
  File "/home/vsts/work/1/s-build/Wrapping/Generators/Python/itk/support/lazy.py", line 137, in __getattribute__
    base.itk_load_swig_module(module, namespace)
  File "/home/vsts/work/1/s-build/Wrapping/Generators/Python/itk/support/base.py", line 102, in itk_load_swig_module
    itk_load_swig_module(dep, namespace)
  File "/home/vsts/work/1/s-build/Wrapping/Generators/Python/itk/support/base.py", line 110, in itk_load_swig_module
    l_module = loader.load(swig_module_name)
  File "/home/vsts/work/1/s-build/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 850, in exec_module
  File "<frozen importlib._bootstrap>", line 228, in _call_with_frames_removed
  File "/home/vsts/work/1/s-build/Wrapping/Generators/Python/itk/support/../ITKRegistrationCommonPython.py", line 13,
  in <module>
    from . import _ITKRegistrationCommonPython
ImportError: /home/vsts/work/1/s-build/Wrapping/Generators/Python/itk/_ITKRegistrationCommonPython.so:
undefined symbol:
_ZNK3itk36GradientDifferenceImageToImageMetricINS_5ImageIsLj3EEES2_E26WriteGradientImagesToFilesEv
itkTestDriver: Process exited with return value: 1
```

raised for example in:
https://dev.azure.com/itkrobotlinuxpython/ITK.Linux.Python/_build/results?buildId=5739&view=logs&j=0da5d1d9-276d-5173-c4c4-9d4d4ed14fdb&t=f58be928-45a1-58e7-c1ad-04869565b3f4&l=13511

Raised when wrapping was added for the class in c41b29c.
  • Loading branch information
jhlegarreta authored and dzenanz committed Dec 6, 2021
1 parent 58f738a commit 98e030b
Showing 1 changed file with 0 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -135,10 +135,6 @@ class ITK_TEMPLATE_EXPORT GradientDifferenceImageToImageMetric : public ImageToI
void
Initialize() override;

/** Write gradient images to a files for debugging purposes. */
void
WriteGradientImagesToFiles() const;

/** Set/Get the value of Delta used for computing derivatives by finite
* differences in the GetDerivative() method */
itkSetMacro(DerivativeDelta, double);
Expand Down

0 comments on commit 98e030b

Please sign in to comment.