Howdy, Stranger!

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

Supported by

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

    Buy Me A Coffee

  • edited April 2020

    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:

    lukas@lukas:~$ pip install expyriment psychopy==1.85.3 python-pygaze opensesame-extension-osf opensesame-extension-osweb
    Defaulting to user installation because normal site-packages is not writeable
    Collecting expyriment
     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
    

    And when I run the following command

    sudo apt-get install gnome-icon-theme-full
    

    I've got this error message:

    Collecting python-qnotifications
     Downloading python-qnotifications-2.0.3.tar.gz (7.0 kB)
      ERROR: Command errored out with exit status 1:
       command: /usr/bin/python3 -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/tmp/pip-install-vh8eol39/python-qnotifications/setup.py'"'"'; __file__='"'"'/tmp/pip-install-vh8eol39/python-qnotifications/setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(__file__);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' egg_info --egg-base /tmp/pip-install-vh8eol39/python-qnotifications/pip-egg-info
         cwd: /tmp/pip-install-vh8eol39/python-qnotifications/
      Complete output (9 lines):
      Traceback (most recent call last):
       File "<string>", line 1, in <module>
       File "/tmp/pip-install-vh8eol39/python-qnotifications/setup.py", line 22, in <module>
        import QNotifications
       File "/tmp/pip-install-vh8eol39/python-qnotifications/QNotifications/__init__.py", line 24, in <module>
        from QNotifications.QNotificationArea import QNotificationArea
       File "/tmp/pip-install-vh8eol39/python-qnotifications/QNotifications/QNotificationArea.py", line 8, in <module>
        from qtpy import QtWidgets, QtCore, QtGui
      ImportError: No module named 'qtpy'
      ----------------------------------------
    ERROR: Command errored out with exit status 1: python setup.py egg_info Check the logs for full command output.
    

    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 with psychopy==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

    Buy Me A Coffee

  • 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?

    Buy Me A Coffee

  • Hi!

    The same as previously.

    The details section:

    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'
    time: Thu Apr 2 20:22:46 2020
    

    Traceback:

    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/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'
    

    And the error message in Terminal when I run (with replaced psyhopy==1.85.3)

    pip install expyriment psychopy==1.85 python-pygaze opensesame-extension-osf opensesame-extension-osweb
    

    is still:

    lukas@lukas:~$ pip install expyriment psychopy==1.85 python-pygaze opensesame-extension-osf opensesame-extension-osweb
    Defaulting to user installation because normal site-packages is not writeable
    Collecting expyriment
     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 (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
    


  • Try taking out the version specification entirely. So, just pip install psychopy (without the == part)

    Buy Me A Coffee

  • edited April 2020

    In that case I get the following error message:

    ERROR: Package 'PsychoPy' requires a different Python: 3.5.2 not in '!=3.0.*,!=3.1.*,!=3.2.*,!=3.3.*,!=3.4.*,!=3.5.*,>=2.7'
    

    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...

    Buy Me A Coffee

  • 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:


    Buy Me A Coffee

Sign In or Register to comment.

agen judi bola , sportbook, casino, togel, number game, singapore, tangkas, basket, slot, poker, dominoqq, agen bola. Semua permainan bisa dimainkan hanya dengan 1 ID. minimal deposit 50.000 ,- bonus cashback hingga 10% , diskon togel hingga 66% bisa bermain di android dan IOS kapanpun dan dimana pun. poker , bandarq , aduq, domino qq , dominobet. Semua permainan bisa dimainkan hanya dengan 1 ID. minimal deposit 10.000 ,- bonus turnover 0.5% dan bonus referral 20%. Bonus - bonus yang dihadirkan bisa terbilang cukup tinggi dan memuaskan, anda hanya perlu memasang pada situs yang memberikan bursa pasaran terbaik yaitu http://45.77.173.118/ Bola168. Situs penyedia segala jenis permainan poker online kini semakin banyak ditemukan di Internet, salah satunya TahunQQ merupakan situs Agen Judi Domino66 Dan BandarQ Terpercaya yang mampu memberikan banyak provit bagi bettornya. Permainan Yang Di Sediakan Dewi365 Juga sangat banyak Dan menarik dan Peluang untuk memenangkan Taruhan Judi online ini juga sangat mudah . Mainkan Segera Taruhan Sportbook anda bersama Agen Judi Bola Bersama Dewi365 Kemenangan Anda Berapa pun akan Terbayarkan. Tersedia 9 macam permainan seru yang bisa kamu mainkan hanya di dalam 1 ID saja. Permainan seru yang tersedia seperti Poker, Domino QQ Dan juga BandarQ Online. Semuanya tersedia lengkap hanya di ABGQQ. Situs ABGQQ sangat mudah dimenangkan, kamu juga akan mendapatkan mega bonus dan setiap pemain berhak mendapatkan cashback mingguan. ABGQQ juga telah diakui sebagai Bandar Domino Online yang menjamin sistem FAIR PLAY disetiap permainan yang bisa dimainkan dengan deposit minimal hanya Rp.25.000. DEWI365 adalah Bandar Judi Bola Terpercaya & resmi dan terpercaya di indonesia. Situs judi bola ini menyediakan fasilitas bagi anda untuk dapat bermain memainkan permainan judi bola. Didalam situs ini memiliki berbagai permainan taruhan bola terlengkap seperti Sbobet, yang membuat DEWI365 menjadi situs judi bola terbaik dan terpercaya di Indonesia. Tentunya sebagai situs yang bertugas sebagai Bandar Poker Online pastinya akan berusaha untuk menjaga semua informasi dan keamanan yang terdapat di POKERQQ13. Kotakqq adalah situs Judi Poker Online Terpercayayang menyediakan 9 jenis permainan sakong online, dominoqq, domino99, bandarq, bandar ceme, aduq, poker online, bandar poker, balak66, perang baccarat, dan capsa susun. Dengan minimal deposit withdraw 15.000 Anda sudah bisa memainkan semua permaina pkv games di situs kami. Jackpot besar,Win rate tinggi, Fair play, PKV Games