Unable to change Mythweb settings in Mythbuntu control centre

Bug #1356704 reported by linkku
30
This bug affects 6 people
Affects Status Importance Assigned to Milestone
Mythbuntu
Fix Released
Medium
Thomas Mashos

Bug Description

I am trying to change mythweb settings in MCC to work after update from Mythbuntu 12.04 -> 14.04.1

On MCC startup get an error:
Exception in applyStateToGUI of plugin Plugins
Disabling Plugin.

When I try to enable password for mythweb and press Apply and get:
No Changes found

and the text from the terminal:
Reading package lists... Done
Building dependency tree
Reading state information... Done
Traceback (most recent call last):
  File "/usr/bin/mythbuntu-control-centre", line 383, in refreshState
    plugin.applyStateToGUI()
  File "/usr/share/mythbuntu/plugins/python/plugins.py", line 92, in applyStateToGUI
    self.mythweb_password_combobox.append_text("Reconfigure")
AttributeError: 'ComboBox' object has no attribute 'append_text'

I also am unable to enable/disable any of the plugins.

Tags: downstream
Revision history for this message
perveilerj (perveilerj-x) wrote :
Download full text (4.6 KiB)

I am also seeing this error after upgrading from 12.04 to 14.04.1

Here is the dump of using --debug below:

:~$ /usr/bin/mythbuntu-control-centre --debug
2014-08-26 16:16:25,323 DEBUG: Using plugin root path of : /usr/share/mythbuntu/plugins
2014-08-26 16:16:25,323 DEBUG: Importing plugin: mythbuntu_repos
2014-08-26 16:16:25,362 DEBUG: Importing plugin: startup_behavior
2014-08-26 16:16:25,364 DEBUG: Importing plugin: services
2014-08-26 16:16:25,368 DEBUG: Importing plugin: remote
2014-08-26 16:16:25,369 DEBUG: Importing plugin: proprietary_codecs
2014-08-26 16:16:25,371 DEBUG: Importing plugin: plugins
2014-08-26 16:16:25,373 DEBUG: Importing plugin: log_grabber
2014-08-26 16:16:25,377 DEBUG: Importing plugin: mythbuntu-bare
2014-08-26 16:16:25,395 DEBUG: Importing plugin: mythexport
2014-08-26 16:16:25,397 DEBUG: Importing plugin: system_roles
2014-08-26 16:16:25,398 DEBUG: Importing plugin: mysql_configuration
2014-08-26 16:16:25,404 DEBUG: Found the following plugin classes:
2014-08-26 16:16:25,405 DEBUG: [<class 'services.MCCServices'>, <class 'startup_behavior.LoginPlugin'>, <class 'remote.RemotePlugin'>, <class 'proprietary_codecs.ProprietaryCodecsPlugin'>, <class 'mythbuntu_repos.MythbuntuReposPlugin'>, <class 'mythexport.MythExportPlugin'>, <class 'system_roles.SystemRolesPlugin'>, <class 'mythbuntu-bare.MythbuntuBaRePlugin'>, <class 'mysql_configuration.MySQLConfigurationPlugin'>, <class 'log_grabber.LogGrabberPlugin'>, <class 'plugins.MythPluginsPlugin'>]
2014-08-26 16:16:25,406 DEBUG: Found the following plugin instances:
2014-08-26 16:16:25,406 DEBUG: [<services.MCCServices object at 0x7f2a04155668>, <startup_behavior.LoginPlugin object at 0x7f29f85699b0>, <remote.RemotePlugin object at 0x7f29f8569c88>, <proprietary_codecs.ProprietaryCodecsPlugin object at 0x7f29f8569cc0>, <mythbuntu_repos.MythbuntuReposPlugin object at 0x7f29f8569748>, <mythexport.MythExportPlugin object at 0x7f29f85682e8>, <system_roles.SystemRolesPlugin object at 0x7f29f84b92e8>, <mythbuntu-bare.MythbuntuBaRePlugin object at 0x7f29f84b9470>, <mysql_configuration.MySQLConfigurationPlugin object at 0x7f29f84b9358>, <log_grabber.LogGrabberPlugin object at 0x7f29f84b9400>, <plugins.MythPluginsPlugin object at 0x7f29f84b93c8>]
2014-08-26 16:16:25,407 DEBUG: Reading .ui file: /usr/share/mythbuntu/plugins/ui/tab_mythbuntu-bare.ui
2014-08-26 16:16:25,506 DEBUG: Appending Widget: tab_mythbuntu-bare
2014-08-26 16:16:25,510 DEBUG: Reading .ui file: /usr/share/mythbuntu/plugins/ui/tab_remote_control.ui
2014-08-26 16:16:25,559 DEBUG: Appending Widget: tab_remote_control
2014-08-26 16:16:25,561 DEBUG: Reading .ui file: /usr/share/mythbuntu/plugins/ui/tab_log_grabber.ui
2014-08-26 16:16:25,566 DEBUG: Appending Widget: tab_log_grabber
2014-08-26 16:16:25,567 DEBUG: Reading .ui file: /usr/share/mythbuntu/plugins/ui/tab_mysql_configuration.ui
2014-08-26 16:16:25,572 DEBUG: Appending Widget: tab_mysql_configuration
2014-08-26 16:16:25,573 DEBUG: Reading .ui file: /usr/share/mythbuntu/plugins/ui/tab_mythexport.ui
2014-08-26 16:16:25,588 DEBUG: Appending Widget: tab_mythexport
2014-08-26 16:16:25,589 DEBUG: Reading .ui file: /usr/share/mythbuntu/plugins/ui/tab_plugins...

Read more...

Revision history for this message
Ritcheezer (ritcheezer) wrote :

I found a workaround.. Edit the file in question below (plugins.py), and comment out line 92.

File "/usr/share/mythbuntu/plugins/python/plugins.py", line 92, in applyStateToGUI
    self.mythweb_password_combobox.append_text("Reconfigure")
AttributeError: 'ComboBox' object has no attribute 'append_text'

After you successfully launch MCC and make some changes, you can remove the comment and it should be happy.

Revision history for this message
Ritcheezer (ritcheezer) wrote :

Actually.. I suggest leaving it commented out. I'm not sure this code path works at all. It looks like the Gtk.ComboBox definition may have changed between Gtk2 and Gtk3 and no longer has the append_text method. I don't know enough Python or Gtk to submit a patch.

model = self.mythweb_password_combobox.get_model()
 if len(model) > 2:
            iter = model.get_iter(Gtk.TreePath([2,0]))
            model.remove(iter)
        if self.mythweb_auth['enable']:
              self.mythweb_password_combobox.set_active_iter(model.get_iter(Gtk.TreePath([0,1])))
              #self.mythweb_password_combobox.append_text("Reconfigure")

Ritcheezer (ritcheezer)
Changed in mythbuntu:
status: New → Confirmed
Thomas Mashos (tgm4883)
tags: added: downstream
Revision history for this message
Thomas Mashos (tgm4883) wrote :

This is confirmed broken

Changed in mythbuntu:
assignee: nobody → Thomas Mashos (tgm4883)
Revision history for this message
Thomas Mashos (tgm4883) wrote :

I've committed a fix for this. But MCC needs some beautification work

Changed in mythbuntu:
importance: Undecided → Medium
status: Confirmed → Fix Committed
chicobiker (chicobiker)
Changed in mythbuntu:
status: Fix Committed → Fix Released
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.