Control centre fails to start because of an obsolete import of a deprecated and removed widget

Bug #1158117 reported by Sebastian Heinlein
114
This bug affects 23 people
Affects Status Importance Assigned to Milestone
mythbuntu-control-centre (Ubuntu)
Fix Released
Critical
Mario Limonciello

Bug Description

Rob Fargher (fargher-gmail) wrote 1 hour ago: #8

Bug is not fixed in Raring.

Traceback (most recent call last):
  File "/usr/bin/mythbuntu-control-centre", line 40, in <module>
    from aptdaemon.gtkwidgets import (AptErrorDialog,
ImportError: cannot import name AptMessageDialog

Revision history for this message
Sebastian Heinlein (glatzor) wrote :

The AptMessageDialog was deprecated some time ago, since the concept of messages was removed from aptdaemon.

The widgets gets imported but is never used.

See the attached patch for a fix.

Changed in mythbuntu-control-centre (Ubuntu):
status: New → Triaged
importance: Undecided → Critical
Revision history for this message
Ubuntu Foundations Team Bug Bot (crichton) wrote :

The attachment "fix-obsolete-import-of-deprecated-widgets.patch" seems to be a patch. If it isn't, please remove the "patch" flag from the attachment, remove the "patch" tag, and if you are a member of the ~ubuntu-reviewers, unsubscribe the team.

[This is an automated message performed by a Launchpad user owned by ~brian-murray, for any issues please contact him.]

tags: added: patch
Revision history for this message
Mario Limonciello (superm1) wrote :

Thanks, i'll apply later on after I can validate. I'm also working on a python3, gobject introspection port for MCC, but it's got a lot of problems right now.

Changed in mythbuntu-control-centre (Ubuntu):
assignee: nobody → Mario Limonciello (superm1)
Revision history for this message
Alexander Goodall (lagroth) wrote :

I'd like to be able to try the patch. To do this would I have to compile Mythtv?

Revision history for this message
Sebastian Heinlein (glatzor) wrote :

Oh, the patch did not find its way into the raring release? That is a pitty.

You don't need to compile anything. Just open /usr/bin/mythbuntu-control-center in a text editor as root and remove the AptMessageDialog from the imports. You have to leave the closing bracket.

Revision history for this message
Alexander Goodall (lagroth) wrote :

Thank you, I'd just got this point. I'm happy to fiddle with txt files but compiling seems a bit beyond me at the moment. I can confirm that patch you submitted fixes the error for me. Appreciate you spending the time on this, Mythbuntu-control-centre makes my life so much easier.

Revision history for this message
Rich.T. (rich.t.) wrote :

Thanks for the fix, glatzor; it worked a treat.

Let's hope that this gets into the next release.

Revision history for this message
Rich.T. (rich.t.) wrote :

/usr/bin/mythbuntu-control-centre

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

Still seeing this in Ubuntu 13.10 Saucy Salamander with mythbuntu-control-centre package version: 0.63-0ubuntu2

I can verify that the patch attached to this issue works and the mythbuntu-control-centre app opens after I've applied it!

Thanks @Sebastian ;-)

Revision history for this message
Mario Limonciello (superm1) wrote :

This has been fixed in 14.04 for the next release of Mythbuntu.

Changed in mythbuntu-control-centre (Ubuntu):
status: Triaged → Fix Released
brian ellis (b-ellis81)
description: updated
Revision history for this message
mtbdrew (mtbdrew) wrote :

installed mcc today after making sure my install of 13.10 was updated. Issue is still affecting Saucy.

Revision history for this message
mtbdrew (mtbdrew) wrote :

Easy fix run:

sudo gedit /usr/bin/mythbuntu-control-centre

Remove one line so you only have following:

from aptdaemon import client
from aptdaemon.enums import *
from aptdaemon.gtkwidgets import (AptErrorDialog,
                              AptProgressDialog)

UIDIR = '/usr/share/mythbuntu/ui'

Save and restart MCC

Revision history for this message
Ubuntu QA Website (ubuntuqa) wrote :

This bug has been reported on the Ubuntu ISO testing tracker.

A list of all reports related to this bug can be found here:
http://iso.qa.ubuntu.com/qatracker/reports/bugs/1158117

tags: added: iso-testing
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Duplicates of this bug

Other bug subscribers

Remote bug watches

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