Loadvolume nrrd Fail in mac, what's wrong?

Loadvolume .nrrd file failed in mac, what’s wrong?

 >>> masterVolumeNode = slicer.util.loadVolume("/Users/liguimei/Documents/slicerTempt/pedicle-triangle-planner/testa/vertebra2stl/CT-chest.nrrd")


Traceback (most recent call last):
  File "<console>", line 1, in <module>
  File "/Applications/Slice98.app/Contents/bin/Python/slicer/util.py", line 865, in loadVolume
    return loadNodeFromFile(filename, filetype, properties, returnNode)
  File "/Applications/Slice98.app/Contents/bin/Python/slicer/util.py", line 636, in loadNodeFromFile
    success = app.coreIOManager().loadNodes(filetype, properties, loadedNodesCollection)
ValueError: Could not find matching overload for given arguments:
('VolumeFile', {'fileName': '/Users/liguimei/Documents/slicerTempt/pedicle-triangle-planner/testa/vertebra2stl/CT-chest.nrrd'}, (vtkmodules.vtkCommonCore.vtkCollection)0x187e17f48)
 The following slots are available:
loadNodes(qSlicerIO::IOFileType fileType, qSlicerIO::IOProperties parameters, vtkCollection loadedNodes, vtkMRMLMessageCollection userMessages) -> bool
loadNodes(qSlicerIO::IOFileType fileType, qSlicerIO::IOProperties parameters, vtkCollection loadedNodes) -> bool
loadNodes(qSlicerIO::IOFileType fileType, qSlicerIO::IOProperties parameters) -> bool
loadNodes(qSlicerIO::IOFileType fileType, qSlicerIO::IOProperties parameters, vtkCollection loadedNodes, vtkMRMLMessageCollection userMessages) -> bool
loadNodes(qSlicerIO::IOFileType fileType, qSlicerIO::IOProperties parameters, vtkCollection loadedNodes) -> bool
loadNodes(qSlicerIO::IOFileType fileType, qSlicerIO::IOProperties parameters) -> bool

This function should works well. What Slicer version did you use?

Slicer version is 4.13

I could not reproduce this with the latest Slicer Preview Release on mac. Try the very latest version.

If the problem persists then you can try calling the loadNodes method directly as in the code snippet below and adjust the arguments to see which one caused trouble:

loadedNodesCollection = vtk.vtkCollection()
slicer.app.ioManager().loadNodes('VolumeFile',{'fileName': '/Users/liguimei/Documents/slicerTempt/pedicle-triangle-planner/testa/vertebra2stl/CT-chest.nrrd'}, loadedNodesCollection)