


{"id":285603,"date":"2023-05-24T23:07:44","date_gmt":"2023-05-24T23:07:44","guid":{"rendered":"\/forum\/forums\/reply\/285603\/"},"modified":"2023-05-24T23:07:44","modified_gmt":"2023-05-24T23:07:44","slug":"285603","status":"publish","type":"reply","link":"https:\/\/innovationspace.ansys.com\/forum\/forums\/reply\/285603\/","title":{"rendered":"Reply To: Lumerical Python API with newest Linux version 8.6"},"content":{"rendered":"<p>&lt;p&gt;@Minkyu,&lt;\/p&gt;&lt;p&gt;Does the new operating system have all the required libraries to run Ansys Lumerical? &lt;br&gt;&nbsp; &nbsp; &gt; <a href=\"https:\/\/optics.ansys.com\/hc\/en-us\/articles\/360043320733-Installing-on-a-shared-filesystem-on-Linux\">Installing on a shared filesystem on Linux &ndash; Ansys Optics<\/a> &lt;br&gt;Did you update your environment to the new install path?&lt;br&gt;&nbsp; &nbsp; &gt; <a href=\"https:\/\/optics.ansys.com\/hc\/en-us\/articles\/5771091294739\">How to run Lumerical API (Python) scripts in Linux &ndash; Ansys Optics<\/a>&nbsp;&lt;\/p&gt;&lt;p&gt;How are you running the script? Directly from the Terminal\/CLI or using a job scheduler? Or from the <em>CAD\/GUI &gt;&gt; Script file editor<\/em> window with <em>Python Integration = &#8220;active&#8221;<\/em> as shown in the image?&nbsp;&lt;\/p&gt;&lt;p&gt;<img decoding=\"async\" src=\"\/forum\/wp-content\/uploads\/sites\/2\/2023\/05\/24-05-2023-1684965767-mceclip0.png\" \/>&lt;\/p&gt;&lt;p&gt;Running the 1 liner script, &#8220;lumapi.FDTD(filename=&#8221;test.fsp&#8221;)&#8221; will simply open and close the FDTD CAD window.&nbsp;&lt;\/p&gt;&lt;p&gt;Try the script below on your new system and see if it runs and a new simulation, &#8220;testapi.fsp&#8221; is created.&nbsp;&lt;\/p&gt;<\/p>\n<pre>import lumapi&lt;br&gt;fdtd = lumapi.FDTD()&lt;br&gt;fdtd.addfdtd()&lt;br&gt;fdtd.addring()&lt;br&gt;fdtd.addmesh()&lt;br&gt;fdtd.save(\"testapi.fsp\")<\/pre>\n<p>&lt;p&gt;&nbsp;&lt;\/p&gt;<\/p>\n","protected":false},"template":"","class_list":["post-285603","reply","type-reply","status-publish","hentry"],"aioseo_notices":[],"acf":[],"_links":{"self":[{"href":"https:\/\/innovationspace.ansys.com\/forum\/wp-json\/wp\/v2\/replies\/285603","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/innovationspace.ansys.com\/forum\/wp-json\/wp\/v2\/replies"}],"about":[{"href":"https:\/\/innovationspace.ansys.com\/forum\/wp-json\/wp\/v2\/types\/reply"}],"version-history":[{"count":0,"href":"https:\/\/innovationspace.ansys.com\/forum\/wp-json\/wp\/v2\/replies\/285603\/revisions"}],"wp:attachment":[{"href":"https:\/\/innovationspace.ansys.com\/forum\/wp-json\/wp\/v2\/media?parent=285603"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}