# Loadvolume nrrd Fail in mac, what's wrong?

**URL:** <https://discourse.slicer.org/t/loadvolume-nrrd-fail-in-mac-whats-wrong/22066>\
**Category:** Support\
**Tags:** python\
**Created:** [February 19, 2022, 12:16pm UTC](https://discourse.slicer.org/t/loadvolume-nrrd-fail-in-mac-whats-wrong/22066 "2022-02-19T12:16:06Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![jumbojing](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/jumbojing/32/10811_2.png) [@jumbojing](https://discourse.slicer.org/u/jumbojing)\
**Post date:** [February 19, 2022, 12:16pm UTC](https://discourse.slicer.org/t/loadvolume-nrrd-fail-in-mac-whats-wrong/22066/1 "2022-02-19T12:16:06Z")

</div>

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

```auto
 >>> 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

```

---

<div class="post-metadata">

**Author:** ![lassoan](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/lassoan/32/13_2.png) [@lassoan](https://discourse.slicer.org/u/lassoan)\
**Post date:** [February 19, 2022, 2:13pm UTC](https://discourse.slicer.org/t/loadvolume-nrrd-fail-in-mac-whats-wrong/22066/2 "2022-02-19T14:13:55Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![jumbojing](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/jumbojing/32/10811_2.png) [@jumbojing](https://discourse.slicer.org/u/jumbojing)\
**Post date:** [February 19, 2022, 11:09pm UTC](https://discourse.slicer.org/t/loadvolume-nrrd-fail-in-mac-whats-wrong/22066/3 "2022-02-19T23:09:57Z")

</div>

Slicer version is 4.13

---

<div class="post-metadata">

**Author:** ![lassoan](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/lassoan/32/13_2.png) [@lassoan](https://discourse.slicer.org/u/lassoan)\
**Post date:** [February 20, 2022, 5:30am UTC](https://discourse.slicer.org/t/loadvolume-nrrd-fail-in-mac-whats-wrong/22066/4 "2022-02-20T05:30:52Z")

</div>

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:

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

```
