Mythbuntu Control Centre Errors when Opening

Bug #1581971 reported by Griggs
34
This bug affects 7 people
Affects Status Importance Assigned to Milestone
Mythbuntu
Fix Committed
Medium
Thomas Mashos
16.04
New
Undecided
Unassigned
16.10
New
Undecided
Unassigned

Bug Description

[Impact]
When starting mythbuntu-control-centre an error is thrown "Exception in applyStateToGUI of plugin Plugins. Disabling Plugin.". This is due to a missed field rename when getting this to run on 16.04. This is resolved by renaming the missed fields.

[Test Case]
Open an unpatched mythbuntu-control-centre via command line and note the error "AttributeError: 'MythPluginsPlugin' object has no attribute 'mythweb_password_combobox'"

IMPORTANT: There is a second error you may see on the command line "configparser.NoSectionError: No section: 'General'" that is due to bug LP:1612001 which is caused in another package and will throw the same GUI error until patched.

[Regression Potential]
Low. The field names were changed inside the plugins.py file, so even if there was a regression it would be limited to a single tab inside mythbuntu-control-centre

Revision history for this message
Tony Ransom (tony1) wrote :

I've got this problem as well.

Did a reinstall of Mythbuntu standalone front end after a disk crash using the new 16.04 ISO and the Mythbuntu Control Centre is unusable because of this plugin error.

A guess, could it be relying on something that's normally installed with the backend, but gets left out when only a frontend is installed?

Revision history for this message
Thomas Mashos (tgm4883) wrote :

This is caused by two things.

1) One of the default plugins in MCC has an incorrect field name from fixes we did to get it working on 16.04. (mythweb_password_combobox in this instance)

2) mythbuntu-bare throws similiar errors.

As a solution, mythbuntu-bare should be removed, since it's never worked great to begin with and isn't being maintained anymore (alternatively, we can try to fix it).

Thomas Mashos (tgm4883)
Changed in mythbuntu:
assignee: nobody → Thomas Mashos (tgm4883)
Thomas Mashos (tgm4883)
Changed in mythbuntu:
importance: Undecided → Medium
status: New → Fix Committed
Revision history for this message
Thomas Mashos (tgm4883) wrote :

I've split the mythbuntu-bare issue out to https://bugs.launchpad.net/mythbuntu/+bug/1612001 since it's a separate package

Thomas Mashos (tgm4883)
description: updated
Thomas Mashos (tgm4883)
description: updated
Revision history for this message
draco (draco31-fr) wrote :

As said by Tony, MCC is totally unusable at the moment.
Is it a workaround or a PPA with fixed version available for Xenial users ?

Revision history for this message
Jim Poltrone (jim-poltrone) wrote :

This is the error message I got when I tried to add plugins in MCC:

Traceback (most recent call last):
  File "/usr/share/mythbuntu/plugins/python/plugins.py", line 145, in toggle_plugins
    if self.mythweb_password_combobox.get_active() != 2 or \
AttributeError: 'MythPluginsPlugin' object has no attribute 'mythweb_password_combobox'

And here is how I fixed it (diff file follows):

$ cd /usr/share/mythbuntu/plugins/python
$ diff plugins.py.original plugins.py
139c139,140
< self.mythweb_password_combobox.set_active(0)
---
> ### JJP: another error waiting to happen?
> self.mythweb_password_combobox1.set_active(0)
145c146,149
< if self.mythweb_password_combobox.get_active() != 2 or \
---
> ### `JJP: This is where it blows chunks because
> ### there is no such attribute 'combobox' --
> ### it should be combobox1
> if self.mythweb_password_combobox1.get_active() != 2 or \

Revision history for this message
James Cuzella (trinitronx) wrote :

Verified that Jim Poltrone's patch fixes the combobox attribute bug!

Adding a unified diff for easy application with "patch" utility:

    cd /usr/share/mythbuntu/plugins/python
    patch < ~/Downloads/mythbuntu-control-centre-bug-1581971.patch

Restarted mythbuntu-control-centre and error is gone

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.