Howdy, Stranger!

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

Supported by

unexpected errors

Dear all.

My students and I were conducting an experiment using mousetrap. However, our experiment was stopped for the following unexpected errors. We have attached our experiment file below. Does someone know what can we do to fix these errors? Any comments will be highly appreciated. Thank you so much for your time in advance.

Best

Yu-Cheng


Details

  • item-stack:experiment[run].stimuli[run].random_order[run].trial[prepare].present_stimulus[prepare]
  • exception type: IOError
  • exception message: Couldn't find image false.jpg; check path? (tried: C:\Program Files (x86)\OpenSesame\lib\site-packages\false.jpg)
  • time: Wed Apr 10 14:50:34 2019


Traceback (also in debug window)

 File "C:\Program Files (x86)\OpenSesame\lib\site-packages\libqtopensesame\misc\process.py", line 157, in run exp.run()

 File "C:\Program Files (x86)\OpenSesame\lib\site-packages\libopensesame\experiment.py", line 456, in run

   self.items.execute(self.var.start)

 File "C:\Program Files (x86)\OpenSesame\lib\site-packages\libopensesame\item_store.py", line 103, in execute self.run(name)

 File "C:\Program Files (x86)\OpenSesame\lib\site-packages\libopensesame\item_store.py", line 122, in run

   self[name].run()

 File "C:\Program Files (x86)\OpenSesame\lib\site-packages\libopensesame\sequence.py", line 51, in run

   self.experiment.items.run(_item)

 File "C:\Program Files (x86)\OpenSesame\lib\site-packages\libopensesame\item_store.py", line 122, in run

   self[name].run()

 File "C:\Program Files (x86)\OpenSesame\lib\site-packages\libopensesame\loop.py", line 359, in run

   self.experiment.items.execute(self._item)

 File "C:\Program Files (x86)\OpenSesame\lib\site-packages\libopensesame\item_store.py", line 103, in execute self.run(name)

 File "C:\Program Files (x86)\OpenSesame\lib\site-packages\libopensesame\item_store.py", line 122, in run

   self[name].run()

 File "C:\Program Files (x86)\OpenSesame\lib\site-packages\libopensesame\loop.py", line 359, in run

   self.experiment.items.execute(self._item)

 File "C:\Program Files (x86)\OpenSesame\lib\site-packages\libopensesame\item_store.py", line 102, in execute self.prepare(name)

 File "C:\Program Files (x86)\OpenSesame\lib\site-packages\libopensesame\item_store.py", line 142, in prepare self[name].prepare()

 File "C:\Program Files (x86)\OpenSesame\lib\site-packages\libopensesame\sequence.py", line 124, in prepare self.experiment.items.prepare(_item)

 File "C:\Program Files (x86)\OpenSesame\lib\site-packages\libopensesame\item_store.py", line 142, in prepare self[name].prepare()

 File "C:\Program Files (x86)\OpenSesame\lib\site-packages\libopensesame\sketchpad.py", line 149, in prepare temp_name, element.element_name

 File "C:\Program Files (x86)\OpenSesame\lib\site-packages\openexp\_canvas\canvas.py", line 354, in __exit__self.prepare()

 File "C:\Program Files (x86)\OpenSesame\lib\site-packages\openexp\_canvas\canvas.py", line 775, in prepare element.prepare()

 File "C:\Program Files (x86)\OpenSesame\lib\site-packages\openexp\_canvas\_image\psycho.py", line 33, in prepare image=safe_decode(self.fname)

 File "C:\Program Files (x86)\OpenSesame\lib\site-packages\psychopy\visual\image.py", line 97, in __init__

   self.setImage(image, log=False)

 File "C:\Program Files (x86)\OpenSesame\lib\site-packages\psychopy\visual\image.py", line 289, in setImage setAttribute(self, 'image', value, log)

 File "C:\Program Files (x86)\OpenSesame\lib\site-packages\psychopy\tools\attributetools.py", line 137, in setAttribute setattr(self, attrib, value)

 File "C:\Program Files (x86)\OpenSesame\lib\site-packages\psychopy\tools\attributetools.py", line 27, in __set__newValue = self.func(obj, value)

 File "C:\Program Files (x86)\OpenSesame\lib\site-packages\psychopy\visual\image.py", line 276, in image

   forcePOW2=False)

 File "C:\Program Files (x86)\OpenSesame\lib\site-packages\psychopy\visual\basevisual.py", line 794, in _createTexture

   raise IOError, msg % (tex, os.path.abspath(tex))

