Hello everyone,
Iβm trying to load a custom scripted module called HallerIndex into 3D Slicer 5.8.1 on macOS, but the module is not being recognized by the application.
My goals:
The module aims to calculate the Haller Index from CT images, using a simple UI built in Qt Designer. It is structured as a standard ScriptedLoadableModule.
My folder structure:
objectivec
CopiarEditar
HallerIndex_Extracted/
βββ CMakeLists.txt
βββ HallerIndex/
βββ CMakeLists.txt
βββ HallerIndex.py
βββ __init__.py
βββ Resources/
βββ UI/
βββ HallerIndex.ui
Steps already taken:
- I added the path in Application Settings > Modules > Additional module paths.
- Restarted Slicer.
- Searched for the module using the Module Finder.
- Tried loading via
slicer.modules.hallerindex
in the Python console. - Also tested with Slicer 5.8.0 and 5.6.2.
- Verified naming, indentation, and ScriptedLoadableModule compliance.
Result:
- The module doesnβt appear in the module list.
- The Python console returns:
AttributeError: module 'modules' has no attribute 'hallerindex'
- When trying to load it via the Extension Wizard, I get:
KeyError: script does not set 'EXTENSION_HOMEPAGE'
or
EOFError: could not find project
What I need:
Iβd like help identifying what might be wrong in the setup or code thatβs preventing the module from loading. Has anyone successfully installed a custom ScriptedLoadableModule in Slicer 5.8.1 on macOS recently?
Thank you in advance!
βGiovani