Seems like your Python integration in Lumerical is inactive.
Please check if you are using the Python provided by Lumerical. Go to “Help” tab and “Python Integration Configuration”. The “Use Python provided by Lumerical” option should be checked. In case it is not, please check if Python is added in the Path environment variables in Windows.