Unable to load gio backend: No module named gi.repository

Bug #1186070 reported by pkrev
10
This bug affects 2 people
Affects Status Importance Assigned to Milestone
Déjà Dup
Fix Released
Undecided
Unassigned

Bug Description

Description: Red Hat Enterprise Linux Workstation release 6.4 (Santiago)

backup was working fine before I upgraded from RHEL6.3 to RHEL6.4

Running deja-dup from console

** (deja-dup:8537): CRITICAL **: deja_dup_duplicity_cmp_prefix: assertion `b != NULL' failed
** (deja-dup:8537): DEBUG: DuplicityInstance.vala:199: Running the following duplicity (9304) command: duplicity 'collection-status' '--exclude=/home/uros/.local/share/Trash' '--exclude=/home/uros/.Private' '--exclude=/home/uros/.recent-applications.xbel' '--exclude=/home/uros/.recently-used.xbel' '--exclude=/home/uros/.xsession-errors' '--exclude=/home/uros/.gvfs' '--exclude=/home/uros/.thumbnails' '--exclude=/home/uros/.cache' '--include=/home/uros' '--exclude=/sys' '--exclude=/proc' '--exclude=/tmp' '--exclude=**' '--gio' 'smb://10.0.10.5/public/uros' '--verbosity=9' '--archive-dir=/home/uros/.cache/deja-dup' '--log-file=/tmp/deja-dup-6NU4XW'

** (deja-dup:8537): DEBUG: DuplicityInstance.vala:552: duplicity (9304) exited with value 40

Running just duplicity command from console

 duplicity 'collection-status' '--exclude=/home/uros/.local/share/Trash' '--exclude=/home/uros/.Private' '--exclude=/home/uros/.recent-applications.xbel' '--exclude=/home/uros/.recently-used.xbel' '--exclude=/home/uros/.xsession-errors' '--exclude=/home/uros/.gvfs' '--exclude=/home/uros/.thumbnails' '--exclude=/home/uros/.cache' '--include=/home/uros' '--exclude=/sys' '--exclude=/proc' '--exclude=/tmp' '--exclude=**' '--gio' 'smb://10.0.10.5/public/uros' '--verbosity=9' '--archive-dir=/home/uros/.cache/deja-dup' '--log-file=/tmp/deja-dup-6NU4XW'
Unable to load gio backend: No module named gi.repository

Revision history for this message
Michael Terry (mterry) wrote :

This sounds like python-gi (or whatever RHEL calls that package) isn't installed.

Revision history for this message
Adrian Wilkins (adrian-wilkins) wrote :

I also got this after a fresh install of Xenial.

* Fresh install of 16.04
* Restored home folder (preconfigured backups)
* Ran into bug https://bugs.launchpad.net/deja-dup/+bug/1576083
* Installed duplicity using apt-get
* Dialog changes to "No module named gi.repository"

python-gi is installed for python3 but not the python2 that duplicity uses.

Installed manually using apt-get

Revision history for this message
Matt Samudio (matt-ww) wrote :

Hey Adrian, how about a mention of the package name you provided to apt-get for this ?

Revision history for this message
Matt Samudio (matt-ww) wrote :

OK, here's what I found ....

When I did a fresh install of 16.04, and then did "python -V", I get "Python 2.7.11+".
It seems python2 is the "default" - I wasn't sure why python3 would be relevant, so
I did a bit of digging and found that I could try this:

apt-get install --reinstall python-gi

... that did the trick.

Michael Terry (mterry)
Changed in deja-dup:
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.