LMDE mintBackup broke with debian update to pythin-apt 0.8.0

Bug #795132 reported by Mike T
22
This bug affects 4 people
Affects Status Importance Assigned to Milestone
Linux Mint
Fix Released
Undecided
Unassigned

Bug Description

With the release of python-apt 0.7.100, the debian folks announced "Applications using the old API should be updated to the new API because the old ones will be dropped in a future release. To build a python-apt variant without the deprecated API, build it without the -DCOMPAT_0_7 compiler flag." With the 0.8.0 release, which appears to have hit wheezy fairly recently, the deprecated API was dropped. (http://apt.alioth.debian.org/python-apt-doc/whatsnew/0.8.0.html)

So, I'm sure mintBackup wasn't the only thing hit by this, but mintbackup is broken. The traceback looks like this:
$ mintbackup
Traceback (most recent call last):
  File "/usr/lib/linuxmint/mintBackup/mintBackup.py", line 87, in <module>
    class MessageDialog(apt.FetchProgress):
AttributeError: 'module' object has no attribute 'FetchProgress'

I've found the equivalent class in the new api. By importing apt.progress.gtk2 and then changing line 87 as follows:
-class MessageDialog(apt.FetchProgress):
+class MessageDialog(apt.progress.gtk2.GOpProgress):

things appear to run properly again.

I'm testing now and working on getting myself setup to submit the patch (as I'd like to contribute where I can anyhow, this seems like a great place to start).

I've examined the other python-apt calls in this script and from what I can tell, they seem to be supported, but I'll continue testing and update if i find anything else.

I'm running LMDE Xfce 64bit, fwiw.

Revision history for this message
Mike T (trustdarkness) wrote :
Revision history for this message
Johan Nilsson (johanpo) wrote :

Effecting me too.

LMDE 64 bit on Gnome

Revision history for this message
Jurien (f-dreumel) wrote :

The same problem here
http://imagebin.org/160036

Revision history for this message
drum (taverne-laurent) wrote :

Here also this problem

Revision history for this message
Marcus E (u-marcus) wrote :

Same here:
LMDE64

# mintbackup
**
GLib-GIO:ERROR:/tmp/buildd/glib2.0-2.28.6/./gio/gdbusconnection.c:2279:initable_init: assertion failed: (connection->initialization_error == NULL)
Aborted

Revision history for this message
Diederen (jjhdiederen) wrote :

M.Thompson: your patch worked for me too. I built mintbackup on a PowerPC computer running Wheezy.

Revision history for this message
Clement Lefebvre (clementlefebvre) wrote :

Thanks for the patch and the detailed analysis.

Changed in linuxmint:
status: New → 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.