Welcome!

Sign in with your CogSci, Facebook, Google, or Twitter account.

Or register to create a new account.

We'll use your information only for signing in to this forum.

Supported by

OpenSesame crashes on Ubuntu 16.04

Dear forum,

I'm trying OpenSesame for the first time but unfortunately I'm running into problems with the eye-tracking template which consistently crashes on my Ubuntu install.

I did the following:

  • Install OpenSesame through the PPA on Ubuntu 16.04 (current LTS release).
  • Start OpenSesame in a terminal.
  • Choose backend PsychoPy.
  • Start experiment by clicking the play button.
  • Enter subject ID.
  • Select file name.

The screen turns black for ~500ms and then I'm back in the OpenSesame GUI where I see the following error message:

Stopped

The experiment did not finish normally for the following reason:

Unexpected error
Details

item-stack: experiment[run].pygaze_init[run]
exception message: 'float' object cannot be interpreted as an index
time: Mon Jun 12 12:12:57 2017
exception type: TypeError
Traceback (also in debug window)

  File "/usr/lib/python2.7/dist-packages/libqtopensesame/misc/process.py", line 140, in run
    exp.run()
  File "/usr/lib/python2.7/dist-packages/libopensesame/experiment.py", line 413, in run
    self.items.execute(self.var.start)
  File "/usr/lib/python2.7/dist-packages/libopensesame/item_store.py", line 91, in execute
    self.run(name)
  File "/usr/lib/python2.7/dist-packages/libopensesame/item_store.py", line 106, in run
    self[name].run()
  File "/usr/lib/python2.7/dist-packages/libopensesame/sequence.py", line 51, in run
    self.experiment.items.run(_item)
  File "/usr/lib/python2.7/dist-packages/libopensesame/item_store.py", line 106, in run
    self[name].run()
  File "/usr/share/opensesame_plugins/pygaze_init/pygaze_init.py", line 207, in run
    self.beep = synth(self.experiment)
  File "/usr/lib/python2.7/dist-packages/openexp/synth.py", line 62, in synth
    _envelope = envelope(length, attack, decay, rate)
  File "/usr/lib/python2.7/dist-packages/openexp/synth.py", line 159, in envelope
    e = np.ones(length*rate)
  File "/usr/local/lib/python2.7/dist-packages/numpy/core/numeric.py", line 192, in ones
    a = empty(shape, dtype, order)
TypeError: 'float' object cannot be interpreted as an index

At first, I thought that the template can perhaps not be run without changes but it does run on my colleagues Windows machine. Any advice on how to fix this issue?

Comments

  • sebastiaansebastiaan Posts: 2,813

    Hi,

    Yes, this is an incompatibility between certain versions of numpy and OpenSesame. It's been fixed in the unstable releases of 3.1.7. You can install those from the opensesame-james ppa:

    sudo add-apt-repository ppa:smathot/opensesame-james
    sudo apt-get update
    sudo apt-get dselect-upgrade
    

    Of course, this is a testing repository, so proceed with caution!

    Cheers,
    Sebastiaan

    There's much bigger issues in the world, I know. But I first have to take care of the world I know.
    cogsci.nl/smathot

  • froukehefroukehe Posts: 40

    I get the following error message. Would there be a simple way to solve this? This is in Ubuntu 15.04 after installing the latest version (Nov 2017).

  • sebastiaansebastiaan Posts: 2,813
    edited November 4

    Hi Frouke,

    It looks like you have an old version of QProgEdit installed, which doesn't work with PyQt5. You can upgrade by running:

    pip install python-qprogedit
    

    Does that solve things?

    Cheers,
    Sebastiaan

    There's much bigger issues in the world, I know. But I first have to take care of the world I know.
    cogsci.nl/smathot

  • froukehefroukehe Posts: 40

    Unfortunately, the problem persisted after installing the indicated software. I decided to upgrade to Lubuntu 16, 64 bits (clean install), and under this new version, the problem no longer occurs.

Sign In or Register to comment.