Tutorial maker extension issues

Tutorial maker seems like a very useful module and would like to give a try, but I can’t seem to get it to work on preview using the example on the source repo. My interface doesn’t look like the example. There is no run and annotate. When I try edit annotations, I get this error:


------------------------------
Reloading module: TutorialMaker
------------------------------



Version Date: 2025/03/04-07:00PM
Traceback (most recent call last):
  File "/Users/amaga/Desktop/Slicer.app/Contents/Extensions-33550/TutorialMaker/lib/Slicer-5.9/qt-scripted-modules/TutorialMaker.py", line 265, in OpenAnnotator
    Annotator.open_json_file(os.path.dirname(slicer.util.modulePath("TutorialMaker")) + "/Outputs/Raw/Tutorial.json")
  File "/Users/amaga/Desktop/Slicer.app/Contents/Extensions-33550/TutorialMaker/lib/Slicer-5.9/qt-scripted-modules/Lib/TutorialGUI.py", line 805, in open_json_file
    with open(filepath, encoding='utf-8') as file:
FileNotFoundError: [Errno 2] No such file or directory: '/Users/amaga/Desktop/Slicer.app/Contents/Extensions-33550/TutorialMaker/lib/Slicer-5.9/qt-scripted-modules/Outputs/Raw/Tutorial.json'
[Qt] QImage::scaled: Image is a null image
[Qt] QImage::scaled: Image is a null image
[Qt] QImage::scaled: Image is a null image
[Qt] QImage::scaled: Image is a null image

I clicked on create a new tutorial, which is what I want to do really, and the python file is created in the resource folder, but I can’t seem to start annotating/capturing.

@lassoan @pieper any thoughts?

Hi Murat,

Tutorial Maker is an experimental extension. For now, we haven’t implemented the process of recording the tutorial. So to use the extension you need to create a Python script that runs through the tutorial and takes the screenshots.

Use the 4-minute tutorial script as a sample.

Also, I saw that you are using the version 5.9. We recommend using the latest preview version since it is an experimental extension, the extension version available in 5.9 will have some problems that we already fixed after the version has been released to stable. Or you can download the extension from the GitHub repository and try with the latest version.

If you have any problem during the use, open an issue or post here in the forum, tag me so I can help you!

1 Like