Howdy, Stranger!

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

Supported by

import error with Sound_Start_Recording item

Hello,

I was trying to enable recording for my experiment but got this error when I tried to drag the Sound_Start_Recording item to the experiment. Could anyone please help me see what the problem is and how to solve it?

Thank you very much for your time and help.

Kind regards,

Alice


"Error message:

Traceback (most recent call last):

 File "C:\Program Files (x86)\OpenSesame\Lib\site-packages\libopensesame\item_store.py", line 190, in new

  self.experiment.item_prefix()

 File "C:\Program Files (x86)\OpenSesame\Lib\site-packages\libopensesame\plugins.py", line 447, in load_plugin

  item_module = import_plugin(plugin, _type=_type)

 File "C:\Program Files (x86)\OpenSesame\Lib\site-packages\libopensesame\plugins.py", line 413, in import_plugin

  return imp.load_source(plugin, path)

 File "C:\Program Files (x86)\OpenSesame\lib\imp.py", line 171, in load_source

  module = _load(spec)

 File "<frozen importlib._bootstrap>", line 696, in _load

 File "<frozen importlib._bootstrap>", line 677, in _load_unlocked

 File "<frozen importlib._bootstrap_external>", line 728, in exec_module

 File "<frozen importlib._bootstrap>", line 219, in _call_with_frames_removed

 File "C:\Program Files (x86)\OpenSesame\share\opensesame_plugins\sound_start_recording\sound_start_recording.py", line 20, in <module>

  from libqtopensesame import qtplugin

ImportError: cannot import name 'qtplugin' from 'libqtopensesame' (C:\Program Files (x86)\OpenSesame\Lib\site-packages\libqtopensesame\__init__.py)


During handling of the above exception, another exception occurred:


Traceback (most recent call last):

 File "C:\Program Files (x86)\OpenSesame\Lib\site-packages\libqtopensesame\widgets\tree_overview.py", line 788, in dropEvent

  self.drop_event_item_new(data, e)

 File "C:\Program Files (x86)\OpenSesame\Lib\site-packages\libqtopensesame\widgets\tree_overview.py", line 702, in drop_event_item_new

  item, new_items = self.drop_get_item_snippet(data)

 File "C:\Program Files (x86)\OpenSesame\Lib\site-packages\libqtopensesame\widgets\tree_overview.py", line 588, in drop_get_item_snippet

  catch_exceptions=False)

 File "C:\Program Files (x86)\OpenSesame\Lib\site-packages\libqtopensesame\misc\qtitem_store.py", line 118, in new

  allow_rename=allow_rename

 File "C:\Program Files (x86)\OpenSesame\Lib\site-packages\libopensesame\item_store.py", line 195, in new

  exception=e

libopensesame.exceptions.osexception: 

Failed to load plugin 'sound_start_recording'


item-stack: 

time: Wed Apr 8 20:47:31 2020

exception type: ImportError

exception message: cannot import name 'qtplugin' from 'libqtopensesame' (C:\Program Files (x86)\OpenSesame\Lib\site-packages\libqtopensesame\__init__.py)


Traceback:

 File "C:\Program Files (x86)\OpenSesame\Lib\site-packages\libopensesame\item_store.py", line 190, in new

  self.experiment.item_prefix()

 File "C:\Program Files (x86)\OpenSesame\Lib\site-packages\libopensesame\plugins.py", line 447, in load_plugin

  item_module = import_plugin(plugin, _type=_type)

 File "C:\Program Files (x86)\OpenSesame\Lib\site-packages\libopensesame\plugins.py", line 413, in import_plugin

  return imp.load_source(plugin, path)

 File "C:\Program Files (x86)\OpenSesame\lib\imp.py", line 171, in load_source

  module = _load(spec)

 File "<frozen importlib._bootstrap>", line 696, in _load

 File "<frozen importlib._bootstrap>", line 677, in _load_unlocked

 File "<frozen importlib._bootstrap_external>", line 728, in exec_module

 File "<frozen importlib._bootstrap>", line 219, in _call_with_frames_removed

 File "C:\Program Files (x86)\OpenSesame\share\opensesame_plugins\sound_start_recording\sound_start_recording.py", line 20, in <module>

  from libqtopensesame import qtplugin

ImportError: cannot import name 'qtplugin' from 'libqtopensesame' (C:\Program Files (x86)\OpenSesame\Lib\site-packages\libqtopensesame\__init__.py) "

Comments

  • Hi Alice,

    The sound recorder plugins are very old, they were written for outdated versions of Opensesame. I don't know whether they generally work with the current version or not. In other words, I don't know whether your problem is a general one, or something that is specific to you.

    From the error message it seems that the module "qtplugin" is not found in the program folders. So, some pyqt-related issue could be the issue. However, I doubt that there is an easy fix to that problem. You are probably better off implementing sound recording yourself. Check out this page for example: https://realpython.com/playing-and-recording-sound-python/

    It essentially requires you to do some Python coding in an inline_script. Not terribly complicated but if you do it for the first time it might be a little challenging.

    Does that make sense?

    Eduard

    Buy Me A Coffee

  • Hi @Fang,

    as Eduard correctly states, the sound recorder plugins are heavily outdated and probably no longer function correctly. If you are familiar with scripting, and use the psychopy backend, you can try and see if you can use their modules to achieve your goals, see https://www.psychopy.org/api/voicekey.html and https://www.psychopy.org/api/microphone.html

    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