imageio trying to download
ffmpeg with no internet connection makes the application crash.
PsychoPy version : 1.90.3
Standard Standalone? yes
What are you trying to achieve?: Start the application.
What did you try to make it work?: Launch it with no internet connection.
What specifically went wrong when you tried that?:
Python complains ‘ffmpef not downloaded, download now’ and downloads ffmpeg EVERYTIME PsychoPy2 is launched. With internet connection, the application hangs until finishing downloading; with no internet connection, it crashes.
The problem is similar to moviepy#493. Since the version in PsychoPy2 Standalone is 0.2.3.2, which is older than the current stable version of moviepy, I’m not sure if the problem was fixed in PsychoPy3.
A quick fix is to call
imageio.plugins.ffmpeg.download() directly in the shell with internet connection:
import imageio imageio.plugins.ffmpeg.download()
After doing this, the application stop downloading ffmpeg endlessly.
It may be a good idea to fix this problem for the users.
Hope that helps!