nnInteractive with ITK-SNAP on macOS – "Error creating session on DLS server: Internal Server Error"

Hi everyone,

I’m trying to use nnInteractive with a server running on macOS, but I’m running into an issue when I try to segment an image.

My setup is the following:

  • I have the itksnap_dls server running from a Python environment.

  • I start the bridge from the macOS terminal (bash).

  • Both the server and the bridge appear to start without any obvious errors.

However, as soon as I try to segment an image in ITK-SNAP, I get the following error:

Error creating session on DLS server: Internal Server Error.

I’ve spent quite a bit of time troubleshooting and have tried everything I could think of, but the problem persists. Important to say that it was working before and then just crashed out of nowhere.

Has anyone encountered this issue before or knows what could be causing it? Is there any additional configuration required, or are there logs I should check to identify why the DLS server is returning an internal server error?

Any help or suggestions would be greatly appreciated.

Thanks in advance!