Problem with media player_mpy
Hi there,
I have an old Tobii X2 that I am using with OpenSesame 3.2.8-py3.6-win64, pygaze and the tobii 1.8 SDK. Sometimes it fails to find the eye tracker which is annoying but can be solved by restarting (as reported in https://github.com/esdalmaijer/PyGaze/issues/142). As I could not get the eye tracker to work/write data to a result file with any other version of OS and/or Python, I am stuck with the set-up. So far, everything worked like a charm with simple audio files and images but now I have an experiment in which I need to show videos.
I used the media player_mpy plug-in that is pre-installed with OS and got an error message that 'unicode' is not defined. I solved this following the instruction in https://forum.cogsci.nl/discussion/6170/media-player-mpy-not-working-error-name-unicode-is-not-definded
Now I get a few lines further, but get a new error message that "Expyriment_Handler is not found", even though it is listed in the media player plug-in folder. Googling did not provide me with any hint how to solve this.
Can anyone help me out here? Any ideas or suggestions how to get my videos to play would be highly appreciated. Thank you!

Comments
Hi @naltvat ,
This is due to the fact that OpenSesame 3.2.8 is quite old and comes with an outdated version of the
media_player_mpyplugin. Updating the plug-in to the latest version (right now 0.1.11) should fix this particular issue.But more generally: is there a specific reason that you're using OpenSesame 3.2.8, as opposed to the most recent version (3.3.14)? If not, then I would recommend simply using the latest version of OpenSesame and installing the Tobii SDK as described here:
That will save you a lot of headaches!
— Sebastiaan
Check out SigmundAI.eu for our OpenSesame AI assistant!
Hi @sebastiaan,
thanks for the answer. I installed the latest version of the plug-in via pip but unfortunately the error remains the same :-( Any other ideas?
I was using OpenSesame 3.2.8 with tobii-research 1.8 because this is the only combo that worked for me. I tried using the newest version of OpenSesame (which I do use for other experiments not making use of the tobii) but it seems that there is no tobii-research version that works with it. It seems to be related to different Python versions used (see also https://forum.cogsci.nl/discussion/8065/tobii-research-or-other-problems and https://forum.cogsci.nl/discussion/3793/error-with-tobii).
I could try again to install OpenSesame with Python 3.8 via Anaconda. Already tried this out before and then had the problem that no true ET data was written into the tobii log file but just 0,0.
So after all, I thought it might be easiest to fix the media player issue and go with the old versions. But this does not seem to be easily solved either. If you have any further advice, here, I would be super grateful.
Thank you so much - and also thank you for supporting and developing OS. It is such a cool tool!
Nicole
Quick update to close this: I deinstalled and reinstalled everything, and now it works with the legacy backend. Strangely enough, the video played with the expyriment backend at first. But when I installed pygaze and tobii-research, it did not work anymore but gave the same error message as above. Just thought I share this, in case someone encounters a similar problem.
Hi @naltvat ,
It sounds like you've been running into a series of issues that, or at least I suspect so, are unrelated to each other. (Which doesn't make them less annoying, of course.)
I'm not sure what you tried so far, but my recommendation would still be to install OpenSesame and any additional packages (such as tobii-reserarch, PyGaze and media_player_mpy) in an anaconda environment, using the version of Python that is required by the latest version of the Tobii SDK. At the time of writing this is Python 3.10 for the
tobii-research1.20.2 package, but these versions will change over time!Maybe @wdhany can chip in as well. I know he's successfully installed this!
— Sebastiaan
Check out SigmundAI.eu for our OpenSesame AI assistant!