problems with using media_player_mpy
Hi! I was having some troubles with the video player and I'm now trying to download media_player_mpy. At first, I tried to install it by running in the debug window the following command:
import pip
pip.main(['install', 'opensesame-plugin-media_player_mpy'])
but I got the following error:
Traceback (most recent call last):
File "<console>", line 1, in <module>
ImportError: No module named pip
So, I installed it from the terminal, but still when trying to drag the media_player_mpy item (which by the way appears without the icon - see snapshot:, I get the following error:
Traceback:
File "/Applications/OpenSesame.app/Contents/Resources/lib/python2.7/libopensesame/item_store.py", line 77, in new
File "/Applications/OpenSesame.app/Contents/Resources/lib/python2.7/libopensesame/plugins.py", line 331, in load_plugin
File "/Applications/OpenSesame.app/Contents/Resources/lib/python2.7/libopensesame/plugins.py", line 303, in import_plugin
File "/Applications/OpenSesame.app/Contents/Resources/plugins/media_player_mpy/media_player_mpy.py", line 22, in <module>
ImportError: No module named py3compat
Don't know if it helps but when running modules() in the debug window, I got:
modules()
OpenSesame 2.9.7
Python 2.7.9 (default, Apr 6 2015, 23:55:48)
[GCC 4.2.1 Compatible Apple LLVM 6.0 (clang-600.0.57)]
OpenCV is not available
OpenCV 2 is not available
QProgedit 2.1.0
Expyriment 0.7.0 (Revision 55a4e7e; Python 2.7.9)
NumPy 1.9.2
PIL is available (version is unknown)
PsychoPy 1.82.01
PyAudio 0.2.8
PyGame 1.9.1release
PyGaze 0.5.0
Pyglet 1.2alpha1
PyOpenGL 3.1.0
PyQt 4.11.3
PySerial 2.7
python-bidi 0.3.4
python-markdown 2.5
SciPy 0.15.1
Any ideas?
btw Merry Christmas
Comments
Hi Nadja,
Thanks for your detailed question!
I think both pip and media_player_mpy only work with OpenSesame 3. Can you update to the latest version 3.1.4?
If you have to stick with version 2.9.7 maybe this helps:
http://osdoc.cogsci.nl/2.9/usage/video/
Merry Christmas,
Jarik