ImportError (encodings) when calling video player with python script from parent media center Kodi -
i'm trying use video player mpv vapoursynth filter, uses python 3, external player in media center kodi. mpv shortly flashes in dock, crashes, accompanied error message: "mpv quit unexpectedly." , terminal output
fatal python error: py_initialize: unable load file system codec importerror: no module named 'encodings' when starting mpv through terminal or dragging file onto it, it's fine, no crash.
i'm using os x 10.10.4 yosemite , tried several versions of mpv , kodi. used homebrew install kodi, mpv, vapoursynth , python3.
the crash report: http://pastebin.com/1jlcmb6d
other things can provide:
$ whereis python /usr/bin/python (but python 3.4 located in /usr/local/cellar/python3/3.4.3/, installed brew)
echo $pythonpath (nothing) mpv -> vapoursynth -> fine
kodi -> mpv -> vapoursynth -> python error
why occur when calling within kodi?
in meantime found out myself:
kodi has built-in python 2 interpreter , - in upcoming version 15 - still not using python 3 interpreter introduced in december 2008. script, needs python 3, not run when called environment.
Comments
Post a Comment