vigoux / CALOA

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

AUTO BUG REPORT: byref() argument must be a ctypes instance, not 'CArgObject' #111

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 "application.py", line 566, in routine_data_sender
    nrAverages=1

  File "C:\Program Files (x86)\CALOA\spectro.py", line 748, in prepareAll
    nrAverages=nrAverages)

  File "C:\Program Files (x86)\CALOA\spectro.py", line 624, in prepareMeasure
    avaspec.AVS_GetNumPixels(device, ctypes.byref(numPix))

  File "C:\Program Files (x86)\CALOA\avaspec.py", line 150, in AVS_GetNumPixels
    handle, ctypes.byref(pixelsarray)

TypeError: byref() argument must be a ctypes instance, not 'CArgObject'

During handling of the above exception, another exception occurred:

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 573, in routine_data_sender
    nrAverages=1

  File "C:\Program Files (x86)\CALOA\spectro.py", line 748, in prepareAll
    nrAverages=nrAverages)

  File "C:\Program Files (x86)\CALOA\spectro.py", line 624, in prepareMeasure
    avaspec.AVS_GetNumPixels(device, ctypes.byref(numPix))

  File "C:\Program Files (x86)\CALOA\avaspec.py", line 150, in AVS_GetNumPixels
    handle, ctypes.byref(pixelsarray)

TypeError: byref() argument must be a ctypes instance, not 'CArgObject'