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

  • 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

  • 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

  • edited April 19

    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


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