Which package provides the gio backend used in Duplicity

Asked by Chris Vanden Berghe

After upgrading 11.10 server to 12.04 server Duplicity gives me the following error message:

Import of duplicity.backends.giobackend Failed: No module named gio

Which package in Ubuntu provides this module?

Thanks,
Chris.

Question information

Language:
English Edit question
Status:
Solved
For:
Duplicity Edit question
Assignee:
No assignee Edit question
Solved by:
Chris Vanden Berghe
Solved:
Last query:
Last reply:
Revision history for this message
Jeet (gour-jitendrasingh) said :
#1

i think here you can find more info about your question

http://comments.gmane.org/gmane.comp.sysutils.backup.duplicity.general/5399

and did you uninstalled older version if you did not .. then remove it and reinstall !

Revision history for this message
Chris Vanden Berghe (chrisvdb) said :
#2

Thanks, Jeet. I saw that thread but I don't think it applies to me as I'm using a destination in the form of "scp://user:pass@server/dir/" which is the type of URL that is -I believe- interpreted by gio. In any case, the backup fails whereas it worked perfectly before. As for the remove and uninstall suggestion... there is no configuration for Duplicity so I don't see how that would change anything.

The script that calls Duplicity is:

#!/bin/sh

export PASSPHRASE='pass'
export FTP_PASSWORD='pass'

nice /usr/bin/duplicity $@ --num-retries=20 --timeout=100 --archive-dir=/root/Backup/cache/ --include-globbing-filelist /root/Backup/backup.list --exclude '**' / scp://user:pass@server/dir/ && /usr/bin/duplicity remove-older-than 3D --force --archive-dir=/root/Backup/cache/ scp://user:pass@server/dir/

/usr/bin/duplicity cleanup --force --archive-dir=/root/Backup/cache/ scp://user:pass@server/dir/

/usr/bin/duplicity collection-status --archive-dir=/root/Backup/cache/ scp://user:pass@server/dir/ | mail -s "backup status" root

Regards,
Chris.

Revision history for this message
edso (ed.so) said :
#3

On 27.04.2012 10:25, Chris Vanden Berghe wrote:
> Question #194900 on Duplicity changed:
> https://answers.launchpad.net/duplicity/+question/194900
>
> Status: Answered => Open
>
> Chris Vanden Berghe is still having a problem:
> Thanks, Jeet. I saw that thread but I don't think it applies to me as
> I'm using a destination in the form of "scp://user:pass@server/dir/"
> which is the type of URL that is -I believe- interpreted by gio. In any
> case, the backup fails whereas it worked perfectly before. As for the
> remove and uninstall suggestion... there is no configuration for
> Duplicity so I don't see how that would change anything.
>
> The script that calls Duplicity is:
>
> #!/bin/sh
>
> export PASSPHRASE='pass'
> export FTP_PASSWORD='pass'
>
> nice /usr/bin/duplicity $@ --num-retries=20 --timeout=100 --archive-
> dir=/root/Backup/cache/ --include-globbing-filelist
> /root/Backup/backup.list --exclude '**' / scp://user:pass@server/dir/ &&
> /usr/bin/duplicity remove-older-than 3D --force --archive-
> dir=/root/Backup/cache/ scp://user:pass@server/dir/
>
> /usr/bin/duplicity cleanup --force --archive-dir=/root/Backup/cache/
> scp://user:pass@server/dir/
>
> /usr/bin/duplicity collection-status --archive-dir=/root/Backup/cache/
> scp://user:pass@server/dir/ | mail -s "backup status" root
>

gio is only used when --gio is given. see manpage
http://duplicity.nongnu.org/duplicity.1.html

the command line as stated above uses the ssh backend. there were recently changes in it (a native python based ssh backend was introduced) which broke some things. the next release will have the old plus the new ssh backend from which you can choose in case you don't get the new one to work.

back to your original question
>After upgrading 11.10 server to 12.04 server Duplicity gives me the following error message:
>Import of duplicity.backends.giobackend Failed: No module named gio

this is a mere warning and shouldn't have an effect on your set up. duplicity tries to import all backends and only later decides which one to use.

does it break anything on your part?

..ede/duply.net

Revision history for this message
Chris Vanden Berghe (chrisvdb) said :
#4

Backup failed overnight but worked now... not sure which of the changes I made actually solved the problem. I definitely needed to install the python-paramiko package which is only suggested by the Duplicity Ubuntu package rather than depended on.

Thank you for your help,
Chris.

Revision history for this message
edso (ed.so) said :
#5

On 27.04.2012 11:35, Chris Vanden Berghe wrote:
> Question #194900 on Duplicity changed:
> https://answers.launchpad.net/duplicity/+question/194900
>
> Status: Answered => Solved
>
> Chris Vanden Berghe confirmed that the question is solved:
> Backup failed overnight but worked now... not sure which of the changes
> I made actually solved the problem. I definitely needed to install the
> python-paramiko package which is only suggested by the Duplicity Ubuntu
> package rather than depended on.
>

true, the new ssh backend is based on paramiko. i added this requirement to trunk man page already and it'll be documented in the next release.

..ede/duply.net