Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

Supported by

Failed to load plugin 'media_player_mpy'

Hello,

I am trying to include a video in my stimuli in Open Sesame by dragging the 'media_player_mpy' GUI into my paradigm pipeline. However, when I drag it over I get the below error. I did some digging in previous discussion where I tried downloading ffmpeg myself and placing it in the right folder.

I downloaded it at https://github.com/imageio/imageio-binaries/raw/master/ffmpeg and copied the ffmpeg.osx to /Users/<your_username>/Library/Application Support/imageio/ffmpeg So to be clear, the last ffmpeg in this path is a folder, and in this folder you place the file ffmpeg.osx.

After doing this, I closed Open Sesame down, reloaded and tried to drag it over again - I received the same error.

I have my firewall turned off & am attached to a private internet connection. I have both 'media_player_mpy' and 'ffmpeg' downloaded, but Python can't seem to locate them. Does anyone have any other suggestions, or encountered this same issue and fixed it?

Thank you for your help in advance!

Ellie

--

Information:

  • Operating System: darwin
  • OpenSesame: 3.2.8
  • Python: 2.7.15

Don't show me this message!

  • If you don't want to see bug-report messages in the future, you can disable the bug_report extension under Menu → Tools → Plug-in and extension manager. This does not automagically solve the problem--it only suppresses the report!

Error message:

Traceback (most recent call last):
  File "/Applications/OpenSesame.app/Contents/Resources/lib/python2.7/site-packages/libqtopensesame/widgets/tree_overview.py", line 783, in dropEvent
    self.drop_event_item_new(data, e)
  File "/Applications/OpenSesame.app/Contents/Resources/lib/python2.7/site-packages/libqtopensesame/widgets/tree_overview.py", line 702, in drop_event_item_new
    item, new_items = self.drop_get_item_snippet(data)
  File "/Applications/OpenSesame.app/Contents/Resources/lib/python2.7/site-packages/libqtopensesame/widgets/tree_overview.py", line 588, in drop_get_item_snippet
    catch_exceptions=False)
  File "/Applications/OpenSesame.app/Contents/Resources/lib/python2.7/site-packages/libqtopensesame/misc/qtitem_store.py", line 118, in new
    allow_rename=allow_rename
  File "/Applications/OpenSesame.app/Contents/Resources/lib/python2.7/site-packages/libopensesame/item_store.py", line 195, in new
    exception=e
osexception: 
Failed to load plugin 'media_player_mpy'
item-stack: 
exception type: NeedDownloadError
exception message: Need ffmpeg exe. You can obtain it with either:
  - install using conda: conda install ffmpeg -c conda-forge
  - download using the command: imageio_download_bin ffmpeg
  - download by calling (in Python): imageio.plugins.ffmpeg.download()

time: Fri Nov 15 16:57:31 2019

Traceback:
  File "/Applications/OpenSesame.app/Contents/Resources/lib/python2.7/site-packages/libopensesame/item_store.py", line 190, in new
    self.experiment.item_prefix()
  File "/Applications/OpenSesame.app/Contents/Resources/lib/python2.7/site-packages/libopensesame/plugins.py", line 428, in load_plugin
    item_module = import_plugin(plugin, _type=_type)
  File "/Applications/OpenSesame.app/Contents/Resources/lib/python2.7/site-packages/libopensesame/plugins.py", line 395, in import_plugin
    return imp.load_source(plugin, path)
  File "/Applications/OpenSesame.app/Contents/Resources/share/opensesame_plugins/media_player_mpy/media_player_mpy.py", line 42, in <module>
    import mediadecoder
  File "/Applications/OpenSesame.app/Contents/Resources/lib/python2.7/site-packages/mediadecoder/__init__.py", line 6, in <module>
    from mediadecoder.decoder import Decoder
  File "/Applications/OpenSesame.app/Contents/Resources/lib/python2.7/site-packages/mediadecoder/decoder.py", line 9, in <module>
    from moviepy.video.io.VideoFileClip import VideoFileClip
  File "/Applications/OpenSesame.app/Contents/Resources/lib/python2.7/site-packages/moviepy/video/io/VideoFileClip.py", line 3, in <module>
    from moviepy.video.VideoClip import VideoClip
  File "/Applications/OpenSesame.app/Contents/Resources/lib/python2.7/site-packages/moviepy/video/VideoClip.py", line 18, in <module>
    from ..config import get_setting
  File "/Applications/OpenSesame.app/Contents/Resources/lib/python2.7/site-packages/moviepy/config.py", line 35, in <module>
    FFMPEG_BINARY = get_exe()
  File "/private/var/folders/1l/cx9n7qw90xqgl2w5x3r4259m0000gn/T/pip-install-IDuAAx/imageio/imageio/plugins/ffmpeg.py", line 127, in get_exe
NeedDownloadError: Need ffmpeg exe. You can obtain it with either:
  - install using conda: conda install ffmpeg -c conda-forge
  - download using the command: imageio_download_bin ffmpeg
  - download by calling (in Python): imageio.plugins.ffmpeg.download()


Comments

  • edited November 26

    I guess this means ffmpeg is not included in the osx version of python, or cannot be directly located. I'd need to check this out. Does the last suggestion work as a temporary workaround? You can execute the code below in the OpenSesame debug window:

    import imageio
    imageio.plugins.ffmpeg.download()
    

    That's the easiest for now, I think. I'll remember adding this to the next release of OpenSesame, alongside openpyxl which was also missing.

Sign In or Register to comment.