I am also experincing the same error as user mohitkhurana had. I am running the Python codes from within the Lumerical FDTD environment on 2022 version. I have looked for a solution on the forum but have not found any. The link above that was sent by Guilin Sun refers to a different error than the one user mohitkhurana had reffered to.Please help as I have exhauseted all possible solutions and have not yet been able to get the code to work. Please see the screenshot attached. Thank you!