esdalmaijer / PyGaze

an open-source, cross-platform toolbox for minimal-effort programming of eye tracking experiments
www.pygaze.org
GNU General Public License v3.0
671 stars 211 forks source link

Calibration function EyeTribe error after two calibration attempts #67

Closed hannehuygelier closed 8 years ago

hannehuygelier commented 8 years ago

When I use the tracker.calibrate() function it runs correctly for the first two calibration attempts, but if calibration has still failed after these two first attempts and you ask to restart the calibration, the following error comes up:

tracker.calibrate() File "C:\Python27\lib\site-packages\pygaze_eyetracker\libeyetribe.py", line 195, in calibrate self.eyetribe.calibration.start(pointcount=len(calibpoints)) File "C:\Python27\lib\site-packages\pygaze_eyetracker\pytribe.py", line 1128, in start {'pointcount':pointcount}) File "C:\Python27\lib\site-packages\pygaze_eyetracker\pytribe.py", line 391, in request success = self.get_response() File "C:\Python27\lib\site-packages\pygaze_eyetracker\pytribe.py", line 435, in get_response self.resplist.append(self.parse_json(r)) File "C:\Python27\lib\site-packages\pygaze_eyetracker\pytribe.py", line 545, in parse_json parsed = json.loads(jsonmsg) File "C:\Python27\lib\jsoninit.py", line 338, in loads return _default_decoder.decode(s) File "C:\Python27\lib\json\decoder.py", line 365, in decode obj, end = self.raw_decode(s, idx=_w(s, 0).end()) File "C:\Python27\lib\json\decoder.py", line 381, in raw_decode obj, end = self.scan_once(s, idx) ValueError: Expecting object: line 1 column 311 (char 310)

esdalmaijer commented 8 years ago

Should be solved with this commit.