pyigtl icon indicating copy to clipboard operation
pyigtl copied to clipboard

Exception when 3D Slicer sends a message based on a vtkMRMLTextNode to pyigtl client

Open guisoares9 opened this issue 11 months ago • 1 comments

Description:

The error is reproduced when 3D Slicer is a OpenIGTLink Server with a vtkMRMLTextNode in the scene that is converted to OpenIGTLink String message internally and sent to a pyigtl client. On the server side OpenIGTLinkIF extension is used.

Error:

File "/home/$USER/.local/lib/python3.8/site-packages/pyigtl/messages.py", line 90, in decode_text
    raise("Unsupported encoding: "+str(encoding))
TypeError: exceptions must derive from BaseException
ERROR:root:Error while receiving data: exceptions must derive from BaseException

guisoares9 avatar Dec 30 '24 14:12 guisoares9

Update: This only happens if the content of the vtkMRMLTextNode encoding type is not set

guisoares9 avatar Dec 30 '24 16:12 guisoares9