<div dir="ltr"><br><div class="gmail_extra"><br><br><div class="gmail_quote">On Fri, Sep 5, 2014 at 6:45 PM, Thomas Mashos <span dir="ltr"><<a href="mailto:thomas@mashos.com" target="_blank">thomas@mashos.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"><div class=""><div class="h5">On Fri, Sep 5, 2014 at 2:18 PM, Daryl McDonald <<a href="mailto:darylangela@gmail.com">darylangela@gmail.com</a>> wrote:<br>
><br>
><br>
><br>
> On Fri, Sep 5, 2014 at 1:04 PM, Thomas Mashos <<a href="mailto:thomas@mashos.com">thomas@mashos.com</a>> wrote:<br>
>><br>
>> On Fri, Sep 5, 2014 at 8:29 AM, Daryl McDonald <<a href="mailto:darylangela@gmail.com">darylangela@gmail.com</a>><br>
>> wrote:<br>
>> ><br>
>> ><br>
>> ><br>
>> > On Fri, Sep 5, 2014 at 11:07 AM, Thomas Mashos <<a href="mailto:thomas@mashos.com">thomas@mashos.com</a>><br>
>> > wrote:<br>
>> >><br>
>> >> On Fri, Sep 5, 2014 at 5:57 AM, Daryl McDonald <<a href="mailto:darylangela@gmail.com">darylangela@gmail.com</a>><br>
>> >> wrote:<br>
>> >> ><br>
>> >> <snip><br>
>> >> >> ><br>
>> >> >> >><br>
>> >> >> >> I'm having some trouble creating a backup schedule with MCC:<br>
>> >> >> ><br>
>> >> >> > org.freedesktop.DBus.Python.TypeError<br>
>> >> >> ><br>
>> >> >> > Traceback (most recent call last):<br>
>> >> >> > File "/usr/lib/python3/dist-packages/dbus/service.py", line 707,<br>
>> >> >> > in<br>
>> >> >> > _message_cb<br>
>> >> >> > retval = candidate_method(self, *args, **keywords)<br>
>> >> >> > File<br>
>> >> >> ><br>
>> >> >> > "/usr/lib/python3/dist-packages/MythbuntuControlCentre/backend.py",<br>
>> >> >> > line 280, in scriptedchanges<br>
>> >> >> ><br>
>> >> >> ><br>
>> >> >> ><br>
>> >> >> ><br>
>> >> >> > plugin_instances[instance].root_scripted_changes(plugin_dictionary[plugin])<br>
>> >> >> > File "/usr/share/mythbuntu/plugins/python/mythbuntu-bare.py",<br>
>> >> >> > line<br>
>> >> >> > 488, in<br>
>> >> >> > root_scripted_changes<br>
>> >> >> > config.set('Backup', 'db', reconfigure[subitem])<br>
>> >> >> > File "/usr/lib/python3.4/configparser.py", line 1166, in set<br>
>> >> >> > self._validate_value_types(option=option, value=value)<br>
>> >> >> > File "/usr/lib/python3.4/configparser.py", line 1155, in<br>
>> >> >> > _validate_value_types<br>
>> >> >> > raise TypeError("option values must be strings")<br>
>> >> >> > TypeError: option values must be strings<br>
>> >> >> ><br>
>> >> >> > the above message appears after clicking "apply"<br>
>> >> >> ><br>
>> >> >> ><br>
>> >> >> ><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>
>> >> >> > <a href="http://wiki.mythtv.org/Mailing_List_etiquette" target="_blank">http://wiki.mythtv.org/Mailing_List_etiquette</a><br>
>> >> >> > MythTV Forums: <a href="https://forum.mythtv.org" target="_blank">https://forum.mythtv.org</a><br>
>> >> >> ><br>
>> >> >><br>
>> >> >> What is the output of 'dpkg -l mythbuntu-common'<br>
>> >> >><br>
>> >> >> Thanks,<br>
>> >> >><br>
>> >> >> Thomas Mashos<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>
>> >> >> <a href="http://wiki.mythtv.org/Mailing_List_etiquette" target="_blank">http://wiki.mythtv.org/Mailing_List_etiquette</a><br>
>> >> >> MythTV Forums: <a href="https://forum.mythtv.org" target="_blank">https://forum.mythtv.org</a><br>
>> >> ><br>
>> >> ><br>
>> >> > daryl@daryl-A780L3C:~$ dpkg -l mythbuntu-common<br>
>> >> > Desired=Unknown/Install/Remove/Purge/Hold<br>
>> >> > |<br>
>> >> ><br>
>> >> ><br>
>> >> > Status=Not/Inst/Conf-files/Unpacked/halF-conf/Half-inst/trig-aWait/Trig-pend<br>
>> >> > |/ Err?=(none)/Reinst-required (Status,Err: uppercase=bad)<br>
>> >> > ||/ Name Version Architecture Description<br>
>> >> ><br>
>> >> ><br>
>> >> > +++-==============-============-============-=================================<br>
>> >> > ii mythbuntu-comm 0.74 all Mythbuntu application<br>
>> >> > support<br>
>> >> > fun<br>
>> >> > daryl@daryl-A780L3C:~$<br>
>> >> ><br>
>> >> ><br>
>> >> > _______________________________________________<br>
>> >><br>
>> >> Hmm, thought I had tested all the parts of bare. This one is going to<br>
>> >> take a bit more work to get the trace for. Please do the following<br>
>> >><br>
>> >> 1. Close MCC<br>
>> >> 2. Kill mcc-backend ('sudo killall mcc-backend' should be fine).<br>
>> >> 3. Start mcc-backend in a terminal with 'sudo /usr/bin/mcc-backend'<br>
>> >> 4. In a new terminal window, start mythbuntu-control-center<br>
>> >> 5. Reproduce the error<br>
>> >> 6. Post the output from both terminal windows here.<br>
>> >><br>
>> >> Thanks,<br>
>> >><br>
>> >> Thomas Mashos<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>
>> >> <a href="http://wiki.mythtv.org/Mailing_List_etiquette" target="_blank">http://wiki.mythtv.org/Mailing_List_etiquette</a><br>
>> >> MythTV Forums: <a href="https://forum.mythtv.org" target="_blank">https://forum.mythtv.org</a><br>
>> ><br>
>> ><br>
>> > daryl@daryl-A780L3C:~$ sudo killall mcc-backend<br>
>> > [sudo] password for daryl:<br>
>> > mcc-backend: no process found<br>
>> > daryl@daryl-A780L3C:~$ sudo killall mythbuntu-control-center-backend<br>
>> > mythbuntu-control-center-backend: no process found<br>
>> ><br>
>> > daryl@daryl-A780L3C:~$<br>
>> ><br>
>> > daryl@daryl-A780L3C:~$ mythbuntu-control-centre<br>
>> > Reading package lists... Done<br>
>> > Building dependency tree<br>
>> > Reading state information... Done<br>
>> > daryl@daryl-A780L3C:~$<br>
>> ><br>
>> > the GUI opened as expected. I even tried correct spelling:<br>
>> ><br>
>> > daryl@daryl-A780L3C:~$ sudo killall mythbuntu-control-centre-backend<br>
>> > mythbuntu-control-centre-backend: no process found<br>
>> > daryl@daryl-A780L3C:~$<br>
>> ><br>
>> > could this have to do with MCC being set according to a database<br>
>> > restore?<br>
>> ><br>
>> ><br>
>> ><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>
>> > <a href="http://wiki.mythtv.org/Mailing_List_etiquette" target="_blank">http://wiki.mythtv.org/Mailing_List_etiquette</a><br>
>> > MythTV Forums: <a href="https://forum.mythtv.org" target="_blank">https://forum.mythtv.org</a><br>
>> ><br>
>><br>
>> Sorry I had the wrong location for the backend binary, but the right<br>
>> name. If you do the following (mcc-backend may not be running) you<br>
>> will get the trace that we need.<br>
>><br>
>> 1. Close MCC<br>
>> 2. run 'sudo killall mcc-backend'<br>
>> 3. Start mcc-backend in a terminal with 'sudo<br>
>> /usr/share/mythbuntu/mcc-backend'<br>
>> 4. In a new terminal window, start mythbuntu-control-center<br>
>> 5. Reproduce the error<br>
>> 6. Post the output from both terminal windows here.<br>
>><br>
>> Thanks,<br>
>><br>
>> Thomas Mashos<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>
>> <a href="http://wiki.mythtv.org/Mailing_List_etiquette" target="_blank">http://wiki.mythtv.org/Mailing_List_etiquette</a><br>
>> MythTV Forums: <a href="https://forum.mythtv.org" target="_blank">https://forum.mythtv.org</a><br>
><br>
><br>
> daryl@daryl-A780L3C:~$ sudo killall mcc-backend<br>
> [sudo] password for daryl:<br>
> mcc-backend: no process found<br>
> daryl@daryl-A780L3C:~$ sudo /usr/share/mythbuntu/mcc-backend<br>
> daryl@daryl-A780L3C:~$<br>
><br>
> it worked for at least a couple minutes before returning the "~$"<br>
><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>
> <a href="http://wiki.mythtv.org/Mailing_List_etiquette" target="_blank">http://wiki.mythtv.org/Mailing_List_etiquette</a><br>
> MythTV Forums: <a href="https://forum.mythtv.org" target="_blank">https://forum.mythtv.org</a><br>
><br>
<br>
</div></div>That is exactly what it should do, look like it's running, which is<br>
when you open up mythbuntu-control-centre in another tab and reproduce<br>
the error. Only then will you see a trace in the mcc-backend terminal<br>
<div class=""><div class="h5"><br>
<br>
Thanks,<br>
<br>
Thomas Mashos<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>
<a href="http://wiki.mythtv.org/Mailing_List_etiquette" target="_blank">http://wiki.mythtv.org/Mailing_List_etiquette</a><br>
MythTV Forums: <a href="https://forum.mythtv.org" target="_blank">https://forum.mythtv.org</a></div></div></blockquote><div><br></div><div>Sorry Thomas, I feel like I have newbosity all over me. I did what you asked this time and while the trace was running I tried to set a backup schedual, which produced this GUI warning:</div><div><br></div><div>org.freedesktop.DBus.Python.TypeError<br></div><div><br></div><div><div>Traceback (most recent call last):</div><div> File "/usr/lib/python3/dist-packages/dbus/service.py", line 707, in _message_cb</div><div> retval = candidate_method(self, *args, **keywords)</div><div> File "/usr/lib/python3/dist-packages/MythbuntuControlCentre/backend.py", line 280, in scriptedchanges</div><div> plugin_instances[instance].root_scripted_changes(plugin_dictionary[plugin])</div><div> File "/usr/share/mythbuntu/plugins/python/mythbuntu-bare.py", line 488, in root_scripted_changes</div><div> config.set('Backup', 'db', reconfigure[subitem])</div><div> File "/usr/lib/python3.4/configparser.py", line 1166, in set</div><div> self._validate_value_types(option=option, value=value)</div><div> File "/usr/lib/python3.4/configparser.py", line 1155, in _validate_value_types</div><div> raise TypeError("option values must be strings")</div><div>TypeError: option values must be strings</div></div><div><br></div><div>Here is the is the other terminal output after running the trace:</div><div><br></div><div><div>daryl@daryl-A780L3C:~$ mythbuntu-control-centre</div><div>Reading package lists... Done</div><div>Building dependency tree </div><div>Reading state information... Done</div><div>Reading package lists... Done</div><div>Building dependency tree </div><div>Reading state information... Done</div><div>daryl@daryl-A780L3C:~$</div></div><div><br></div><div>and here is he output of the first terminal:</div><div><br></div><div><div>daryl@daryl-A780L3C:~$ sudo killall mcc-backend[sudo] password for daryl: </div><div>mcc-backend: no process found</div><div>daryl@daryl-A780L3C:~$ sudo /usr/share/mythbuntu/mcc-backend</div><div>daryl@daryl-A780L3C:~$ </div></div><div><br></div><div>Is the following what we are looking for: (maybe more newbosity)</div><div><br></div><div><div>daryl@daryl-A780L3C:~$ cat /usr/share/mythbuntu/mcc-backend</div><div>#!/usr/bin/python3</div><div>## -*- coding: utf-8 -*-</div><div><br></div><div># «mcc-backend» - Mythbuntu Control Centre dbus backend spawner</div><div><br></div><div># Originally based upon the Jockey dbus backend</div><div>#</div><div># (c) 2008 Canonical Ltd.</div><div># (c) 2009 Mario Limonciello <<a href="mailto:superm1@mythbuntu.org">superm1@mythbuntu.org</a>></div><div>#</div><div># Mythbuntu is free software; you can redistribute it and/or modify it under</div><div># the terms of the GNU General Public License as published by the Free</div><div># Software Foundation; either version 2 of the License, or at your option)</div><div># any later version.</div><div>#</div><div># This program is distributed in the hope that it will be useful,</div><div># but WITHOUT ANY WARRANTY; without even the implied warranty of</div><div># MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the</div><div># GNU General Public License for more details.</div><div>#</div><div># You should have received a copy of the GNU General Public License along</div><div># with this application; if not, write to the Free Software Foundation, Inc., 51</div><div># Franklin St, Fifth Floor, Boston, MA 02110-1301 USA</div><div>##################################################################################</div><div><br></div><div>'''Mythbuntu Control Centre D-BUS backend executable.'''</div><div><br></div><div>import sys, optparse, logging, gettext</div><div><br></div><div>import MythbuntuControlCentre.backend</div><div><br></div><div>def parse_argv():</div><div> '''Parse command line arguments, and return (options, args) pair.'''</div><div><br></div><div> parser = optparse.OptionParser()</div><div> parser.add_option ('--debug', action='store_true',</div><div> dest='debug', default=False,</div><div> help=_('Enable debugging messages.'))</div><div> parser.add_option ('-l', '--logfile', type='string', metavar='FILE',</div><div> dest='logfile', default=None,</div><div> help=_('Write logging messages to a file instead to stderr.'))</div><div> parser.add_option ( '--timeout', type='int',</div><div> dest='timeout', metavar='SECS', default=600,</div><div> help=_('Timeout for D-BUS service (default: 600, 0: run forever)'))</div><div><br></div><div> (opts, args) = parser.parse_args()</div><div> return (opts, args)</div><div><br></div><div>def setup_logging(debug=False, logfile=None):</div><div> '''Setup logging.'''</div><div><br></div><div> logging.raiseExceptions = False</div><div> if debug:</div><div> logging.basicConfig(level=logging.DEBUG, filename=logfile,</div><div> format='%(asctime)s %(levelname)s: %(message)s')</div><div> else:</div><div> logging.basicConfig(level=logging.WARNING, filename=logfile,</div><div> format='%(levelname)s: %(message)s')</div><div><br></div><div>gettext.install('mythbuntu-control-centre')</div><div>argv_options, argv_args = parse_argv()</div><div>setup_logging(argv_options.debug, argv_options.logfile)</div><div><br></div><div>svr = MythbuntuControlCentre.backend.Backend.create_dbus_server()</div><div>if argv_options.timeout == 0:</div><div> svr.run_dbus_service()</div><div>else:</div><div> svr.run_dbus_service(argv_options.timeout)</div><div>daryl@daryl-A780L3C:~$ </div></div><div><br></div><div><br></div><div><br></div><div><br></div><div><br></div></div><br></div></div>