Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

Supported by

Opensesame + Pygaze + tobii-research environment

Does anyone know the current best practice for using tobii-research with Opensesame. It seems that the latest version of tobii-research is for Python 3.5, does that mean that I have to use a virtual environment with that version of Python? And compatible versions of Pygaze and Opensesame?

Comments

  • edited March 2020

    Hi mattm.

    You can always run OpenSesame from source. You can install it either with pip or using anaconda. See

    For more info on this.

    If you have an Anaconda or Miniconda distribution running, you can also install OpenSesame by executing these commands:

    conda install python-opensesame psychopy pysoundfile -c cogsci -c conda-forge
    pip install expyriment
    

    I don't know whether a python 3.5 version is available. The supported version of OpenSesame is 2.7 and soon 3.7. Python 3.5 is already a bit dated again, so I would ask the Tobii devs if there is a newer version of their software. In fact, a quick search on pypi shows that there are versions for Python 2.7 and Python 3.6

    so you should be able to install it simply with

    pip install tobii-research
    

    if you use a compatible python version.

    Buy Me A Coffee

  • Thanks for your reply Daniel!

    I must admit that I am not particularly knowledgeable about Python environments.

    I'm trying to install into a 3.6.10 environment (maybe that's the wrong thing to do)

    >conda create --name opensesame_p36 python=3.6
    >conda activate opensesame_p36
    >python -V
    Python 3.6.10 :: Anaconda, Inc.
    
    >conda install python-opensesame -c cogsci
    Collecting package metadata (current_repodata.json): done
    Solving environment: failed with initial frozen solve. Retrying with flexible solve.
    Solving environment: failed with repodata from current_repodata.json, will retry with next repodata source.
    Collecting package metadata (repodata.json): done
    Solving environment: failed with initial frozen solve. Retrying with flexible solve.
    Solving environment: /
    Found conflicts! Looking for incompatible packages.
    This can take several minutes.  Press CTRL-C to abor-
    failed
    
    UnsatisfiableError: The following specifications were found to be incompatible with each other:
    
    Output in format: Requested package -> Available versionsThe following specifications were found to be incompatible with your CUDA driver:
    
      - feature:/win-64::__cuda==11.0=0
      - feature:|@/win-64::__cuda==11.0=0
    
    Your installed CUDA driver is: 11.0
    
    
  • I have managed to solve it by using pip to install pysoundfile.

    I am however still slightly stuck, how do I run the version of Opensesame that I just installed?

  • If you have activated the environment in which you have installed OpenSesame, then you can simply type opensesame at the anaconda prompt to start OpenSesame. See also:

    Cheers!

    Sebastiaan

  • Thanks!

Sign In or Register to comment.