<div dir="ltr"><br><div class="gmail_extra"><br><div class="gmail_quote">On 20 April 2017 at 11:33, Anthony Giggins <span dir="ltr"><<a href="mailto:seven@seven.dorksville.net" target="_blank">seven@seven.dorksville.net</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr">Are there any python guru's out there that can help diagnose this error since upgrading from 14.04 to 16.04 (Both running 0.28)?<div><br></div><div><div>$ env TZ=UTC silence.py --chanid=4009 --starttime=2017-04-19T09:20:<wbr>00 --loglevel=debug</div><div>2017-04-20 01:19:19.938913 I [23934] m mythcommflag:</div><div>2017-04-20 01:19:19.939426 I [23934] m mythcommflag: Processing: Channel 9 Brisbane, 2017-04-19 09:20:00+00:00, "Spy in the Wild - Mischief"</div><div>Traceback (most recent call last):</div><div> File "/usr/local/bin/silence.py", line 224, in <module></div><div> main()</div><div> File "/usr/local/bin/silence.py", line 171, in main</div><div> rec.update()</div><div> File "/usr/lib/python2.7/dist-<wbr>packages/MythTV/database.py", line 429, in update</div><div> self._push()</div><div> File "/usr/lib/python2.7/dist-<wbr>packages/MythTV/dataheap.py", line 351, in _push</div><div> DBDataWrite._push(self)</div><div> File "/usr/lib/python2.7/dist-<wbr>packages/MythTV/database.py", line 408, in _push</div><div> % (self._table, format_string, self._where), sql_values)</div><div> File "/usr/lib/python2.7/dist-<wbr>packages/MythTV/_conn_mysqldb.<wbr>py", line 71, in execute</div><div> raise MythDBError(MythDBError.DB_<wbr>RAW, e.args)</div><div>MythTV.exceptions.MythDBError: MySQL error 1292: Incorrect datetime value: '0' for column 'bookmarkupdate' at row 1</div></div><div><br></div><div>I'm guessing I'm either missing some module or package, although I was originally getting errors about unable to get DB config from the config.xml those issues stopped appearing</div><div><br></div><div>I tried the gaps.py which was recently posted here and that appears to be working without any issue.</div><div><br></div><div>Cheers,</div><div><br></div><div>Anthony</div></div>
</blockquote></div><br></div><div class="gmail_extra">Ignore me, grabbed the latest version from <a href="https://www.mythtv.org/wiki/Commercial_detection_with_silences">https://www.mythtv.org/wiki/Commercial_detection_with_silences</a></div><div class="gmail_extra"><br></div><div class="gmail_extra"><span style="color:rgb(37,37,37);font-family:sans-serif;font-size:14px;font-style:italic;background-color:rgb(249,249,249)">(added v5.1 of silence.py to set the bookmarkupdate value explicitly (and import datetime))</span><br></div><div class="gmail_extra"><br></div><div class="gmail_extra">And all is working again.</div><div class="gmail_extra"><br></div><div class="gmail_extra">Cheers,</div><div class="gmail_extra"><br></div><div class="gmail_extra">Anthony</div></div>