# Error loading models in FreeSurfer extension

**URL:** <https://discourse.slicer.org/t/error-loading-models-in-freesurfer-extension/35952>\
**Category:** Support\
**Created:** [May 6, 2024, 6:26pm UTC](https://discourse.slicer.org/t/error-loading-models-in-freesurfer-extension/35952 "2024-05-06T18:26:43Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![tbone](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/tbone/32/69140_2.png) [@tbone](https://discourse.slicer.org/u/tbone)\
**Post date:** [May 6, 2024, 6:26pm UTC](https://discourse.slicer.org/t/error-loading-models-in-freesurfer-extension/35952/1 "2024-05-06T18:26:44Z")

</div>

Hello,

I am trying to use the FreeSurfer Importer to import surface data into slicer. I’ve checked using Freeview that the data can be loaded and visualized, however when using the slicer’s extension an error occurs when loading the files. The log shows this:

Error: Loading /Applications/freesurfer/7.4.1/subjects/sub-CON006/lh.surf.white - Could not load file: /Applications/freesurfer/7.4.1/subjects/sub-CON006/lh.surf.white

Would be grateful for any help! Thanks in advance.

---

<div class="post-metadata">

**Author:** ![Sunderlandkyl](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/sunderlandkyl/32/79987_2.png) [@Sunderlandkyl](https://discourse.slicer.org/u/Sunderlandkyl)\
**Post date:** [May 6, 2024, 8:13pm UTC](https://discourse.slicer.org/t/error-loading-models-in-freesurfer-extension/35952/2 "2024-05-06T20:13:37Z")

</div>

Can you send a link to the full log?  
I can also take a look at the model if you can send me a link.

---

<div class="post-metadata">

**Author:** ![tbone](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/tbone/32/69140_2.png) [@tbone](https://discourse.slicer.org/u/tbone)\
**Post date:** [May 6, 2024, 8:22pm UTC](https://discourse.slicer.org/t/error-loading-models-in-freesurfer-extension/35952/3 "2024-05-06T20:22:58Z")

</div>

Hi I wasn’t sure how to send you the link so I’ve just copied it here sorry about that.

Critical | Stream  
Traceback (most recent call last):  
File “/Applications/Slicer.app/Contents/Extensions-32438/SlicerFreeSurfer/lib/Slicer-5.6/qt-scripted-modules/NiBabelModelIO.py”, line 169, in readModelNode  
geom = VolGeom.from\_surf\_footer(metadata)  
File “/Applications/Slicer.app/Contents/Extensions-32438/SlicerFreeSurfer/lib/Slicer-5.6/qt-scripted-modules/NiBabelModelIO.py”, line 70, in from\_surf\_footer  
shape=footer[‘volume’],  
KeyError: ‘volume’

Warning | Qt  
“/Applications/Slicer.app/Contents/Extensions-32438/SlicerFreeSurfer/lib/Slicer-5.6/qt-scripted-modules/NiBabelModelIO.py” - In “NiBabelModelIOFileReader” class, function ‘write’ is expected to return a string boolean !  
static void qSlicerIOManager::showLoadNodesResultDialog(bool, vtkMRMLMessageCollection \*) Errors occurred while loading nodes: “Error: Loading /Users/tony/Downloads/lh.surf.white - Could not load file: /Users/tony/Downloads/lh.surf.white\n”

and here is the link to the model: [https://drive.google.com/file/d/1ir9ujO30gsyYEmWNXCO52ZNK82FmZqnb/view?usp=drive\_link](https://drive.google.com/file/d/1ir9ujO30gsyYEmWNXCO52ZNK82FmZqnb/view?usp=drive_link)
