# Error couldn't find image check path?

**URL:** <https://discourse.psychopy.org/t/error-couldnt-find-image-check-path/2913>\
**Category:** Builder\
**Created:** [August 11, 2017, 7:27pm UTC](https://discourse.psychopy.org/t/error-couldnt-find-image-check-path/2913 "2017-08-11T19:27:47Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![Beth19632](https://avatars.discourse-cdn.com/v4/letter/b/87869e/32.png) [@Beth19632](https://discourse.psychopy.org/u/Beth19632)\
**Post date:** [August 11, 2017, 7:27pm UTC](https://discourse.psychopy.org/t/error-couldnt-find-image-check-path/2913/1 "2017-08-11T19:27:47Z")

</div>

Mac OS sierra, PsychoPy v 1.85.2.

Hi there,  
I’m having trouble with my experiment and was wondering if anyone had an idea what might be going wrong! When I run my experiment, it runs for half of the loop and then it cuts out and I get the error message below. I have checked to make sure that the name of the stimuli and the image match. I can’t think what else I can do! Any help would be much appreciated, thanks.

Running: /Users/betty/Desktop/PsychoPypositivevsnegativeIAPSsamescale2014/CItaskNegativeNEW\_Zhimins\_ITI\_scale\_not\_modified\_for\_EC/EC\_taskNEG4\_lastrun.py  
pyo version 0.8.6 (uses single precision)  
2.1342 ERROR Requested audio device ‘auto’ that is not available on this hardware. The ‘audioDevice’ preference should be one of [u’Built-in Output’]  
104.1391 ERROR Couldn’t find image M.bmp ; check path? (tried: /Users/betty/Desktop/PsychoPypositivevsnegativeIAPSsamescale2014/CItaskNegativeNEW\_Zhimins\_ITI\_scale\_not\_modified\_for\_EC/M.bmp )  
2017-08-11 20:20:18.351 python[7746:570868] ApplePersistenceIgnoreState: Existing state will not be touched. New state will be written to /var/folders/xl/q5rb9y1544z6q748qghtq4zc0000gn/T/org.psychopy.PsychoPy2.savedState  
Traceback (most recent call last):  
File “/Users/betty/Desktop/PsychoPypositivevsnegativeIAPSsamescale2014/CItaskNegativeNEW\_Zhimins\_ITI\_scale\_not\_modified\_for\_EC/EC\_taskNEG4\_lastrun.py”, line 485, in   
LegoBlock2.setImage(CS2)  
File “/Applications/PsychoPy2.app/Contents/Resources/lib/python2.7/psychopy/visual/image.py”, line 289, in setImage  
setAttribute(self, ‘image’, value, log)  
File “/Applications/PsychoPy2.app/Contents/Resources/lib/python2.7/psychopy/tools/attributetools.py”, line 137, in setAttribute  
setattr(self, attrib, value)  
File “/Applications/PsychoPy2.app/Contents/Resources/lib/python2.7/psychopy/tools/attributetools.py”, line 27, in **set**  
newValue = self.func(obj, value)  
File “/Applications/PsychoPy2.app/Contents/Resources/lib/python2.7/psychopy/visual/image.py”, line 276, in image  
forcePOW2=False)  
File “/Applications/PsychoPy2.app/Contents/Resources/lib/python2.7/psychopy/visual/basevisual.py”, line 794, in \_createTexture  
raise IOError, msg % (tex, os.path.abspath(tex))  
IOError: Couldn’t find image M.bmp ; check path? (tried: /Users/betty/Desktop/PsychoPypositivevsnegativeIAPSsamescale2014/CItaskNegativeNEW\_Zhimins\_ITI\_scale\_not\_modified\_for\_EC/M.bmp )

---

<div class="post-metadata">

**Author:** ![Michael](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.psychopy.org/michael/32/16_2.png) [@Michael](https://discourse.psychopy.org/u/Michael)\
**Post date:** [August 12, 2017, 2:00am UTC](https://discourse.psychopy.org/t/error-couldnt-find-image-check-path/2913/2 "2017-08-12T02:00:41Z")

</div>

> [@Beth19632](#):
>
> I have checked to make sure that the name of the stimuli and the image match.

The name may match, but the path doesn’t. Please tell us the path to the image (select it in the Finder and type `⌘I` to get info and copy the path. Do the same for your Builder. psyexp file.

---

<div class="post-metadata">

**Author:** ![Beth19632](https://avatars.discourse-cdn.com/v4/letter/b/87869e/32.png) [@Beth19632](https://discourse.psychopy.org/u/Beth19632)\
**Post date:** [August 12, 2017, 12:23pm UTC](https://discourse.psychopy.org/t/error-couldnt-find-image-check-path/2913/3 "2017-08-12T12:23:07Z")

</div>

Hi thanks for your help! Right okay, here’s a screen shot of the info for each folder, is this the right information you need?

 ![43](https://us1.discourse-cdn.com/flex002/uploads/psychopy/original/3X/d/4/d40637f374e686e45792d209542970730cc4e50e.jpeg)

---

<div class="post-metadata">

**Author:** ![Michael](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.psychopy.org/michael/32/16_2.png) [@Michael](https://discourse.psychopy.org/u/Michael)\
**Post date:** [August 12, 2017, 9:34pm UTC](https://discourse.psychopy.org/t/error-couldnt-find-image-check-path/2913/4 "2017-08-12T21:34:52Z")

</div>

> [@Michael](#):
>
> Please tell us the path to the image

i.e. the file `M.bmp`

---

<div class="post-metadata">

**Author:** ![Beth19632](https://avatars.discourse-cdn.com/v4/letter/b/87869e/32.png) [@Beth19632](https://discourse.psychopy.org/u/Beth19632)\
**Post date:** [August 12, 2017, 10:12pm UTC](https://discourse.psychopy.org/t/error-couldnt-find-image-check-path/2913/5 "2017-08-12T22:12:43Z")

</div>

Sorry I think this is the path?

/Users/betty/Desktop/PsychoPypositivevsnegativeIAPSsamescale2014/CItaskNegativeNEW\_Zhimins\_ITI\_scale\_not\_modified\_for\_EC/M.bmp

Here’s a screenshot of the info

 ![04](https://us1.discourse-cdn.com/flex002/uploads/psychopy/original/3X/e/2/e2148c7e08bed0b6ec569fde2041f5a1ca6194bf.jpeg)

---

<div class="post-metadata">

**Author:** ![Yiannis](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.psychopy.org/yiannis/32/35056_2.png) [@Yiannis](https://discourse.psychopy.org/u/Yiannis)\
**Post date:** [August 22, 2017, 2:19pm UTC](https://discourse.psychopy.org/t/error-couldnt-find-image-check-path/2913/6 "2017-08-22T14:19:54Z")

</div>

In case you haven’t found the error already, the filepaths are incorrect e.g.  
psychopy attempts to find the image in /Users/betty/Desktop/PsychoPypositivevsnegativeIAPSsamescale2014/CItask **Negative** NEW\_Zhimins\_ITI\_scale\_not\_modified\_for\_EC/M.bmp  
when in fact the image is saved in  
/Users/betty/Desktop/PsychoPypositivevsnegativeIAPSsamescale2014/CItask **Positive** NEW\_Zhimins\_ITI\_scale\_not\_modified\_for\_EC/M.bmp

…I think
