It seems this error shows when you use Python API. Please directly run the simulation file with GUI or without GUI or using script but without Python API and see if it resolves this issue. Since no computer os information is available I provide a link with different instructions for different OS for your reference:
https://optics.ansys.com/hc/en-us/sections/360004588574-Running-simulations
We need to isolate the cause.