Open Sesame crashes when key respond is needed
Hi!
I have a problem with Open Sesame.
I built an experiment some one year ago in Open Sesame. It was a primed lexical decision task. It worked as expected. The back-end is psycho and my OS is Ubuntu 16.04.6 LTS 64-bit.
A couple days ago I wanted to do the experiment again and it crashed. It crashed for instance on a sketchpad with duration "keypress" as well as on keyboard_response. The same problem occurred on another machine with the same OS (Ubuntu).
Details are as follow:
item-stack: association_experiment[run].practice_loop[run].practice_sequence[run].practice_block[run].trial_sequence[run].keyboard_response[run] exception type: TypeError exception message: getKeys() got an unexpected keyword argument 'modifiers'
And the last few lines of Traceback are
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'
I'm not really familiar with programming. But I tried to update Open Sesame in Terminal and get the following error warning:
Using cached expyriment-0.10.0-py2.py3-none-any.whl (8.9 MB) ERROR: Could not find a version that satisfies the requirement psychopy==1.85.3 (from versions: 1.81.03.linux-x86_64, 1.80.4, 1.80.5, 1.80.6, 1.80.7, 1.81.0rc1, 1.81.3, 1.82.1, 1.84.1, 1.84.2, 1.85.6, 1.90.dev1, 1.90.dev2, 1.90.dev3, 1.90.0, 1.90.1, 1.90.2, 1.90.3, 3.0.0b2, 3.0.0b11, 3.0.0b12, 3.0.0, 3.0.1, 3.0.2, 3.0.3, 3.0.4, 3.0.6, 3.0.7, 3.1.0, 3.1.2, 3.1.3, 3.1.4, 3.1.5) ERROR: No matching distribution found for psychopy==1.85.3
Any help would be appreciated. I am very sorry if the problem was somewhere mentioned previously but I couldn't have found it.
As I wrote, I'm not familiar with programming, so it would be nice if you keep the answer very simple. Sorry.
Cheers!
Comments
Hi,
Have you updated Opensesame in the mean time? Or some Python packages? Sounds a bit weird. Can you share the experiment here?
Maybe a reinstall of Opensesame would fix it.
Eduard
Hi!
I've just reinstall Open Semame but the problem is still there.
I have attached the experiment.
When I run the re-installation of Open Sesame in the Terminal, I got the same error message:
And when I run the following command
I've got this error message:
As said before it crashes at the same position, when I have to press a key on the keyboard.
Lukas
Yes, your experiment is fine. That isn't the issue.
You should run into these issues during installation, which Python do you use? Python 3 or 2?
In any case, you can replace:
psychopy==1.85.3
withpsychopy==1.85
The seocnd error suggests, you haven't install qtpy, which you can also install via pip, I believe. But anyway, that package (gnome-icon-theme-full) shouldn't be critical for running the experiment. Could you try?
Eduard
Hi!
Thanks for your quick reply.
I have tried
psychopy==1.85
, but there wasn't any change. It still crashes.I have also pip installed
qtpy
. But this haven't improved the situation.I use
Python 2.7.12
Lukas
What is the error message now?
Hi!
The same as previously.
The details section:
Traceback:
And the error message in Terminal when I run (with replaced psyhopy==1.85.3)
is still:
Try taking out the version specification entirely. So, just pip install psychopy (without the == part)
In that case I get the following error message:
When I check the version of Python it's
Python 2.7.12
.But now I get several messages when I open Opensesame.
Extension opensesame_3_notifications misbehaved on event startup (see debug window for stack trace)
Failed to load extension oswebext (see debug window for stack trace)
Failed to load extension OpenScienceFramework (see debug window for stack trace)
Failed to load extension analytics (see debug window for stack trace)
Can you try updating pip? This behaviour is weird...
It seems so and I don't know why.
I've updated pip, and the current version is
pip 20.0.2
. But the problem is still the same.Then, I don't know what is going on. I can install everything alright. Maybe try to install the packages from within the Opensesame console, like so: