<div dir="ltr">On Sat, May 11, 2013 at 7:31 PM, Nick Rout <span dir="ltr"><<a href="mailto:nick.rout@gmail.com" target="_blank">nick.rout@gmail.com</a>></span> wrote:<br><div class="gmail_extra"><div class="gmail_quote">
<blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex"><br><br><div class="gmail_quote"><div class="im">On Sat, May 11, 2013 at 11:20 PM, Doug Vaughan <span dir="ltr"><<a href="mailto:r.d.vaughan@rogers.com" target="_blank">r.d.vaughan@rogers.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex">
Nick,<br>
Just after click the send button I had another thought.When you first run the lossless_cut script with the "--test" option, in additionto performing a test it writes out the initial configuration file "~/.mythtv/lossless_cut.cfg". I see how you arespecifying the "-umythtv" user. Is there a chance that this is a permissions error issuewhen the script tries to write the configuration file?<br>
<br>
Just a thought.<div><div><br></div></div></blockquote></div><div><br>Thanks for your responses Doug. I looked in ~mythtv/.mythtv/ and sure enough no config file was there. So I did sudo su - mythtv and sure enough the test line worked, and the config file created.<br>
<br>Quite why this is so is a mystery to me, no doubt some shell difficulty.<br><br>Also I am unsure how to update to python-lxml without going outside my ubuntu packaging. Nevertheless the --test command line tells me I have everything I need. I will continue to experiment. Thanks again.<br>
<br><br><br><br><br> </div><div class="im"><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex"><div><div>
<br>
Doug<br>
______________________________<u></u>_________________<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/<u></u>listinfo/mythtv-users</a><br>
</div></div></blockquote></div></div><br>
<br>_______________________________________________<br>
mythtv-users mailing list<br>
<a href="mailto:mythtv-users@mythtv.org">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>
<br></blockquote></div><br></div><div class="gmail_extra"><br></div><div class="gmail_extra" style>I had the same error on Mythbuntu 12.04 and for me it was caused by the target user (mythtv) attempting to write to the logged-in user's home directory (not mythtv) to create the initial config file. I changed the test command to the following and it worked as expected:</div>
<div class="gmail_extra" style><br></div><div class="gmail_extra" style>sudo -u mythtv -H lossless_cut -f "/path to a/recorded.mpg" --test<br></div><div class="gmail_extra" style><br></div><div class="gmail_extra" style>
The '-H' sets the HOME variable to that of the target user. This probably doesn't affect everyone because you can configure this to be the default behavior of sudo if you wish.</div><div class="gmail_extra" style>
<br></div><div class="gmail_extra" style>Also, I have version 2.3.2-1 for the package <span style="font-family:arial,sans-serif;font-size:13px">python-lxml installed and things seem to be OK. One of my recordings triggers a runaway memory leak in mkvmerge, but otherwise everything has been working well.</span></div>
<div class="gmail_extra" style><span style="font-family:arial,sans-serif;font-size:13px"><br></span></div><div class="gmail_extra" style><span style="font-family:arial,sans-serif;font-size:13px">- Greg</span></div></div>