[mythtv-users] User Job to rip subtitles from each program

Michael T. Dean mtdean at thirdcontact.com
Sun Feb 5 18:53:44 UTC 2012


On 02/05/2012 11:33 AM, David Crawford wrote:
> Hi,
>
> Can anyone please give me any hints as to where to find a solution for 
> the following error?:
>
> Traceback (most recent call last):
>   File "/home/dave/uksub2srt/rename.py", line 22, in <module>
>     '-o', '/home/dave/Downloads/subtitles/{0}.srt'.format(newbase))
>   File "/usr/lib/pymodules/python2.7/MythTV/system.py", line 57, in 
> __call__
>     def __call__(self, *args): return self.command(*args)
>   File "/usr/lib/pymodules/python2.7/MythTV/system.py", line 89, in 
> command
>     return self._runcmd('%s %s' % (self.path, arg))
>   File "/usr/lib/pymodules/python2.7/MythTV/system.py", line 98, in 
> _runcmd
>     raise MythError(MythError.SYSTEM,self.returncode,cmd,self.stderr)
> MythTV.exceptions.MythError: External system call failed: code 126
>
> I've looked through "system.py" but couldnt find any answers..
>
> Is it this part of the script thats failing?
>
> from MythTV import System
> ccextractor = System(path="/home/dave/uksub2srt/uksub2srt.py")
> ccextractor('-i', os.path.join(sg.dirname, prog.basename),
>             '-o', '/home/subtitles/{0}.srt'.format(newbase))

A 126 error code would be coming from the code inside the uksub2srt.py 
script.  You'll have to open it up and read the code to see what's wrong 
when it returns a 126 error code.

Mike


More information about the mythtv-users mailing list