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

David Crawford davidcrawford83 at gmail.com
Sun Feb 5 16:33:42 UTC 2012


On 4 February 2012 17:12, David Crawford <davidcrawford83 at gmail.com> wrote:

>
>
> On 4 February 2012 17:00, Raymond Wagner <raymond at wagnerrp.com> wrote:
>
>> On 2/4/2012 11:48, David Crawford wrote:
>> > MythTV.exceptions.MythError: External system call failed: code 126
>>
>> Your external code failed with an exit code of 126.  Whatever that
>> means, you would have to look through your external code to find out.
>> _______________________________________________
>> mythtv-users mailing list
>> mythtv-users at mythtv.org
>> http://www.mythtv.org/mailman/listinfo/mythtv-users
>>
>
> Thanks again Raymond, you couldnt give me any directions as to where the
> external code might be located could you?
>
> BTW, if i change the the line of the script that calls the other
> "uksub2srt" script from "/home/dave/uksub2srt/uksub2srt.py" to
> "python /home/dave/uksub2srt/uksub2srt.py"
> I can an exit code of 1, everything else in the error message is the same
> however.
>

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))
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://www.mythtv.org/pipermail/mythtv-users/attachments/20120205/feb7d746/attachment.html 


More information about the mythtv-users mailing list