Skip to main content
Question

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

  • Mar 30, 2023 8:39 PM UTC
  • 0 replies
  • 89 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!