cannot import name Gio
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Duplicity |
New
|
Undecided
|
Unassigned |
Bug Description
I am using duplicity via deja-dup to create backups; but recently it stopped working, stating "BackendException: Hintergrundprogramm konnte nicht initialisiert werden: cannot import name Gio" (sorry for the german error messages, unfortunately I failed to switch to english messages).
The command causing this error (reduced to the minimum):
duplicity --verbosity=9 --gio collection-status file:///tmp
Achtung: Parameter --gio ist veraltet und wird in einer der nächsten Versionen entfernt.
Bitte verwenden Sie Standarddateinamen.
Folgendes Archivverzeichnis wird benutzt: $HOME/.
Folgender Sicherungsname wird benutzt: c2731c078833974
Import von duplicity.
Import von duplicity.
Import von duplicity.
Import von duplicity.
Import von duplicity.
Import von duplicity.
Import von duplicity.
Import von duplicity.
Import von duplicity.
Import von duplicity.
Import von duplicity.
Import von duplicity.
Import von duplicity.
Import von duplicity.
Import von duplicity.
Import von duplicity.
Import von duplicity.
Import von duplicity.
Import von duplicity.
Import von duplicity.
Import von duplicity.
Import von duplicity.
Import von duplicity.
Import von duplicity.
Import von duplicity.
Import von duplicity.
Temporäres Verzeichnis /tmp/duplicity-
Fehlerdetail des Hintergrundprog
File "/usr/bin/
with_
File "/usr/bin/
fn()
File "/usr/bin/
action = commandline.
File "/usr/lib/
globals.backend = backend.
File "/usr/lib/
obj = get_backend_
File "/usr/lib/
raise BackendExceptio
BackendException: Hintergrundprogramm konnte nicht initialisiert werden: cannot import name Gio
Removing --gio from the command fixes the problem, but since the command is created by deja-dup I have no idea how to get rid of that option.
A possible solutions I found was that the package python-gi might be missing; it was already installed, and even a
$ apt install --reinstall python-gi
did not help.
Also as suggested in Question #664503 I tried installing python-gobject-2 / python-
My OS: Ubuntu 16.04.3 LTS
Version of duplicity: 0.7.06
Python 2.7.12