I have written a script to execute the mediainfo.exe from a Kodi script. I recently updated from Kodi 17.1 to Kodi 17.3. Suddenly the script stopped working and i got an error.
Code:
File "C:\Program Files (x86)\Kodi17\system\python\Lib\subprocess.py", line 735, in __init__
self.stdin = os.fdopen(p2cwrite, 'wb', bufsize)
OSError: (2, 'No such file or directory')
If i install Kodi 17.1 again the script is working fine. I could see the python version changed from 2.7.12 to 2.7.13.
This is the code i use
Code:
exepath = '"' + __addonpath__ + '\mediainfo.exe"' + ' "' + fname + '"'
startupinfo = subprocess.STARTUPINFO()
startupinfo.dwFlags |= subprocess.STARTF_USESHOWWINDOW
ret = subprocess.Popen(exepath,
stdout=subprocess.PIPE,
stderr=subprocess.PIPE,
stdin=subprocess.PIPE,
startupinfo=startupinfo).communicate()
The variable exepath is in both Kodi version the same. e.g.
“C:\Program Files (x86)\Kodi17\portable_data\addons\script.skinhelper.mediainfo\mediainfo.exe” “\\MOVIEZ\share\test.mkv”
Does anybody have an idea what changed and why i get this error with Kodi 17.3??
Any idea how i could solve this issue?