Skip to main content
Question

Python ZOS-API: can't find '__main__' module in '/Users/xxxx/Documents/ZEMAX/ZOS-API'

  • March 30, 2023
  • 0 replies
  • 66 views

I am trying to run some of the Python ZOS-API Standalone Application examples using Spyder, but running it in an external system terminal. I get the following error message, but I don’t understand what is causing this:

/Users/xxxx/miniconda3/bin/python: can't find '__main__' module in '/Users/xxxx/Documents/ZEMAX/ZOS-API'

I am very new to using ZOS-API, so any pointers would be greatly appreciated!