[mythtv-users] MCC woes

Daryl McDonald darylangela at gmail.com
Fri Sep 5 23:45:32 UTC 2014


On Fri, Sep 5, 2014 at 7:38 PM, Daryl McDonald <darylangela at gmail.com>
wrote:

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

I've also stumbled across this:

 daryl at daryl-A780L3C:~$ cat /var/log/mcc.log
daryl at daryl-A780L3C:~$

opening that file with the files launcher, shows a blank file.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.mythtv.org/pipermail/mythtv-users/attachments/20140905/7dccb2a7/attachment.html>


More information about the mythtv-users mailing list