# General Registration Elastix

**URL:** <https://discourse.slicer.org/t/general-registration-elastix/3680>\
**Category:** Support\
**Created:** [August 7, 2018, 1:42pm UTC](https://discourse.slicer.org/t/general-registration-elastix/3680 "2018-08-07T13:42:46Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![Laura](https://avatars.discourse-cdn.com/v4/letter/l/a4c791/32.png) [@Laura](https://discourse.slicer.org/u/Laura)\
**Post date:** [August 7, 2018, 1:42pm UTC](https://discourse.slicer.org/t/general-registration-elastix/3680/1 "2018-08-07T13:42:46Z")

</div>

Good afternoon,

I try to use “General Registration Elastix” module extension but it tells me

> Traceback (most recent call last):
> 
> File "/home/miv/seimpere/.config/NA-MIC/Extensions-27331/SlicerElastix/lib/Slicer-4.9/qt-scripted-modules/Elastix.py", line 327, in onApplyButton
> 
> movingVolumeMaskNode = self.movingVolumeMaskSelector.currentNode())
> 
> File "/home/miv/seimpere/.config/NA-MIC/Extensions-27331/SlicerElastix/lib/Slicer-4.9/qt-scripted-modules/Elastix.py", line 578, in registerVolumes
> 
> ep = self.startElastix(inputParamsElastix)
> 
> File "/home/miv/seimpere/.config/NA-MIC/Extensions-27331/SlicerElastix/lib/Slicer-4.9/qt-scripted-modules/Elastix.py", line 485, in startElastix
> 
> stdout=subprocess.PIPE, universal\_newlines=True)
> 
> File "/home/miv/seimpere/Slicer-4.9.0-2018-08-01-linux-amd64/lib/Python/lib/python2.7/subprocess.py", line 390, in **init**
> 
> errread, errwrite)
> 
> File "/home/miv/seimpere/Slicer-4.9.0-2018-08-01-linux-amd64/lib/Python/lib/python2.7/subprocess.py", line 1024, in \_execute\_child
> 
> raise child\_exception
> 
> OSError: [Errno 2] No such file or directory

Do you know what’s wrong ?  
Thanks  
Laura

---

<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:** [August 7, 2018, 2:17pm UTC](https://discourse.slicer.org/t/general-registration-elastix/3680/2 "2018-08-07T14:17:14Z")

</div>

I haven’t tried Elastix on Linux. Maybe you need to download and install Elastix manually and then in Slicer in the Elastix registration module, set path of manually installed executable in Advanced settings.

---

<div class="post-metadata">

**Author:** ![Laura](https://avatars.discourse-cdn.com/v4/letter/l/a4c791/32.png) [@Laura](https://discourse.slicer.org/u/Laura)\
**Post date:** [August 7, 2018, 2:25pm UTC](https://discourse.slicer.org/t/general-registration-elastix/3680/3 "2018-08-07T14:25:40Z")

</div>

Ok thanks, I try that but it is very strange because 3h ago it was working…

---

<div class="post-metadata">

**Author:** ![jcfr](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/jcfr/32/17825_2.png) [@jcfr](https://discourse.slicer.org/u/jcfr)\
**Post date:** [August 7, 2018, 2:33pm UTC](https://discourse.slicer.org/t/general-registration-elastix/3680/4 "2018-08-07T14:33:24Z")

</div>

Hi @Laura ,

I un-flagged your question, feel free to comment and mark it as resolved.

---

<div class="post-metadata">

**Author:** ![brhoom](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/brhoom/32/1228_2.png) [@brhoom](https://discourse.slicer.org/u/brhoom)\
**Post date:** [August 7, 2018, 2:34pm UTC](https://discourse.slicer.org/t/general-registration-elastix/3680/5 "2018-08-07T14:34:57Z")

</div>

If it was working before then the binaries has no problem unless you changed them. Try to empty the output folder and restart slicer.

---

<div class="post-metadata">

**Author:** ![Laura](https://avatars.discourse-cdn.com/v4/letter/l/a4c791/32.png) [@Laura](https://discourse.slicer.org/u/Laura)\
**Post date:** [August 7, 2018, 2:45pm UTC](https://discourse.slicer.org/t/general-registration-elastix/3680/6 "2018-08-07T14:45:41Z")

</div>

I restore all defaults and reload and install everything again and that works !!! Thanks a lot for your help !
