vigoux / CALOA

CALOA project
GNU General Public License v3.0
1 stars 1 forks source link

AUTO BUG REPORT: argument 2: <class 'TypeError'>: expected CFunctionType instance instead of WinFunctionType #112

Closed CALOAReportSender closed 6 years ago

CALOAReportSender commented 6 years ago

Windows-7-6.1.7601-SP1 CPython-3.6.5

Traceback (most recent call last):

  File "C:\Users\pixel\AppData\Local\Programs\Python\Python36\lib\tkinter\__init__.py", line 1702, in __call__
    return self.func(*args)

  File "C:\Users\pixel\AppData\Local\Programs\Python\Python36\lib\tkinter\__init__.py", line 746, in callit
    func(*args)

  File "application.py", line 576, in routine_data_sender
    scopes = self.avh.startAllAndGetScopes()

  File "C:\Program Files (x86)\CALOA\spectro.py", line 836, in startAllAndGetScopes
    self.startAll(nmsr)

  File "C:\Program Files (x86)\CALOA\spectro.py", line 759, in startAll
    self.startMeasure(device, nmsr)

  File "C:\Program Files (x86)\CALOA\spectro.py", line 686, in startMeasure
    avaspec.AVS_MeasureCallback(device, calback_event.c_callback, nmsr)

  File "C:\Program Files (x86)\CALOA\avaspec.py", line 230, in AVS_MeasureCallback
    ret = AVS_MeasureCallback(handle, func, nummeas)  # CRASHES python

ctypes.ArgumentError: argument 2: <class 'TypeError'>: expected CFunctionType instance instead of WinFunctionType