Got error msg while applying MedSam2

Operating system: windows
Slicer version: 5.11.0-2026-01-19
Expected behavior: no errors
Actual behavior: errors with pickling

Hi all,

Trying to work with MedSam2 and got the following error while clicking on “Segment Middle Slice” button.

“Traceback (most recent call last):

File “C:\Slicer.5.10.0\3D Slicer 5.11.0-2026-01-19\lib\Python\Lib\site-packages\numpy\lib\_npyio_impl.py”, line 494, in load

return pickle.load(fid, **pickle_kwargs)

^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

_pickle.UnpicklingError: invalid load key, ‘<’.

The above exception was the direct cause of the following exception:

Traceback (most recent call last):

File “C:/Slicer.5.10.0/MedSAMSlicer-MedSAM2/MedSAMSlicer-MedSAM2/slicer/MedSAM2/MedSAM2/MedSAM2.py”, line 618, in getMiddleMask

segmentation_mask = np.load(result_path, allow_pickle=True)[‘segs’]

^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

File “C:\Slicer.5.10.0\3D Slicer 5.11.0-2026-01-19\lib\Python\Lib\site-packages\numpy\lib\_npyio_impl.py”, line 496, in load

raise pickle.UnpicklingError(

_pickle.UnpicklingError: Failed to interpret file ‘C:\\Users\\AIDENZ~1\\AppData\\Local\\Temp\\tmpgwrurd7b/result.npz’ as a pickle

Any suggestion or help will be well appreciated. Thanks in advance.

Aiden