<html><head><meta http-equiv="Content-Type" content="text/html charset=us-ascii"><base href="x-msg://702/"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "><br><div><div>On 12 Mar 2013, at 15:03, Roger Siddons <<a href="mailto:dizygotheca@ntlworld.com">dizygotheca@ntlworld.com</a>> wrote:</div><br class="Apple-interchange-newline"><blockquote type="cite"><div style="font-family: 'DejaVu Sans'; font-size: 13px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-align: -webkit-auto; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; ">On Tue, 12 Mar 2013 12:19:43 -0000, Russell Gower <<a href="mailto:mythtv@thegowers.me.uk">mythtv@thegowers.me.uk</a>> wrote:<br><br><blockquote style="margin: 0px 0px 0.8ex; border-left-color: rgb(0, 0, 255); border-left-width: 2px; border-left-style: solid; padding-left: 1ex; "><br><div>Hi,</div><div> I've compiled and installed the programs fine, but the silence program just exists with the message "System error." with an exit code of 2. I've tried to diagnose the issue but have hit a brick wall.</div><div><br></div><div>I'm running v0.25.3-38-g1e200d3 built from Git on Centos 6.3.</div><div><br></div><div>I'd appreciate any pointers on how to diagnose this further.</div><div><br></div></blockquote><div>Not much to go on then!</div><div><br></div><div>I presume you're running "silence.py" from the command line and aren't getting any informative output at all.</div><div><br></div><div>What version of python are you using ("python -v") ? It seems the new argparse requires 2.7</div><div><br></div><div>Can you run other python scripts ?<span class="Apple-converted-space"> </span><a href="http://www.mythtv.org/wiki/Find_orphans.py">Here's</a><span class="Apple-converted-space"> </span>a harmless one written by an expert.</div><div><br></div><div>I don't have much experience with Python - all I can suggest is it's something to do with your Python version or the Myth bindings<span class="Apple-converted-space"> </span><a href="http://www.mythtv.org/wiki/0.25_Python_Bindings">http://www.mythtv.org/wiki/0.25_Python_Bindings</a></div><div><br></div><div>I also know nothing about CentOS but google seems to say that "system error 2" is related to "No such file or directory".</div><div><br></div></div></blockquote>Hi, </div><div> Thanks for the reply, I'm currently running python 2.6 but thats not the issue here (not to say it won't be an issue when I resolve this one :-))</div><div> </div><div>it's the compiled silence.cpp file thats throwing up that error, I'm calling it directly form the command line and would expect it to show the usage information.</div><div><br></div><div>I've run it under strace and can see it's opening a socket with this call</div><div><span class="Apple-tab-span" style="white-space:pre">        </span>connect(3, {sa_family=AF_FILE, path="/var/run/dbus/system_bus_socket"}, 33) = 0</div> but subsequent reads from the socket are failing like this<br><div><span class="Apple-tab-span" style="white-space:pre">        </span>read(3, 0xe7f6f0, 2048) = -1 EAGAIN (Resource temporarily unavailable)</div><div><br></div><div>The fifo file looks fine to me</div><div><div><span class="Apple-tab-span" style="white-space:pre">        </span>$ ll /var/run/dbus/system_bus_socket </div><div><span class="Apple-tab-span" style="white-space:pre">        </span>srwxrwxrwx. 1 root root 0 Mar 12 11:53 /var/run/dbus/system_bus_socket</div></div><div><br></div><div>I've also tried setting selinux to permissive but that made no difference.</div><div><br></div><div>Thanks</div><div> Russell</div><div><br></div><div><br></div><div><br></div></body></html>