simonarvin / eyeloop

EyeLoop is a Python 3-based eye-tracker tailored specifically to dynamic, closed-loop experiments on consumer-grade hardware.
GNU General Public License v3.0
485 stars 67 forks source link

`SystemError: new style getargs format but argument is not a tuple` in processor.py #39

Closed bhomaidan1990 closed 2 years ago

bhomaidan1990 commented 2 years ago

I'm getting this error: SystemError: new style getargs format but argument is not a tuple from this line due to the list instead of the tuple from this line according to this stackoverflow answer.

Here is the full Traceback:

Traceback (most recent call last):
  File "C:\Users\bhoma\AppData\Local\Programs\Python\Python38\lib\runpy.py", line 194, in _run_module_as_main
    return _run_code(code, main_globals, None,
  File "C:\Users\bhoma\AppData\Local\Programs\Python\Python38\lib\runpy.py", line 87, in _run_code
    exec(code, run_globals)
  File "C:\Users\bhoma\AppData\Local\Programs\Python\Python38\Scripts\eyeloop.exe\__main__.py", line 7, in <module>
  File "C:\Users\bhoma\AppData\Local\Programs\Python\Python38\lib\site-packages\eyeloop\run_eyeloop.py", line 110, in main
    EyeLoop(sys.argv[1:], logger=None)
  File "C:\Users\bhoma\AppData\Local\Programs\Python\Python38\lib\site-packages\eyeloop\run_eyeloop.py", line 43, in __init__
    self.run()
  File "C:\Users\bhoma\AppData\Local\Programs\Python\Python38\lib\site-packages\eyeloop\run_eyeloop.py", line 94, in run
    self.run_importer()
  File "C:\Users\bhoma\AppData\Local\Programs\Python\Python38\lib\site-packages\eyeloop\run_eyeloop.py", line 101, in run_importer
    config.importer.route()
  File "C:\Users\bhoma\AppData\Local\Programs\Python\Python38\lib\site-packages\eyeloop\importers\cv.py", line 68, in route
    self.first_frame()
  File "C:\Users\bhoma\AppData\Local\Programs\Python\Python38\lib\site-packages\eyeloop\importers\cv.py", line 65, in first_frame
    self.arm(width, height, image)
  File "C:\Users\bhoma\AppData\Local\Programs\Python\Python38\lib\site-packages\eyeloop\importers\importer.py", line 45, in arm
    config.engine.arm(width, height, image)
  File "C:\Users\bhoma\AppData\Local\Programs\Python\Python38\lib\site-packages\eyeloop\engine\engine.py", line 85, in arm
    self.iterate(image)
  File "C:\Users\bhoma\AppData\Local\Programs\Python\Python38\lib\site-packages\eyeloop\engine\engine.py", line 183, in track
    self.pupil_processor.track(img)
  File "C:\Users\bhoma\AppData\Local\Programs\Python\Python38\lib\site-packages\eyeloop\engine\processor.py", line 112, in track_
    self.thresh() #either pupil or cr
  File "C:\Users\bhoma\AppData\Local\Programs\Python\Python38\lib\site-packages\eyeloop\engine\processor.py", line 79, in pupil_thresh
    self.source[:] = cv2.threshold(cv2.GaussianBlur(cv2.erode(self.source, kernel, iterations = 1), self.blur, 0), self.binarythreshold, 255, cv2.THRESH_BINARY_INV)[1]
SystemError: new style getargs format but argument is not a tuple
    Processing 0 frames per second.