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 installation issues #7

Closed
jluethi opened this issue Jan 9, 2025 · 2 comments · Fixed by #8
Closed

ITK installation issues #7

jluethi opened this issue Jan 9, 2025 · 2 comments · Fixed by #8

Comments

@jluethi
Copy link
Collaborator

jluethi commented Jan 9, 2025

When deploying this task on the Pelkmans lab Fractal server, we run into issues with the automatic task installation. Import of ITK libraries fails in the following way:

TASK ERROR: Task name: Compute Registration (elastix), position in Workflow: 1
TRACEBACK:
Traceback (most recent call last):
  File "/path/to/fractal-server-env/lib/python3.10/site-packages/fractal_server/app/runner/v2/runner_functions_low_level.py", line 111, in run_single_task
    raise e
  File "/path/to/fractal-server-env/lib/python3.10/site-packages/fractal_server/app/runner/v2/runner_functions_low_level.py", line 103, in run_single_task
    _call_command_wrapper(
  File "/path/to/fractal-server-env/lib/python3.10/site-packages/fractal_server/app/runner/v2/runner_functions_low_level.py", line 55, in _call_command_wrapper
    raise TaskExecutionError(err)
fractal_server.app.runner.exceptions.TaskExecutionError: Traceback (most recent call last):
  File "/net/nfs4/pelkmanslab-fileserver-fractal/path/to/FRACTAL_TASKS_DIR/17/abbott/0.0.1/venv/lib/python3.10/site-packages/abbott/fractal_tasks/compute_registration_elastix.py", line 24, in <module>
    from abbott.registration.itk_elastix import register_transform_only
  File "/path/to/FRACTAL_TASKS_DIR/17/abbott/0.0.1/venv/lib/python3.10/site-packages/abbott/registration/itk_elastix.py", line 9, in <module>
    def cast(img: itk.Image, out_type: type):
  File "/path/to/FRACTAL_TASKS_DIR/17/abbott/0.0.1/venv/lib/python3.10/site-packages/itk/support/lazy.py", line 138, in __getattribute__
    base.itk_load_swig_module(module, namespace)
  File "/path/to/FRACTAL_TASKS_DIR/17/abbott/0.0.1/venv/lib/python3.10/site-packages/itk/support/base.py", line 94, in itk_load_swig_module
    itk_load_swig_module(dep, namespace)
  File "/path/to/FRACTAL_TASKS_DIR/17/abbott/0.0.1/venv/lib/python3.10/site-packages/itk/support/base.py", line 130, in itk_load_swig_module
    l_module = loader.load(swig_module_name)
  File "/path/to/FRACTAL_TASKS_DIR/17/abbott/0.0.1/venv/lib/python3.10/site-packages/itk/support/base.py", line 289, in load
    l_spec.loader.exec_module(l_module)  # pytype: disable=attribute-error
  File "/path/to/FRACTAL_TASKS_DIR/17/abbott/0.0.1/venv/lib/python3.10/site-packages/itk/support/../ITKPyBasePython.py", line 63, in <module>
    from itk.pyBasePython import *
  File "/path/to/FRACTAL_TASKS_DIR/17/abbott/0.0.1/venv/lib/python3.10/site-packages/itk/pyBasePython.py", line 15, in <module>
    from . import _ITKCommonPython
ImportError: libtbb.so.12: cannot open shared object file: No such file or directory

I'll document what I find out about it here

@jluethi
Copy link
Collaborator Author

jluethi commented Jan 9, 2025

It appears to be caused by this issue here: InsightSoftwareConsortium/ITK#4713

@jluethi
Copy link
Collaborator Author

jluethi commented Jan 9, 2025

I will try downgrading to itk 5.3.0, which reportedly doesn't have this issue.
This also requires numpy < 2 and a compatible version of itk-elastix (itk-elastix==0.17.1 is compatible with itk 5.3.0)

I have manually installed this in the current server env to debug and if that works, we can pin those versions for the package & test whether they install correctly.

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

Successfully merging a pull request may close this issue.

1 participant