DLL issue with Tobii after switching to Python 3
Hi,
Since Python 2 has finally reached its EOL (may it rest in peace), I've recently decided to switch to Python 3. I updated my scripts and installed the latest version of Opensesame. So far, so good. The first issue arose when trying to install the tobii-research package: first off, pip seems to behave rather strangely and the package manager instantly dies whenever I try to install the package that way. Secondly, the package is apparently only compatible with Python 3.5 and 3.6. I took a shortcut by downloading the Tobii SDK and simply copying the tobiiresearch folder and tobii_research.py scripts to the appropriate places (which isn't a recommended strategy, I know). Despite everything being where it's supposed to be, I now constantly get the same error when trying to start my experiment, namely a DLL load failure. The module that is failed to be found is tobii_research_interop, located in the python3 folder.
So the questions now are:
Is the loading failure caused by my shortcut (which has worked like a charm prior to this) or is it because tobii-research is officially only compatible with Python versions below 3.7?
What's the best way to deal with this? Downloading an older version of Opensesame (i.e. one that runs on Python 3.6 rather than 3.7)?
Thanks in advance!
Comments
Hi @ChrIm ,
It seems that the
tobii-research
package is a binary package that is built for specific architectures and versions of Python. And, indeed, it seems that they have only built packages for Python 3.6. The best way to get up and running is probably to install OpenSesame using Anaconda and then specify Python 3.6 for your environment. That's quite easy to do, actually, and it avoids you from having to downgrade OpenSesame to some older version!-- Sebastiaan
Check out SigmundAI.eu for our OpenSesame AI assistant!
Hi Sebastiaan,
Thanks a lot! I will try to do it that way :)
Hi @sebastiaan,
The installation has worked, but there seems to be a problem with the plug-ins because any time I try to do anything within OpenSesame, the same simple error shows up:
'str' object has no attribute 'isascii'
A quick Google research has revealed that the str.isascii() method requires Python 3.7, which is weird because I definitely specified Python 3.6 when installing OS via Anaconda :/
@ChrIm Coincidentally I literally fixed this bug right before I read this post. If you upgrade
python-opensesame
to 3.3.10a13 or later, then this should work again.Check out SigmundAI.eu for our OpenSesame AI assistant!