Page 1 of 1

MintBackup Tool not opening [SOLVED]

Posted: Sat Jul 16, 2011 8:00 am
by msm
Having recently installed LMDE I've downloaded a large number of software. I'd like to make a backup of the software list via the MintBackup tool. But when I click on its icon nothing happens - the program doesn't open. I've tried deleting and reinstalling it but that didn't fix it. What could the reason be for this?

Re: MintBackup Tool not opening

Posted: Sat Jul 16, 2011 12:21 pm
by grizzler
http://forums.linuxmint.com/viewtopic.p ... up#p432781

Reported over a month ago. Still not fixed? I applied the patch myself so I can't check.

Re: MintBackup Tool not opening

Posted: Sat Jul 16, 2011 3:33 pm
by msm
Apparently it hasn't been fixed yet. At least it doesn't work for me. Don't get an error message, it just doesn't open.

Re: MintBackup Tool not opening

Posted: Sun Jul 17, 2011 12:48 am
by davrych
@msm

I applied the patch, and it worked :D, I have lmde 32 with linux 2.6.39-2-686-pae and python-apt 0.8.0

You have to edit /usr/lib/linuxmint/mintbackup/mintbackup.py , import apt.progress.gtk2, and then replace line 87 with class MessageDialog(apt.progress.gtk2.GOpProgress), save your file and there you go.

This fix was provided by M Thomson on https://bugs.launchpad.net/linuxmint/+bug/795132 , read carefully you should know what are you doing, I learned that myself about twenty minutes ago. Good luck!

Re: MintBackup Tool not opening

Posted: Sun Jul 17, 2011 8:02 am
by msm
davrych wrote:
You have to edit /usr/lib/linuxmint/mintbackup/mintbackup.py , import apt.progress.gtk2, and then replace line 87 with class MessageDialog(apt.progress.gtk2.GOpProgress)
Thanks, but I'm not sure how to import the apt.progress.gtk2. How can I import that file?

Re: MintBackup Tool not opening

Posted: Sun Jul 17, 2011 9:22 am
by grizzler
This is what I did. Open a terminal window and enter these three commands (the first is just to backup the file in case the patching goes wrong - make sure to include the space and the dot at the end):

Code: Select all

cp /usr/lib/linuxmint/mintBackup/mintBackup.py .
wget https://bugs.launchpad.net/linuxmint/+bug/795132/+attachment/2162530/+files/mintBackup.py.diff
sudo patch /usr/lib/linuxmint/mintBackup/mintBackup.py -i mintBackup.py.diff
You can remove the files 'mintBackup.py' and 'mintBackup.py.diff' from your home directory when the patching is done.

=====================================================================================================
EDIT 04-08-2011: to anyone planning to use this patch now: DON'T!
The patched version of MintBackup has been released through the update system. You should now have version 2.0.8 which should just work. Trying to apply the patch to that version will cause problems.

Re: MintBackup Tool not opening

Posted: Sun Jul 17, 2011 9:55 am
by doktordave
Thanks, grizzler. Works like a charm here.

Re: MintBackup Tool not opening

Posted: Sun Jul 17, 2011 10:14 am
by msm
grizzler wrote:This is what I did. Open a terminal window and enter these three commands (the first is just to backup the file in case the patching goes wrong - make sure to include the space and the dot at the end):

Code: Select all

cp /usr/lib/linuxmint/mintBackup/mintBackup.py .
wget https://bugs.launchpad.net/linuxmint/+bug/795132/+attachment/2162530/+files/mintBackup.py.diff
sudo patch /usr/lib/linuxmint/mintBackup/mintBackup.py -i mintBackup.py.diff
You can remove the files 'mintBackup.py' and 'mintBackup.py.diff' from your home directory when the patching is done.
Worked for me as well. Thank you!

Re: MintBackup Tool not opening [SOLVED]

Posted: Mon Jul 25, 2011 6:24 am
by bigdee
A big thank you from me too grizzler. :D

Re: MintBackup Tool not opening [SOLVED]

Posted: Thu Aug 04, 2011 11:25 am
by gorade

Code: Select all

patching file /usr/lib/linuxmint/mintBackup/mintBackup.py
Hunk #2 FAILED at 88.
1 out of 2 hunks FAILED -- saving rejects to file /usr/lib/linuxmint/mintBackup/mintBackup.py.rej
What do I do wrong?

Backup of program choice still doesn't start.

Re: MintBackup Tool not opening [SOLVED]

Posted: Thu Aug 04, 2011 11:37 am
by hozomean
This bug fix has been released, so if you're fully up to date, you should not need to apply the patch. Please update mintBackup and update if you're still having problems.