psychopy.org | Reference | Downloads | Github

Couldn't find image

Hello all,

When I was running the experiment, the experiment suddenly cut out with the error message “Couldn’t find image”. However, I am pretty sure that the image path in the condition file is correct. Regarding the error message, I am puzzled why the notebook is missing an letter “n” ?

The error code is as follows:

############# Running: D:\psychopy\RWO_LTM\Exp1 - copy_lastrun.py ##############
1482.0554     INFO     Loaded monitor calibration from ['2021_02_20 15:59']
pygame 1.9.6
Hello from the pygame community. https://www.pygame.org/contribute.html
1.7265     WARNING     Font Manager failed to load file C:\Windows\Fonts\方正粗黑宋简体.ttf
2.1395     WARNING     Font Manager failed to load file C:\Windows\Fonts\方正粗黑宋简体.ttf
9.0263     WARNING     Couldn't measure a consistent frame rate.
  - Is your graphics card set to sync to vertical blank?
  - Are you running other processes on your computer?

9.5705     WARNING     t of last frame was 544.66ms (=1/1)
9.6094     WARNING     t of last frame was 38.94ms (=1/25)
9.9589     WARNING     t of last frame was 20.81ms (=1/48)
10.2496     WARNING     t of last frame was 55.43ms (=1/18)
10.2735     WARNING     Multiple dropped frames have occurred - I'll stop bothering you about them!
26.2256     ERROR     Couldn't find image Images
otebook\e1_s2.JPG; check path? (tried: D:\psychopy\RWO_LTM\Images
otebook\e1_s2.JPG)
Traceback (most recent call last):
  File "D:\psychopy\RWO_LTM\Exp1 - copy_lastrun.py", line 1121, in <module>
    rwo.setImage(thisPic)
  File "D:\psychopy\lib\site-packages\psychopy\visual\image.py", line 305, in setImage
    setAttribute(self, 'image', value, log)
  File "D:\psychopy\lib\site-packages\psychopy\tools\attributetools.py", line 141, in setAttribute
    setattr(self, attrib, value)
  File "D:\psychopy\lib\site-packages\psychopy\tools\attributetools.py", line 32, in __set__
    newValue = self.func(obj, value)
  File "D:\psychopy\lib\site-packages\psychopy\visual\image.py", line 292, in image
    wrapping=False)
  File "D:\psychopy\lib\site-packages\psychopy\visual\basevisual.py", line 823, in _createTexture
    raise IOError(msg % (tex, os.path.abspath(tex)))
OSError: Couldn't find image Images
otebook\e1_s2.JPG; check path? (tried: D:\psychopy\RWO_LTM\Images
otebook\e1_s2.JPG)
Exception ignored in: <bound method TextStim.__del__ of <psychopy.visual.text.TextStim object at 0x000001E458208AC8>>
Traceback (most recent call last):
  File "D:\psychopy\lib\site-packages\psychopy\visual\text.py", line 240, in __del__
  File "D:\psychopy\lib\site-packages\pyglet\gl\lib.py", line 97, in errcheck
ImportError: sys.meta_path is None, Python is likely shutting down
##### Experiment ended. #####


The reason that notebook is missing an n is because \n is being interpreted as a new line character.

You might be able to solve this by searching and replacing \ with / in your Excel file.

1 Like

Hello wakecarter,
Thanks for your advices! I haven’t realize that \n will be interpreted as a new line character. Let me have a try! :star_struck:
Best wishes, Cheer