June 15, 2023 at 1:41 am
Ansys Employee
@Color,
Are you running the API/Python script from the Lumerical CAD > Script File Editor using our bundled Python 3?
Try to run a simple script below from the CAD/Script File Editor (see image).
import lumapi
fdtd = lumapi.FDTD()
fdtd.addfdtd()
fdtd.addring()
fdtd.addmesh()
fdtd.save("testpy.fsp")
Otherwise, if you are running directly from the Terminal, please see the following Knowledge Base (KB) — which shows the default install path for the latest release and uses our bundled Python 3.
>> How to run Lumerical API (Python) scripts in Linux – Ansys Optics
>> Setting environment variable in Linux – Ansys Optics
Best,
Lito
*** See Ansys Optics Troubleshooting and FAQ for answers to common and know issues. ***