# Error when using python script to simulate plecs

**URL:** <https://forum.plexim.com/t/error-when-using-python-script-to-simulate-plecs/746>\
**Category:** PLECS\
**Tags:** script, error, unexpected\
**Created:** [March 3, 2020, 8:52am UTC](https://forum.plexim.com/t/error-when-using-python-script-to-simulate-plecs/746 "2020-03-03T08:52:08Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![lzx](https://avatars.discourse-cdn.com/v4/letter/l/c77e96/32.png) [@lzx](https://forum.plexim.com/u/lzx)\
**Post date:** [March 3, 2020, 8:52am UTC](https://forum.plexim.com/t/error-when-using-python-script-to-simulate-plecs/746/1 "2020-03-03T08:52:08Z")

</div>

computer system version :windows 10 professionalpython version : 3.7.0PLECS version :4.3.6Hi, when I was using the python script to simulate PLECS model ( a CLLC resonant DAB with dead time effect), this error occured occasionally:Error in component ‘cllc17/Crt\_DAB/SL/Turn-on Delay’: Initialization commands cannot be evaluated: load: unable to find file C:\Program Files\Plexim\PLECS 4.3 (64 bit)\octave\share\octave\octave\_packages. The PLECS just got stuck and there wasn’t any output or simulation data on the scope.Then, I restarted PLECS and got this error:Error in component ‘cllc16/Crt\_DAB/SL/Turn-on Delay’ Initialization commands cannot be evaluated: unable to get last error description.HOWEVER, when I copied the same circuit and created a new file, it worked fine.I am wondering how this happens and what can I do to avoid such error.

[cllc17.plecs](https://forum.plexim.com/uploads/short-url/hiVoMytT02B24HMkeocMBTt19OF.plecs) (130 KB)

---

<div class="post-metadata">

**Author:** ![Kris\_Eberle](https://dub1.discourse-cdn.com/flex006/user_avatar/forum.plexim.com/kris_eberle/32/6_2.png) [@Kris\_Eberle](https://forum.plexim.com/u/Kris_Eberle)\
**Post date:** [May 29, 2020, 2:36pm UTC](https://forum.plexim.com/t/error-when-using-python-script-to-simulate-plecs/746/2 "2020-05-29T14:36:02Z")

</div>

Hello,

Unfortunately we at Plexim can’t help much without your Python file, but since that is an external tool the issue may also be outside the scope of our support.

Kris
