Coder Social home page Coder Social logo

Comments (6)

esdalmaijer avatar esdalmaijer commented on August 20, 2024

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.

dschreij avatar dschreij commented on August 20, 2024

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.

esdalmaijer avatar esdalmaijer commented on August 20, 2024

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.

esdalmaijer avatar esdalmaijer commented on August 20, 2024

Fixed with the latest commit. Could you check if it works now?

from pygaze.

dschreij avatar dschreij commented on August 20, 2024

It works now!

from pygaze.

esdalmaijer avatar esdalmaijer commented on August 20, 2024

Awesome, thanks for checking!

from pygaze.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.