sunjerry019 / nanosquared

Open Source M-Squared Measurement Automation using Dataray WinCamD and Ophir NanoScan. WinCamD and NanoScan code may be used independently
GNU General Public License v3.0
6 stars 1 forks source link

StartDriver() doesn't work #50

Open Andymash opened 2 years ago

Andymash commented 2 years ago

When I run the code, I find an error indicated. It happens to all the dataRay example codes, including this one, do you know what's the reason? Traceback (most recent call last): File "C:\Users\yang.zeng\AppData\Local\Programs\Python\Python310\lib\site-packages\comtypes__init.py", line 275, in getattr fixed_name = self.__map_case[name.lower()] KeyError: 'startdevice'

During handling of the above exception, another exception occurred:

Traceback (most recent call last): File "C:\Users\yang.zeng\Documents\01.Sinaero\04.scripts\dataRay_example\dataray-python-camera-example-2021.py", line 101, in app = MyApp() File "C:\Users\yang.zeng\Documents\01.Sinaero\04.scripts\dataRay_example\dataray-python-camera-example-2021.py", line 97, in init self.gd.ctrl.StartDevice() File "C:\Users\yang.zeng\AppData\Local\Programs\Python\Python310\lib\site-packages\comtypes__init.py", line 277, in getattr__ raise AttributeError(name) AttributeError: StartDevice

sunjerry019 commented 2 years ago

Could you post a MWE? (or in this case, minimal, non-working, example?)