open-cogsci / OpenSesame

Graphical experiment builder for the social sciences
http://osdoc.cogsci.nl/
GNU General Public License v3.0
236 stars 112 forks source link

OS 3.2.8 crash on Ubuntu 16.04 in keyboard response item #671

Closed alisdt closed 5 years ago

alisdt commented 5 years ago

On a fresh install of Ubuntu 16.04, I get the following when a keyboard response item runs:

This was installed from the PPA and is at version 3.2.8b1. Another identical computer with OpenSesame 3.2.7 does not have this problem.

File "/usr/lib/python2.7/dist-packages/libqtopensesame/misc/process.py", line 157, in run
    exp.run()
  File "/usr/lib/python2.7/dist-packages/libopensesame/experiment.py", line 456, in run
    self.items.execute(self.var.start)
  File "/usr/lib/python2.7/dist-packages/libopensesame/item_store.py", line 103, in execute
    self.run(name)
  File "/usr/lib/python2.7/dist-packages/libopensesame/item_store.py", line 122, 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 122, in run
    self[name].run()
  File "/usr/lib/python2.7/dist-packages/libopensesame/loop.py", line 359, in run
    self.experiment.items.execute(self._item)
  File "/usr/lib/python2.7/dist-packages/libopensesame/item_store.py", line 103, in execute
    self.run(name)
  File "/usr/lib/python2.7/dist-packages/libopensesame/item_store.py", line 122, 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 122, 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 122, in run
    self[name].run()
  File "/usr/lib/python2.7/dist-packages/libopensesame/loop.py", line 359, in run
    self.experiment.items.execute(self._item)
  File "/usr/lib/python2.7/dist-packages/libopensesame/item_store.py", line 103, in execute
    self.run(name)
  File "/usr/lib/python2.7/dist-packages/libopensesame/item_store.py", line 122, 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 122, in run
    self[name].run()
  File "/usr/lib/python2.7/dist-packages/libopensesame/keyboard_response.py", line 87, in run
    base_response_item.run(self)
  File "/usr/lib/python2.7/dist-packages/libopensesame/base_response_item.py", line 128, in run
    retval = self._collect_response()
  File "/usr/lib/python2.7/dist-packages/openexp/backend.py", line 180, in inner
    retval = fnc(self, *arglist, **kwdict)
  File "/usr/lib/python2.7/dist-packages/openexp/_keyboard/psycho.py", line 93, in get_key
    keys = event.getKeys(keylist, modifiers=True)
TypeError: getKeys() got an unexpected keyword argument 'modifiers'
smathot commented 5 years ago

This is due to the version of PsychoPy. If you update PsychoPy (e.g. through pip), you should be fine again. It's a bit annoying, I realize that. But I don't feel it's worth providing backwards compatibility with (substantially) outdated versions of PsychoPy, so I'm closing this issue. Thanks for reporting it though!

alisdt commented 5 years ago

Apologies for this -- I had somehow missed the line in the install instructions directing me to pip install a number of packages (including PsychoPy). Hopefully this issue will point folks making the same mistake to the right solution!