| Reference | Downloads | Github

Program working on one computer but not the other

Hi! I’m trying to run a program on two separate computers so I can have two participants at the same time. The computers are identical and are running on the latest version of PsychoPy, but for some reason, the other computer keeps giving me the following output and I have not idea what to do:

######### Running: /Users/rachel.ubanos/Documents/RachelV3/ ##########
2017-03-10 13:14:06.591 python[4416:160471] ApplePersistenceIgnoreState: Existing state will not be touched. New state will be written to /var/folders/mj/1hm7hpy969bgxthntj288x7rk462hy/T/org.psychopy.PsychoPy2.savedState
WARNING:root:Warning: could not find imageio’s ffmpeg executable:
[Errno 1] Operation not permitted: '/Applications/’
Traceback (most recent call last):
File “/Users/rachel.ubanos/Documents/RachelV3/”, line 284, in
File “/Applications/”, line 120, in call
return obj(*args, **kwargs)
File “/Applications/”, line 124, in init
File “/Applications/”, line 170, in loadMovie
self._mov = VideoFileClip(filename, audio=(1 - self.noAudio))
File “/Applications/”, line 55, in init
reader = FFMPEG_VideoReader(filename, pix_fmt=pix_fmt)
File “/Applications/”, line 32, in init
infos = ffmpeg_parse_infos(filename, print_infos, check_duration)
File “/Applications/”, line 237, in ffmpeg_parse_infos
proc = sp.Popen(cmd, **popen_params)
File “subprocess.pyc”, line 711, in init
File “subprocess.pyc”, line 1343, in _execute_child
OSError: [Errno 2] No such file or directory

I’ve tried the program on two other computers in my lab and am still getting the same output error. Can anyone help? I have participants coming on Tuesday :sob:

Please always state actual PsychoPy version rather than "the latest"
Please always state the operating system (I’m guessing OSX - are they all OSX?)

I think the problem is that ffmpeg isn’t being found (needed for decoding video files). We’ve been trying to package ffmpeg within psychopy for a while but maybe this didn’t work (or maybe you don’t actually have the “latest” version. Alternatively PsychoPy also tries to install ffmpeg when needed and not found but maybe doesn’t have the right permissions. Try going to a terminal and running these commands:

xcode-select --install
ruby -e "$(curl -fsSL"
brew install ffmpeg

@jon Xcode is already installed on the computers, but I’m still getting the same output
The PsychoPy version is 1.84.2

FYI, John’s talking about installing ffmpeg, not XCode.

I am having the same issue, and getting a very similar error message, on a Windows 7 machine running 1.83.04. @jon, is there a similar command to resolve this error on Windows?

Here is my error. Some of the reference lines towards the end are different, I assume because of the difference in OS.

Traceback (most recent call last):
  File "E:\JAM 5-25\Videos\", line 730, in <module>
  File "E:\JAM 5-25\Videos\", line 725, in load_movies
  File "C:\Program Files (x86)\PsychoPy2\lib\site-packages\psychopy-1.83.04-py2.7.egg\psychopy\contrib\", line 120, in __call__
    return obj(*args, **kwargs)
  File "C:\Program Files (x86)\PsychoPy2\lib\site-packages\psychopy-1.83.04-py2.7.egg\psychopy\visual\", line 121, in __init__
  File "C:\Program Files (x86)\PsychoPy2\lib\site-packages\psychopy-1.83.04-py2.7.egg\psychopy\visual\", line 166, in loadMovie
    self._mov = VideoFileClip(filename, audio= (1-self.noAudio))
  File "C:\Program Files (x86)\PsychoPy2\lib\site-packages\moviepy-\moviepy\video\io\", line 55, in __init__
    reader = FFMPEG_VideoReader(filename, pix_fmt=pix_fmt)
  File "C:\Program Files (x86)\PsychoPy2\lib\site-packages\moviepy-\moviepy\video\io\", line 32, in __init__
    infos = ffmpeg_parse_infos(filename, print_infos, check_duration)
  File "C:\Program Files (x86)\PsychoPy2\lib\site-packages\moviepy-\moviepy\video\io\", line 239, in ffmpeg_parse_infos
    proc = sp.Popen(cmd, **popen_params)
  File "C:\Program Files (x86)\PsychoPy2\lib\", line 679, in __init__
    errread, errwrite)
  File "C:\Program Files (x86)\PsychoPy2\lib\", line 896, in _execute_child
WindowsError: [Error 5] Access is denied
Exception AttributeError: "VideoFileClip instance has no attribute 'reader'" in <bound method VideoFileClip.__del__ of < instance at 0x0CAF12D8>> ignored