-
Notifications
You must be signed in to change notification settings - Fork 214
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
logfile creation in libtobii is not unicode safe #120
Comments
Pinging @grebdems and @pedrotari7 |
On vacation atm, but we'll have a look at it in a couple of weeks! |
Btw, had a look at the thread at https://forum.cogsci.nl and the person that found the issue seems to be using a EyeX model. Hate to be the bearer of bad news, but. |
Well no, I'm not going to tell someone that they cannot use a device for something that it's actually capable of doing. It's up to Tobii to enforce their own EULA. |
I see your point and I agree that it's kinda stupid. But it's not my decision and I can't really do anything about that in particular. It's a really hairy issue. |
@grebdems Thanks for clearing that up. Sorry if my comment came across as a little aggressive, but I just don't want to get anywhere near this EULA issue. But do I understand correctly that, licensing aside, PyGaze simply doesn't work at all with the Tobii EyeX? Is this something that has changed with recent updates to the Tobii SDK? |
No problem. And, yes, you got it right. The new SDK (Tobii Pro SDK, or tobii_research) only supports the "advanced" gaze data stream, and not the "consumer" gaze stream (our internal terminology) that the EyeX provides. To be honest I haven't tested if it works with the old setup (old "analysis SDK" + pygaze) but maybe you have some experience there? |
When you specify a unicode path for the logfile in
libtobii
, aUnicodeEncodeError
can be triggered.Ideally,
libtobii
would use unicode (unicode
in Python 2,str
in Python 3) to work with the logfile, both in terms of the path name and the contents. And for byte strings (str
in Python 2.bytes
in Python 3), the assumed encoding (probably utf-8) should be documented.This was reported here:
The text was updated successfully, but these errors were encountered: