Howdy, Stranger!

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

Supported by

[open] Error when trying to run exp. using images

edited May 2013 in OpenSesame


I am trying to run an experiment that has been running fine. But, I made a few changes and now this is occurring. I can't tell if this is a mac issue (I'm trying to run it on a mac), although it was running fine with the images on the mac before.

All the images are in the file pool.

I will try it on the usual PC in the morning, but any ideas what would be causing this?

Here is the error message:

An unexpected error occurred, which was not caught by OpenSesame. This should not happen! Message:
The picture file '/var/folders/yx/glwd9x2j51n04czh33_230y00000gn/T/tmpyyNLLj.opensesame_pool/' does not exist


  • edited 12:59AM

    It is still happening on the usual PC. I copied and pasted the script into a new blank experiment and then added the pictures to the file pool and I am still getting the same error (although with a different directory path on this PC).

    This is really bad timing as the scanner is scheduled today. Any help would be great.

  • edited 12:59AM

    Hi Elizabeth,

    It looks as though an empty string is specified for a filename. As you may notice /var/folders/yx/glwd9x2j51n04czh33_230y00000gn/T/tmpyyNLLj.opensesame_pool/ is just the filepool folder itself (which is always in some temporary folder), and not a file in the filepool.

    You can get this error when you specify an image like so:

    draw image 512 384 "[my_var]" scale=1.0 center=1 show_if="always"

    and then have my_var be an empty string, for example by setting it like this:

    exp.set('my_var', '')

    Could something along those lines be going on?


    There's much bigger issues in the world, I know. But I first have to take care of the world I know.

  • edited May 2013

    Hi Sebastiaan,

    Yes, this could be it. There are trials where no images are shown, although the sequence for those trials doesn't include an image. Perhaps it is easier if I e-mail the experiment, but here are screen shots of the set-up. Basically, there is one loop (objects_saccades) that loops through trials showing either a series of images (uses the obj_seq sequence), a series of fixation targets (saccade_seq) or a rest period (ISI).

    Here are the two screen shots, but let me know if something else would be more helpful.

    This may not be the best set-up anyway. I ran the pilot, although without this part of this task, and had some timing issues where the experiment took longer than it should have and so the scanning finished and the task was still going, which means the onsets and duration of events are not in the expected places...I will post a separate post about this to keep things organized, but maybe this issue will be solved by organizing things differently for timing accuracy anyway.

    Thank you so much!

  • edited 12:59AM

    Hi Elizabeth,

    I think the problem is indeed that on some trials the image files are left blank (obj1, obj2, and obj3). Even though this may not seem like a problem, because no image will be shown on those trials anyway, it actually is: When an item is skipped through a 'Run if' statement, it is still prepared, and the prepare phase requires a valid image file. Does that make sense?

    For more information, see here:

    The easiest solution is to use some dummy image (dummy.BMP, say) where you now leave the image blank.

    Hope this helps!


    There's much bigger issues in the world, I know. But I first have to take care of the world I know.

Sign In or Register to comment.