psychopy.org | 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/program.py ##########
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/PsychoPy2.app/Contents/Resources/lib/python2.7/imageio/resources/ffmpeg/ffmpeg.osx’
Traceback (most recent call last):
File “/Users/rachel.ubanos/Documents/RachelV3/program.py”, line 284, in
depth=-2.0,)
File “/Applications/PsychoPy2.app/Contents/Resources/lib/python2.7/psychopy/contrib/lazy_import.py”, line 120, in call
return obj(*args, **kwargs)
File “/Applications/PsychoPy2.app/Contents/Resources/lib/python2.7/psychopy/visual/movie3.py”, line 124, in init
self.loadMovie(self.filename)
File “/Applications/PsychoPy2.app/Contents/Resources/lib/python2.7/psychopy/visual/movie3.py”, line 170, in loadMovie
self._mov = VideoFileClip(filename, audio=(1 - self.noAudio))
File “/Applications/PsychoPy2.app/Contents/Resources/lib/python2.7/moviepy/video/io/VideoFileClip.py”, line 55, in init
reader = FFMPEG_VideoReader(filename, pix_fmt=pix_fmt)
File “/Applications/PsychoPy2.app/Contents/Resources/lib/python2.7/moviepy/video/io/ffmpeg_reader.py”, line 32, in init
infos = ffmpeg_parse_infos(filename, print_infos, check_duration)
File “/Applications/PsychoPy2.app/Contents/Resources/lib/python2.7/moviepy/video/io/ffmpeg_reader.py”, 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 https://raw.githubusercontent.com/Homebrew/install/master/install)"
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\final-JAM_fMRI_Present_Vids_5-25-18.py", line 730, in <module>
    load_movies()
  File "E:\JAM 5-25\Videos\final-JAM_fMRI_Present_Vids_5-25-18.py", line 725, in load_movies
    depth=0.0,
  File "C:\Program Files (x86)\PsychoPy2\lib\site-packages\psychopy-1.83.04-py2.7.egg\psychopy\contrib\lazy_import.py", 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\movie3.py", line 121, in __init__
    self.loadMovie(self.filename)
  File "C:\Program Files (x86)\PsychoPy2\lib\site-packages\psychopy-1.83.04-py2.7.egg\psychopy\visual\movie3.py", line 166, in loadMovie
    self._mov = VideoFileClip(filename, audio= (1-self.noAudio))
  File "C:\Program Files (x86)\PsychoPy2\lib\site-packages\moviepy-0.2.2.11-py2.7.egg\moviepy\video\io\VideoFileClip.py", line 55, in __init__
    reader = FFMPEG_VideoReader(filename, pix_fmt=pix_fmt)
  File "C:\Program Files (x86)\PsychoPy2\lib\site-packages\moviepy-0.2.2.11-py2.7.egg\moviepy\video\io\ffmpeg_reader.py", line 32, in __init__
    infos = ffmpeg_parse_infos(filename, print_infos, check_duration)
  File "C:\Program Files (x86)\PsychoPy2\lib\site-packages\moviepy-0.2.2.11-py2.7.egg\moviepy\video\io\ffmpeg_reader.py", line 239, in ffmpeg_parse_infos
    proc = sp.Popen(cmd, **popen_params)
  File "C:\Program Files (x86)\PsychoPy2\lib\subprocess.py", line 679, in __init__
    errread, errwrite)
  File "C:\Program Files (x86)\PsychoPy2\lib\subprocess.py", line 896, in _execute_child
    startupinfo)
WindowsError: [Error 5] Access is denied
Exception AttributeError: "VideoFileClip instance has no attribute 'reader'" in <bound method VideoFileClip.__del__ of <moviepy.video.io.VideoFileClip.VideoFileClip instance at 0x0CAF12D8>> ignored