bauerdavid/napari-nD-annotator

RuntimeError: Failed to import command at 'napari_nd_annotator:InterpolationWidget': undefined symbol: GOMP_loop_nonmonotonic_dynamic_start

Closed this issue · 3 comments

When attempting to import the napari_nd_annotator:InterpolationWidget command, I am encountering a RuntimeError with the message "Failed to import command at 'napari_nd_annotator:InterpolationWidget': /path/to/napari_nd_annotator/minimal_contour/_eikonal_wrapper.cpython-39-x86_64-linux-gnu.so: undefined symbol: GOMP_loop_nonmonotonic_dynamic_start".

I am using Python 3.9 in a Linux environment. This error occurs consistently whenever I attempt to use the InterpolationWidget command.

Steps to reproduce:

Install napari_nd_annotator package version ? in a Linux environment with Python 3.9.
Attempt to import the napari_nd_annotator:InterpolationWidget command.
Encounter the RuntimeError with the message "Failed to import command at 'napari_nd_annotator:InterpolationWidget': /path/to/napari_nd_annotator/minimal_contour/_eikonal_wrapper.cpython-39-x86_64-linux-gnu.so: undefined symbol: GOMP_loop_nonmonotonic_dynamic_start".

Expected behavior:
The napari_nd_annotator:InterpolationWidget command should import successfully without any errors.

Actual behavior:
The RuntimeError occurs with the message "Failed to import command at 'napari_nd_annotator:InterpolationWidget': /path/to/napari_nd_annotator/minimal_contour/_eikonal_wrapper.cpython-39-x86_64-linux-gnu.so: undefined symbol: GOMP_loop_nonmonotonic_dynamic_start".

Additional information:
It seems that the _eikonal_wrapper shared library used by the InterpolationWidget command is missing a symbol called GOMP_loop_nonmonotonic_dynamic_start. I have attempted to reinstall the napari_nd_annotator package and its dependencies, but the error persists. I have also tried building the _eikonal_wrapper shared library from source using the command python setup.py build_ext --inplace, but this did not resolve the issue.

Please let me know if there is any additional information I can provide to help resolve this issue. Thank you.

Hey @marco-meer,
it seems that a compile argument was missing. I managed to solve this, and pushed the fix to the repository. Could you check if it works by installing the plugin from the repo? The command is pip install git+https://github.com/bauerdavid/napari-nD-annotator.git.
Sorry for the inconvenience!

Thanks for your quick response. After doing what you suggested, I got RuntimeError: Failed to import command at 'napari_nd_annotator:AnnotatorWidget': No module named 'SimpleITK', but after running pip install SimpleITK it worked.

Great, I'm glad it works!
(The issue with SimpleITK will be handled later on.)