# Completed with errors 

**URL:** <https://discourse.slicer.org/t/completed-with-errors/23580>\
**Category:** Support\
**Tags:** matlab\
**Created:** [May 25, 2022, 3:33am UTC](https://discourse.slicer.org/t/completed-with-errors/23580 "2022-05-25T03:33:22Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![maria\_2000](https://avatars.discourse-cdn.com/v4/letter/m/b2d939/32.png) [@maria\_2000](https://discourse.slicer.org/u/maria_2000)\
**Post date:** [May 25, 2022, 3:33am UTC](https://discourse.slicer.org/t/completed-with-errors/23580/1 "2022-05-25T03:33:22Z")

</div>

Hi.When I use the Matlab Module Generator I’m facing with these errors. How can I solve these errors?

ERROR: Unable to find Matlab executable defined in the SLICER\_MATLAB\_EXECUTABLE\_PATH environment variable: 0

ERROR: Failed to start Matlab process

ERROR: Cannot connect to the server  
(Version:4.11)  
(Windows 10)

---

<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:** [May 25, 2022, 3:55am UTC](https://discourse.slicer.org/t/completed-with-errors/23580/2 "2022-05-25T03:55:24Z")

</div>

It means that Matlab executable is not found. Have you specified it in “Matlab module generator” module?

 ![image](https://us1.discourse-cdn.com/flex002/uploads/slicer/original/3X/5/3/537b01571e3671af3b7fef86fd40925fd8e04d4e.png)

That said, i haven’t tested the extension for a good while now. The extension was created about 10 years ago, when Matlab was still very widely used and Python was not yet that popular. Things have changed a lot since then so despite some advantages of Matlab (more consistent style, maturity, and documentation across all packages), Python is a much more favorable ecosystem overall. I would recommend switching to Python instead of investing any time into developing or troubleshooting Matlab-based solutions.

---

<div class="post-metadata">

**Author:** ![maria\_2000](https://avatars.discourse-cdn.com/v4/letter/m/b2d939/32.png) [@maria\_2000](https://discourse.slicer.org/u/maria_2000)\
**Post date:** [May 25, 2022, 8:59am UTC](https://discourse.slicer.org/t/completed-with-errors/23580/3 "2022-05-25T08:59:02Z")

</div>

Thank you so much for the detailed explanation.
