<br><br><div class="gmail_quote">On 4 February 2012 17:12, David Crawford <span dir="ltr"><<a href="mailto:davidcrawford83@gmail.com">davidcrawford83@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div class="HOEnZb"><div class="h5"><br><br><div class="gmail_quote">On 4 February 2012 17:00, Raymond Wagner <span dir="ltr"><<a href="mailto:raymond@wagnerrp.com" target="_blank">raymond@wagnerrp.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div>On 2/4/2012 11:48, David Crawford wrote:<br>
> MythTV.exceptions.MythError: External system call failed: code 126<br>
<br>
</div>Your external code failed with an exit code of 126. Whatever that<br>
means, you would have to look through your external code to find out.<br>
<div><div>_______________________________________________<br>
mythtv-users mailing list<br>
<a href="mailto:mythtv-users@mythtv.org" target="_blank">mythtv-users@mythtv.org</a><br>
<a href="http://www.mythtv.org/mailman/listinfo/mythtv-users" target="_blank">http://www.mythtv.org/mailman/listinfo/mythtv-users</a><br>
</div></div></blockquote></div><br></div></div><div>Thanks again Raymond, you couldnt give me any directions as to where the external code might be located could you?</div><div><br></div><div>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"</div>
<div>I can an exit code of 1, everything else in the error message is the same however.</div>
</blockquote></div><br><div>Hi, </div><div><br></div><div>Can anyone please give me any hints as to where to find a solution for the following error?:</div><div><br></div><div><div class="im" style><div>Traceback (most recent call last):</div>
</div><div style> File "/home/dave/uksub2srt/rename.py", line 22, in <module></div><div class="im" style><div> '-o', '/home/dave/Downloads/subtitles/{0}.srt'.format(newbase))</div></div>
<div style> File "/usr/lib/pymodules/python2.7/MythTV/system.py", line 57, in __call__</div><div style> def __call__(self, *args): return self.command(*args)</div><div style> File "/usr/lib/pymodules/python2.7/MythTV/system.py", line 89, in command</div>
<div style> return self._runcmd('%s %s' % (self.path, arg))</div><div style> File "/usr/lib/pymodules/python2.7/MythTV/system.py", line 98, in _runcmd</div><div style> raise MythError(MythError.SYSTEM,self.returncode,cmd,self.stderr)</div>
<div style>MythTV.exceptions.MythError: External system call failed: code 126</div></div><div style><br></div><div style>I've looked through "system.py" but couldnt find any answers..</div><div style><br></div>
<div style>Is it this part of the script thats failing?</div><div style><br></div><div style><div><font color="#222222" face="arial, sans-serif"><span style="font-size:16px">from MythTV import System</span></font></div><div>
<font color="#222222" face="arial, sans-serif"><span style="font-size:16px">ccextractor = System(path="/home/dave/uksub2srt/uksub2srt.py")</span></font></div><div><font color="#222222" face="arial, sans-serif"><span style="font-size:16px">ccextractor('-i', os.path.join(sg.dirname, prog.basename),</span></font></div>
<div><font color="#222222" face="arial, sans-serif"><span style="font-size:16px"> '-o', '/home/subtitles/{0}.srt'.format(newbase))</span></font></div></div>