Hello!
I’m attempting to use the ZOS-API in Python (3.8.13). I’ve been running my code from the terminal window and have successfully executed a batch ray trace. I’m working on something that could benefit from using an interactive environment, so I am trying to use a Jupyter notebook or interactive cells in VS code.
When I try to run <import zosapi> the kernel dies immediately. One of the errors thrown is
“Unhandled Exeption: System.IO.FileNotFoundException: Could not load file or assembly ‘ZOSAPI_Interfaces, Version=1.0.0.0, Culture=Neutral, PublicKeyToken=null’ or one of its dependencies. The system cannot find the file specified”
Am I missing a ZOSAPI_Interfaces file? Has anyone encountered this error before?
Thanks,
Jaren
Solved
import zosapi crashes jupyter kernel, how can I fix it?

Best answer by MichaelH
Hi Jaren,
Also, are you using Jupyter or JupyterLab? How did you install Jupyter/JupyterLab? Did you install both zosapi
and jupyter
from pip with the same installation of Python or are you using an IDE to install Jupyter/JupyterLab?
Reply
Enter your E-mail address. We'll send you an e-mail with instructions to reset your password.