psychopy.org | Reference | Downloads | Github

A error in PsychoPy 1.84.2, but not in PsychoPy 1.90.2

OS (e.g. Win10):
PsychoPy version (e.g. 1.84.2):
Standard Standalone? (y/n) Yes

Hi, I meet a problem in PsychoPy 1.84.2, but not in PsychoPy 1.90.2. the error is following:

OSError: Couldn’t find image ‘zhidaoyu’; check path? (tried: C:\Chenglin_Exps\New Experiment by Builder\zhidaoyu)

I have checked the path, this image is in this path, and this program can run in PsychoPy 1.90.2.
I don’t know why? I hope I can get help from you. Thank you!

See Chapter 3 of the book
https://us.sagepub.com/en-us/nam/building-experiments-in-psychopy/book253480

Most likely the image is actually called zhidaoy.jpg or zhidaoyu.png and you just haven’t realised because windows/mac hide the extension. This is such a common mistake that in 1.90.x, when an image wasn’t found, we started checking adding common extensions to see if it was really there.

Also it’s a really good idea to use relative paths to your stimuli rather than C:…

All this info, and more, in the book!

Dear Jon,
Thank you so much!
Bests,
Chenglin