Howdy, Stranger!

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

Supported by

File does not exist error

edited December 2017 in OpenSesame

I am trying to create an experiment where images are displayed. I originally made the experiment with JPG image files, but changed to bmp. I have changed the script to reflect my new images:

set duration keypress
set description "Displays stimuli"
draw image center=1 file="boxes.bmp" scale=1 show_if=always x=0 y=0 z_index=0
draw textline center=1 color=black font_bold=no font_family=mono font_italic=no font_size=24 html=yes show_if=always text="[oddsA]" x=-160 y=192 z_index=0
draw textline center=1 color=black font_bold=no font_family=mono font_italic=no font_size=24 html=yes show_if=always text="[oddsB]" x=128 y=192 z_index=0
draw image center=1 file="blkB_[blkB].BMP" scale=1 show_if=always x=0 y=320 z_index=0

Despite the fact that I have changed these images, when I try to run the task, the program immediately crashes with the error:

IOError: The picture file 'boxes.JPG' does not exist
OR
IOError: The picture file '2bb.JPG' does not exist

These pictures do not exist, but it shouldn't be searching for them anyway, because I have told it to look for the image named boxes.bmp and those starting with blkB_

I did delete the old files from the pool, so is there something that I've not done correctly? Why is it still searching for the images when I've told it to look for previous ones?

Thanks

Comments

  • Correction: Why is it still searching for theme images when I've told it to look for newer versions?

  • Hi Johanna,

    I'm guessing that somewhere you have a copy of the sketchpad that still refers to the old images. The error message will give you an 'item stack' that indicates exactly where the error comes from.

    Does that help?

    Cheers,
    Sebastiaan

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

  • Thank you! This has helped me work it out.

Sign In or Register to comment.