-
Notifications
You must be signed in to change notification settings - Fork 11
Description
Hi there!
I am trying to zemax using pyzos, but I keep getting an initialization error:
`---------------------------------------------------------------------------
InitializationError Traceback (most recent call last)
in ()
1 get_ipython().magic('matplotlib inline')
2 # instantiate an optical system
----> 3 osys = zos.OpticalSystem()
4
5
c:\users\strontium\home\strontium\env\lib\site-packages\pyzos\zos.py in init(self, sync_ui, mode)
268 self._iopticalsystem = OpticalSystem._pyzosapp.CreateNewSystem(mode) # wrapped object
269 else:
--> 270 OpticalSystem._pyzosapp = _PyZOSApp() # wrapped object
271 self._iopticalsystem = OpticalSystem._pyzosapp.GetSystemAt(0) # PrimarySystem
272 if mode == 1:
c:\users\strontium\home\strontium\env\lib\site-packages\pyzos\zos.py in new(cls)
217 cls.app = cls.connect.CreateNewApplication()
218 if not cls.connect.IsAlive:
--> 219 raise InitializationError("Couldn't connect to OpticStudio. "
220 "Ensure hardware/software/network license key is properly installed." )
221 Const = type('Const', (), _get_constants_dict()) # Constants class
InitializationError: Couldn't connect to OpticStudio. Ensure hardware/software/network license key is properly installed.
`
The connection works fine with pyzdde module. Could you help me with this problem?
Thank you,
Annie