psychopy.org | Reference | Downloads | Github

OSError in Builder view

OS (e.g. Win10): Win10
PsychoPy version (e.g. 1.84.x): 3.0.0
Standard Standalone? (y/n) y
What are you trying to achieve?: Trying to play movie stimuli of a MOV file for an experiment that records responses after watching the clip in Builder view. Have tried searching on google but haven’t found a solution yet.

Error Message

####### Running: C:\Users\PsychoPy\Desktop\Experiment_1_lastrun.py ########
Traceback (most recent call last):
File “C:\Users\PsychoPy\Desktop\Experiment_1_lastrun.py”, line 74, in
depth=0.0,
File “C:\Program Files (x86)\PsychoPy3\lib\site-packages\psychopy\contrib\lazy_import.py”, line 120, in call
return obj(*args, **kwargs)
File “C:\Program Files (x86)\PsychoPy3\lib\site-packages\psychopy\visual\movie3.py”, line 134, in init
self.loadMovie(self.filename)
File “C:\Program Files (x86)\PsychoPy3\lib\site-packages\psychopy\visual\movie3.py”, line 200, in loadMovie
raise IOError(“Movie file ‘%s’ was not found” % filename)
OSError: Movie file ‘“C:\Users\PsychoPy\Downloads\DSC_5312.MOV”’ was not found
Exception ignored in: <bound method MovieStim3.del of <psychopy.visual.movie3.MovieStim3 object at 0x1C5E19D0>>
Traceback (most recent call last):
File “C:\Program Files (x86)\PsychoPy3\lib\site-packages\psychopy\visual\movie3.py”, line 493, in del
self._unload()
File “C:\Program Files (x86)\PsychoPy3\lib\site-packages\psychopy\visual\movie3.py”, line 471, in _unload
self.clearTextures()
File “C:\Program Files (x86)\PsychoPy3\lib\site-packages\psychopy\visual\basevisual.py”, line 1003, in clearTextures
GL.glDeleteTextures(1, self._texID)
OSError: exception: access violation reading 0x00000000

Thanks to anyone who can help!

Simply put: that movie file is not where you think it is, or not named what you think it is named.

  • In particular, make sure that Windows is set up to show extensions on all files: that can sometimes lead to issues with a file having two extensions, although you can see only one.
  • Also don’t use \ in path names. Use / instead. \ can act as an escape sequence in Python and other languages.
  • And you should avoid full absolute paths like this: it means the experiment can’t be moved to another computer. The movie file should be placed in the same folder as your experiment (in which case you can just refer to it by its filename, with no path needed), or a subdirectory there, where you can then just use a relative path like 'movies/DSC_5312.MOV'.
1 Like

Thanks Michael! I was able to run the video when I changed the path to DSC_5312.MOV and it’s working well! Much appreciated.