<html><head><meta http-equiv="Content-Type" content="text/html; charset=utf-8"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; line-break: after-white-space;" class=""><br class=""><div><br class=""><blockquote type="cite" class=""><div class="">On Aug 25, 2020, at 6:18 AM, Roland Ernst <<a href="mailto:rcrernst@gmail.com" class="">rcrernst@gmail.com</a>> wrote:</div><br class="Apple-interchange-newline"><div class=""><div dir="ltr" class=""><div dir="ltr" class=""></div><br class=""><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Tue, Aug 25, 2020 at 11:48 AM Stephen Worthington <<a href="mailto:stephen_agent@jsw.gen.nz" class="">stephen_agent@jsw.gen.nz</a>> wrote:<br class=""></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">On Mon, 24 Aug 2020 13:25:27 -0400, you wrote:<br class="">
<br class="">
><br class="">
>Any ideas where I need to check? Or? <br class="">
><br class=""><br class=""></blockquote><div class=""> </div><div class="">This seems to be a leftover from the python3 conversion<br class="">for mythtv v31+.<br class=""><br class="">If the storage groups of the recording and video is local,<br class="">i.e.: on the same PC mythvidexport is running, please try<br class="">the following:<br class=""><br class="">- locate the installed file mythproto.py from the Python<br class=""> Bindings (mine is in the location below)<br class=""><br class="">- in terminal, run the following commands <br class=""> (change the path to mythproto.patch)<br class=""> <br class="">{{{<br class="">$ cd /usr/lib/python3/dist-packages/MythTV/<br class="">$ ls ./mythproto.py<br class="">$ sudo cp ./mythproto.py ./<a href="http://mythproto.org/" class="">mythproto.org</a><br class="">$ sudo patch < /path/to/mythproto.patch<br class="">$ sudo python3 -m compileall ./mythproto.py<br class="">}}}<br class=""><br class="">Note, that this will be overwritten again when updating<br class="">mythtv.<br class=""><br class="">Please report back the result.<br class="">On success, I will update the Python Bindings asap.</div></div></div></div></blockquote><br class=""></div><div><br class=""></div><div>I found earlier that I needed to add a ‘/‘ between the path and the file name to avoid the error below. I tried setting the path with a leading ‘/‘ to avoid the issue, but that didn’t work as the ‘/‘ was stripped off earlier. </div><div><br class=""></div><div> FileNotFoundError: [Errno 2] No such file or directory: '/var/lib/mythtv/recordings44303_20200811220000.mp4’</div><div><br class=""></div><br class=""><div class="">I tweaked the open statement to put in +’/‘ immediately after the sg.dirname to add the ‘/‘ separator and it works great!</div><div class=""><br class=""></div><div class="">If you can add the directory separator into the code somewhere, all will be good!</div><div class=""><br class=""></div><div class="">Thanks!</div><div class=""><br class=""></div><div class="">Jay</div><div class=""><br class=""></div></body></html>