Comments (6)
Hi Daniel,
I've tried to replicate the problem (Windows 7, using OpenSesame Portable 2.8.3 and the latest version of PyGaze and the PyGaze plug-ins for OpenSesame), but couldn't. What system are you testing on, are you using the latest version of PyGaze, and when did the crash occur? Was it simply after calibration, or after retrying?
Also, does this occur every time you try to calibrate? The error traceback seems to indicate that the wrong JSON message from the tracker was picked up by. Could you maybe try to debug by printing the self.resplist
in line 391 of pytribe.py?
Thanks for the bug report!
from pygaze.
Hi Edwin,
Thanks for your response.
I ran it on a prerelease of OpenSesame 2.9.0 first, but when trying it with 2.8.3 again, I get the same result. A printout of self.resplist looks as follows:
[{u'category': u'calibration',
u'statuscode': 800,
u'values': {u'statusmessage': u'Tracker has been calibrated'}},
{u'category': u'calibration', u'request': u'start', u'statuscode': 200},
{u'category': u'tracker',
u'request': u'get',
u'statuscode': 200,
u'values': {u'frame': {u'avg': {u'x': 176.7112, u'y': 917.6643},
u'fix': False,
u'lefteye': {u'avg': {u'x': 155.593, u'y': 901.6043},
u'pcenter': {u'x': 0.3409, u'y': 0.4114},
u'psize': 20.8036,
u'raw': {u'x': 155.593, u'y': 901.6043}},
u'raw': {u'x': 176.7112, u'y': 917.6643},
u'righteye': {u'avg': {u'x': 197.8293, u'y': 933.7243},
u'pcenter': {u'x': 0.5093, u'y': 0.4069},
u'psize': 23.3589,
u'raw': {u'x': 197.8293, u'y': 933.7243}},
u'state': 7,
u'time': 346506113,
u'timestamp': u'2014-09-08 11:45:21.025'}}}]
I am running the EyeTribe SDK server version 0.9.41-x86
This is the last value at least that is printed before it crashes. A printout of my modules() is as follows:
OpenSesame 2.8.3
Python 2.7.6 (default, Nov 10 2013, 19:24:18) [MSC v.1500 32 bit (Intel)]
OpenCV is available (version is unknown)
OpenCV2 2.4.8
QProgedit 1.3.4
Expyriment 0.7.0 (Revision 7a6b73d; Python 2.7.6)
NumPy 1.8.1
PIL is available (version is unknown)
PsychoPy 1.80.06
PyAudio 0.2.7
PyGame 1.9.2pre
Pyglet 1.1.4
PyOpenGL 3.0.2
PyQt 4.9.6
PySerial 2.7
python-bidi 0.3.4
python-markdown 2.3.1
SciPy 0.14.0
Don't know if it is of any use to you, but just for the sake of completeness ;)
from pygaze.
Thanks, that helps immensely! What is happening, is that the EyeTribe sends back the following message after being calibrated:
{u'category': u'calibration',
u'statuscode': 800,
u'values': {u'statusmessage': u'Tracker has been calibrated'}}
However, the connection
's request
method is expecting messages that contain a 'request' key, which the unprovoked messages form the tracker apparently do not have. Hence the KeyError
when the "Tracker has been calibrated" message is parsed in line 392 of pytribe.py. I'll fix and commit shortly.
Thanks for debugging!
from pygaze.
Fixed with the latest commit. Could you check if it works now?
from pygaze.
It works now!
from pygaze.
Awesome, thanks for checking!
from pygaze.
Related Issues (20)
- libsmi HOT 1
- Can PyGaze use in Tobii EyeTracker 4C(Consumer Eye Trackers)?
- Exception: The setting "TRACKERSERIALNUMBER" does not exist HOT 1
- Inescapable frozen grey screen on eyetracking examples HOT 1
- Eyelink fixations map to unexpected values with 2560x1440p display HOT 2
- Add PyGaze to Open Neuroscience
- Eyelink 1000+ feed not shown in Eyelink menu / opensesame pygaze init item HOT 3
- time.clock depreciated HOT 2
- How to produce eye data file HOT 5
- FileNotFoundError: Could not find module 'iViewXAPI.dll' (or one of its dependencies). Try using the full path with constructor syntax. HOT 1
- Does PyGaze support tobii eye tracker 5? HOT 1
- AttributeError: module 'pylink.__version__' has no attribute 'split' HOT 2
- Could not find module 'iViewXAPI.dll' (or one of its dependencies). Try using the full path with constructor syntax. HOT 1
- Log messages in OpenGaze / GazePoint HOT 5
- Working example for Mac using webcam HOT 2
- tobii eyetrackers
- PyGaze missing package lxml for GazePoint
- PyGaze error in OpenSesame using GazePoint
- Tobii eye tracker has lots of temporal noise and missing samples HOT 2
- Converting Eyelink / Pygaze coordinates to be "compatible" with OS coordinate system
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from pygaze.