IOError: Couldn't find image false.jpg; check path? (tried: C:\Program Files (x86)\OpenSesame\lib\site-packages\false.jpg)


Comments

  • Hi,


    How consistent is that error? Does it always occur, or only sometimes? And always with the same error? Does the problem occur also on different computers?


    eduard

    Buy Me A Coffee

  • Hello Eduard,


    These same error messages occurred on different computers. Do you know what do these errors mean? Thank you!


    Yu-Cheng

  • Well, the error message means that the file false.jpg has not been found in the file pool, but I can see it there, so it is a little confusing why the error occurred.

    Have you added the variable to the file pool? So drag and drop the entire folder into the file pool of Opensesame.

    Eduard

    Buy Me A Coffee

  • Hello Eduard,

    Thank you so much for your kinds reply. I really appreciate that. I think I solved the issue. However, another error showed on the screen. Do you know how can Ideal with the new error message. Sorry to bug you again.

    Best,

    Yu-Cheng


    Stopped

    The experiment did not finish normally for the following reason:

    • Unexpected error

    Details

    • item-stack:experiment[run].stimuli[run].random_order[run].trial[prepare].get_response[prepare]
    • exception type: AttributeError
    • exception message: 'Psycho' object has no attribute 'w'
    • time: Mon Apr 15 12:29:45 2019
  • HI,


    That is also a little hard to understand without more information. What code do you use? What is your experimental structure? Maybe you can upload your experiment, or at least upload some screenshots. Without more information it will be difficult to say what is going on here (the error message is not informative enough to give you a satisfactory answer)


    Eduard

    Buy Me A Coffee

  • edited April 2019

    Hi,

    this error could occur if you are using the "psycho" backend together mousetrap. As noted in the mousetrap documentation, mousetrap is not compatible with this backend. If you are using the "psycho" backend, could you switch the backend to "xpyriment" or "legacy"?

    Best

    Pascal

  • Hello Pascal and Eduard,

    Thank you so much for your kind replied. I really appreciate that. I had combined EyeLink and mousetrap plugins and would like to record participants' mouse trajectories and eye movements in my experiment. I just switched the backend to "xpyriment" or "legacy". However, the following errors (also see my attached screenshot) still showed on the screen. I have my experiment file and hope it would have a better understanding about my experimental structure. Thank you so much for your helps in advance.

    Best,

    Yu-Cheng


    ---------------------------------------------------

    An error message shows on the screen when I used legacy:


    Stopped

    The experiment did not finish normally for the following reason:

    • Unexpected error

    Details

    • item-stack:experiment[run].stimuli[run].random_order[run].trial[prepare].get_response[prepare]
    • exception type: AttributeError
    • exception message: 'Legacy' object has no attribute 'w'
    • time: Mon Apr 22 11:36:52 2019


    ------------------------------------------------------------------------------------------

    An error message shows on the screen when I used Xpyriment:


    Stopped

    The experiment did not finish normally for the following reason:

    • Unexpected error

    Details

    • item-stack:experiment[run].stimuli[run].random_order[run].trial[prepare].get_response[prepare]
    • exception type: AttributeError
    • exception message: 'Xpyriment' object has no attribute 'w'
    • time: Mon Apr 22 11:43:17 2019



  • Hi,


    That is a weird error, I don't know how to solve it, honestly. It seems to be related to the mousetrap plugin somehow.

    To be not entirely useless, I modified your script a little to make it a little clearer.


    Sorry,

    Eduard


    Buy Me A Coffee

  • Hi Yu-Cheng,

    could you specify which OpenSesame version you are using? And which version of the mousetrap plugin (i.e., the development version or one previously released version)?

    Best,

    Pascal

  • Hello Pascal,

    Thank you very much for your time and checking the file for me. I am currently using OpenSesame 3.2.6 in Window 64 (Python 2.7.13) and the current version of mousetrap plugin is os 1.2.1.

    Sincerely,

    Yu-Cheng

  • Hi Eduard,

    Although I didn't find out a solution yet, thank you so much for making the script more clearer. I appreciate that.


    Sincerely,

    Yu-Cheng

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