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 2019

    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.

    Buy Me A Coffee

Sign In or Register to comment.

agen judi bola , sportbook, casino, togel, number game, singapore, tangkas, basket, slot, poker, dominoqq, agen bola. Semua permainan bisa dimainkan hanya dengan 1 ID. minimal deposit 50.000 ,- bonus cashback hingga 10% , diskon togel hingga 66% bisa bermain di android dan IOS kapanpun dan dimana pun. poker , bandarq , aduq, domino qq , dominobet. Semua permainan bisa dimainkan hanya dengan 1 ID. minimal deposit 10.000 ,- bonus turnover 0.5% dan bonus referral 20%. Bonus - bonus yang dihadirkan bisa terbilang cukup tinggi dan memuaskan, anda hanya perlu memasang pada situs yang memberikan bursa pasaran terbaik yaitu http://45.77.173.118/ Bola168. Situs penyedia segala jenis permainan poker online kini semakin banyak ditemukan di Internet, salah satunya TahunQQ merupakan situs Agen Judi Domino66 Dan BandarQ Terpercaya yang mampu memberikan banyak provit bagi bettornya. Permainan Yang Di Sediakan Dewi365 Juga sangat banyak Dan menarik dan Peluang untuk memenangkan Taruhan Judi online ini juga sangat mudah . Mainkan Segera Taruhan Sportbook anda bersama Agen Judi Bola Bersama Dewi365 Kemenangan Anda Berapa pun akan Terbayarkan. Tersedia 9 macam permainan seru yang bisa kamu mainkan hanya di dalam 1 ID saja. Permainan seru yang tersedia seperti Poker, Domino QQ Dan juga BandarQ Online. Semuanya tersedia lengkap hanya di ABGQQ. Situs ABGQQ sangat mudah dimenangkan, kamu juga akan mendapatkan mega bonus dan setiap pemain berhak mendapatkan cashback mingguan. ABGQQ juga telah diakui sebagai Bandar Domino Online yang menjamin sistem FAIR PLAY disetiap permainan yang bisa dimainkan dengan deposit minimal hanya Rp.25.000. DEWI365 adalah Bandar Judi Bola Terpercaya & resmi dan terpercaya di indonesia. Situs judi bola ini menyediakan fasilitas bagi anda untuk dapat bermain memainkan permainan judi bola. Didalam situs ini memiliki berbagai permainan taruhan bola terlengkap seperti Sbobet, yang membuat DEWI365 menjadi situs judi bola terbaik dan terpercaya di Indonesia. Tentunya sebagai situs yang bertugas sebagai Bandar Poker Online pastinya akan berusaha untuk menjaga semua informasi dan keamanan yang terdapat di POKERQQ13. Kotakqq adalah situs Judi Poker Online Terpercayayang menyediakan 9 jenis permainan sakong online, dominoqq, domino99, bandarq, bandar ceme, aduq, poker online, bandar poker, balak66, perang baccarat, dan capsa susun. Dengan minimal deposit withdraw 15.000 Anda sudah bisa memainkan semua permaina pkv games di situs kami. Jackpot besar,Win rate tinggi, Fair play, PKV Games