Skip to content

CapsulProcess depends on Morphologist #72

@ylep

Description

@ylep

On the capsul3 branch, CapsulProcess cannot be instantiated when Morphologist is missing:

Traceback (most recent call last):
  File "/casa/host/build/python/brainvisa/processing/qt4gui/neuroProcessesGUI.py", line 3646, in showProcess
    process = brainvisa.processes.getProcessInstance(process_id)
  File "/casa/host/build/python/brainvisa/processes.py", line 4752, in getProcessInstance
    result = result()
  File "/casa/host/build/python/brainvisa/processing/capsul_process.py", line 444, in __init__
    self.setup_capsul_process()
  File "/casa/host/build/python/brainvisa/processing/capsul_process.py", line 479, in setup_capsul_process
    capsul = self.get_capsul()
  File "/casa/host/build/python/brainvisa/processing/capsul_process.py", line 766, in get_capsul
    capsul = self.init_capsul(context)
  File "/casa/host/build/python/brainvisa/processing/capsul_process.py", line 738, in init_capsul
    capsul.config.import_dict(initial_config)
  File "/casa/host/src/capsul/master/capsul/config/configuration.py", line 266, in import_dict
    super().import_dict(d, clear=False)
  File "/casa/host/build/python/soma/controller/controller.py", line 714, in import_dict
    controller.import_dict(value, clear=clear)
  File "/casa/host/src/capsul/master/capsul/config/configuration.py", line 216, in import_dict
    __import__(module_name)
ModuleNotFoundError: No module named 'morphologist.capsul.toolbox_init'

'python_modules': ['morphologist.capsul.toolbox_init'],

Removing this line fixes the issue, but I guess it probably breaks Morphologist (untested).

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions