Giter Site home page Giter Site logo

Comments (8)

jamesobutler avatar jamesobutler commented on June 2, 2024

It appears that the CrossSectionAnalysis module defines no other modules as a dependency (https://github.com/vmtk/SlicerExtension-VMTK/blob/1cfe4da260bab49a22ee0a740b87805f348230d8/CrossSectionAnalysis/CrossSectionAnalysis.py#L24) where listed dependent modules are loaded first prior to loading the specified module.

Although SlicerVMTK defines a dependency on ExtraMarkups in its s4ext file, that is only so that ExtraMarkups is automatically installed when installing SlicerVMTK from the extensions manager. It doesn’t specify the relation of modules in terms of loading dependency order.

from slicer.

chir-set avatar chir-set commented on June 2, 2024

It doesn’t specify the relation of modules in terms of loading dependency order.

I added 'ExtraMarkups' as a dependency in the relevant modules and things got worse, additional messages are in stdout:

When loading module "CrossSectionAnalysis" , the dependency "ExtraMarkups" failed to be loaded.
void ctkComboBox::setCurrentUserDataAsString(QString) : No item found with user data string "2"
When loading module "GuidedArterySegmentation" , the dependency "ExtraMarkups" failed to be loaded.
When loading module "StenosisMeasurement3D" , the dependency "ExtraMarkups" failed to be loaded.

All modules work as expected once Slicer is up.

Thank you for your reply @jamesobutler .

from slicer.

jamesobutler avatar jamesobutler commented on June 2, 2024

From my understanding “ExtraMarkups” is the extension name and not the module names. Where the CrossSectionAnalysis module may have a dependency on the “Shape” or “Label modules. In the module, the dependencies is other modules and not extensions.

from slicer.

chir-set avatar chir-set commented on June 2, 2024

the extension name and not the module names

You are right about this. However, using 'Shape' as module name does not cancel the original annoying stdout messages.

Failed to load vtkSlicerStenosisMeasurement3DModuleLogicPython: No module named vtkSlicerShapeModuleMRMLPython
Failed to load vtkSlicerCrossSectionAnalysisModuleLogicPython: No module named vtkSlicerShapeModuleMRMLPython
Error(s):
CLI executable: /home/user/programs/Slicer/slicer.org/Extensions-32703/SlicerVMTK/lib/Slicer-5.7/qt-loadable-modules/vtkvmtk.py
The process failed to start. Either the invoked program is missing, or you may have insufficient permissions to invoke the program.
Fail to instantiate module "vtkvmtk"
The following modules failed to be instantiated:
vtkvmtk
void ctkComboBox::setCurrentUserDataAsString(QString) : No item found with user data string "2"

I think that the solution would be to load anything close to core, like additional markups, before loading usual extensions. This would require core developments, time, funding... ...

Thank you for your time.

from slicer.

lassoan avatar lassoan commented on June 2, 2024

Failed to load vtkSlicerStenosisMeasurement3DModuleLogicPython: No module named vtkSlicerShapeModuleMRMLPython
Failed to load vtkSlicerCrossSectionAnalysisModuleLogicPython: No module named vtkSlicerShapeModuleMRMLPython

These are due to #7579

CLI executable: /home/user/programs/Slicer/slicer.org/Extensions-32703/SlicerVMTK/lib/Slicer-5.7/qt-loadable-modules/vtkvmtk.py
The process failed to start. Either the invoked program is missing, or you may have insufficient permissions to invoke the program.
Fail to instantiate module "vtkvmtk"
The following modules failed to be instantiated:
vtkvmtk

This harmless error message is well known and it is safe to ignore. We can address it as VTK remote module Python wrapping and packaging is improved.

void ctkComboBox::setCurrentUserDataAsString(QString) : No item found with user data string "2"

You can add a breakpoint into this method to see what is the root cause.

from slicer.

chir-set avatar chir-set commented on June 2, 2024

Thank you @lassoan for addressing this with a PR.

The vtkvmtk message is indeed old and harmless.

The other one (::setCurrentUserDataAsString) appeared during tinkering, and does not appear otherwise. I'll get deeper into it if necessary.

from slicer.

chir-set avatar chir-set commented on June 2, 2024

Since 9c87503, the messages in stdout related to vtkSlicerShapeModuleMRMLPython are indeed gone.

('Fail to instantiate module "vtkvmtk"' still persists and was not the target of the patch.)

Thank you all.

@lassoan @jcfr @jamesobutler

from slicer.

lassoan avatar lassoan commented on June 2, 2024

Great, thank you for testing.

from slicer.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.