Please read the error message as it indicates the initial file has an error.
Please note that this post is a duplicated one from another post. Please post your question to this post
https://forum.ansys.com/forums/topic/inverse-design-python-script-error/
This current post will be closed.