Discussion:
[Duplicity-talk] error accessing googledocs
Norman Goldstein
2016-04-20 19:54:13 UTC
Permalink
I'm sorry for bringing this up, again (I thought I had it all worked out).
In a nutshell, I get this error running duplicity:

BackendException:
PyDrive backend requires PyDrive installation
Please read the manpage to fix.

Here are is the result of "pip list" on Fedora 23 x86-64.
I assume these versions are sufficiently up-to-date?
No patches are needed? (like pydrivebackend.patch ?)

boto (2.39.0)
chardet (2.2.1)
dropbox (2.2.0)
duplicity (0.7.6)
ecdsa (0.11)
GnuPGInterface (0.3.2)
google-api-python-client (1.5.0)
httplib2 (0.9.2)
lockfile (0.10.2)
oauth2client (2.0.2)
paramiko (1.15.2)
pip (7.1.0)
pyasn1 (0.1.8)
pyasn1-modules (0.0.8)
pycrypto (2.6.1)
PyDrive (1.0.1)
pygobject (3.18.2)
PyYAML (3.11)
requests (2.9.1)
rsa (3.4.1)
setuptools (18.0.1)
simplejson (3.8.2)
six (1.9.0)
uritemplate (0.6)
urllib3 (1.13.1)

Thanks ... and here is a fuller trace of the error:

... [ lots of successful imports including gdocs ]
Import of duplicity.backends.webdavbackend Succeeded
Using temporary directory /tmp/duplicity-goUCAl-tempdir
Backend error detail: Traceback (most recent call last):
File "/usr/bin/duplicity", line 1532, in <module>
with_tempdir(main)
File "/usr/bin/duplicity", line 1526, in with_tempdir
fn()
File "/usr/bin/duplicity", line 1364, in main
action = commandline.ProcessCommandLine(sys.argv[1:])
File "/usr/lib64/python2.7/site-packages/duplicity/commandline.py",
line 1116, in ProcessCommandLine
backup, local_pathname = set_backend(args[0], args[1])
File "/usr/lib64/python2.7/site-packages/duplicity/commandline.py",
line 1005, in set_backend
globals.backend = backend.get_backend(bend)
File "/usr/lib64/python2.7/site-packages/duplicity/backend.py", line
223, in get_backend
obj = get_backend_object(url_string)
File "/usr/lib64/python2.7/site-packages/duplicity/backend.py", line
209, in get_backend_object
return factory(pu)
File
"/usr/lib64/python2.7/site-packages/duplicity/backends/pydrivebackend.py",
line 41, in __init__
raise BackendException('PyDrive backend requires PyDrive installation'
BackendException: PyDrive backend requires PyDrive installationPlease
read the manpage to fix.
Kenneth Loafman
2016-04-20 20:50:29 UTC
Permalink
When you installed 0.7.06, did you first remove the repo version? The
tarball and the repo versions quite often install in conflicting places.

Duplicity 0.7.07.1 has been released. You might want to install this to
get the latest.
Post by Norman Goldstein
I'm sorry for bringing this up, again (I thought I had it all worked out).
PyDrive backend requires PyDrive installation
Please read the manpage to fix.
Here are is the result of "pip list" on Fedora 23 x86-64.
I assume these versions are sufficiently up-to-date?
No patches are needed? (like pydrivebackend.patch ?)
boto (2.39.0)
chardet (2.2.1)
dropbox (2.2.0)
duplicity (0.7.6)
ecdsa (0.11)
GnuPGInterface (0.3.2)
google-api-python-client (1.5.0)
httplib2 (0.9.2)
lockfile (0.10.2)
oauth2client (2.0.2)
paramiko (1.15.2)
pip (7.1.0)
pyasn1 (0.1.8)
pyasn1-modules (0.0.8)
pycrypto (2.6.1)
PyDrive (1.0.1)
pygobject (3.18.2)
PyYAML (3.11)
requests (2.9.1)
rsa (3.4.1)
setuptools (18.0.1)
simplejson (3.8.2)
six (1.9.0)
uritemplate (0.6)
urllib3 (1.13.1)
... [ lots of successful imports including gdocs ]
Import of duplicity.backends.webdavbackend Succeeded
Using temporary directory /tmp/duplicity-goUCAl-tempdir
File "/usr/bin/duplicity", line 1532, in <module>
with_tempdir(main)
File "/usr/bin/duplicity", line 1526, in with_tempdir
fn()
File "/usr/bin/duplicity", line 1364, in main
action = commandline.ProcessCommandLine(sys.argv[1:])
File "/usr/lib64/python2.7/site-packages/duplicity/commandline.py", line
1116, in ProcessCommandLine
backup, local_pathname = set_backend(args[0], args[1])
File "/usr/lib64/python2.7/site-packages/duplicity/commandline.py", line
1005, in set_backend
globals.backend = backend.get_backend(bend)
File "/usr/lib64/python2.7/site-packages/duplicity/backend.py", line
223, in get_backend
obj = get_backend_object(url_string)
File "/usr/lib64/python2.7/site-packages/duplicity/backend.py", line
209, in get_backend_object
return factory(pu)
File
"/usr/lib64/python2.7/site-packages/duplicity/backends/pydrivebackend.py",
line 41, in __init__
raise BackendException('PyDrive backend requires PyDrive installation'
BackendException: PyDrive backend requires PyDrive installationPlease read
the manpage to fix.
_______________________________________________
Duplicity-talk mailing list
https://lists.nongnu.org/mailman/listinfo/duplicity-talk
Norman Goldstein
2016-04-20 21:37:38 UTC
Permalink
I installed duplicity 0.7.06 through the repo.
However, I installed PyDrive using pip, directly.

At the python prompt,
Post by Kenneth Loafman
import pydrive
does not complain, so duplicity should be finding the PyDrive package.
Unfortunately, the error can refer to any problem in the setting up of
the credentials.

Any suggestion how I can check that my google authorization is
correctly set up?
Post by Kenneth Loafman
When you installed 0.7.06, did you first remove the repo version? The
tarball and the repo versions quite often install in conflicting places.
Duplicity 0.7.07.1 has been released. You might want to install this
to get the latest.
I'm sorry for bringing this up, again (I thought I had it all worked out).
PyDrive backend requires PyDrive installation
Please read the manpage to fix.
Here are is the result of "pip list" on Fedora 23 x86-64.
I assume these versions are sufficiently up-to-date?
No patches are needed? (like pydrivebackend.patch ?)
boto (2.39.0)
chardet (2.2.1)
dropbox (2.2.0)
duplicity (0.7.6)
ecdsa (0.11)
GnuPGInterface (0.3.2)
google-api-python-client (1.5.0)
httplib2 (0.9.2)
lockfile (0.10.2)
oauth2client (2.0.2)
paramiko (1.15.2)
pip (7.1.0)
pyasn1 (0.1.8)
pyasn1-modules (0.0.8)
pycrypto (2.6.1)
PyDrive (1.0.1)
pygobject (3.18.2)
PyYAML (3.11)
requests (2.9.1)
rsa (3.4.1)
setuptools (18.0.1)
simplejson (3.8.2)
six (1.9.0)
uritemplate (0.6)
urllib3 (1.13.1)
... [ lots of successful imports including gdocs ]
Import of duplicity.backends.webdavbackend Succeeded
Using temporary directory /tmp/duplicity-goUCAl-tempdir
File "/usr/bin/duplicity", line 1532, in <module>
with_tempdir(main)
File "/usr/bin/duplicity", line 1526, in with_tempdir
fn()
File "/usr/bin/duplicity", line 1364, in main
action = commandline.ProcessCommandLine(sys.argv[1:])
File
"/usr/lib64/python2.7/site-packages/duplicity/commandline.py",
line 1116, in ProcessCommandLine
backup, local_pathname = set_backend(args[0], args[1])
File
"/usr/lib64/python2.7/site-packages/duplicity/commandline.py",
line 1005, in set_backend
globals.backend = backend.get_backend(bend)
File "/usr/lib64/python2.7/site-packages/duplicity/backend.py",
line 223, in get_backend
obj = get_backend_object(url_string)
File "/usr/lib64/python2.7/site-packages/duplicity/backend.py",
line 209, in get_backend_object
return factory(pu)
File
"/usr/lib64/python2.7/site-packages/duplicity/backends/pydrivebackend.py",
line 41, in __init__
raise BackendException('PyDrive backend requires PyDrive installation'
BackendException: PyDrive backend requires PyDrive
installationPlease read the manpage to fix.
_______________________________________________
Duplicity-talk mailing list
https://lists.nongnu.org/mailman/listinfo/duplicity-talk
_______________________________________________
Duplicity-talk mailing list
https://lists.nongnu.org/mailman/listinfo/duplicity-talk
Norman Goldstein
2016-04-21 00:14:57 UTC
Permalink
Here is the problem:

From line 36 of pydrivebackend.py

from oauth2client.client import SignedJwtAssertionCredentials

SignedJwtAssertionCredentials has been removed from oauth2client .

I will try the newer version of duplicity, as suggested ...
Post by Norman Goldstein
I installed duplicity 0.7.06 through the repo.
However, I installed PyDrive using pip, directly.
At the python prompt,
Post by Kenneth Loafman
import pydrive
does not complain, so duplicity should be finding the PyDrive package.
Unfortunately, the error can refer to any problem in the setting up of
the credentials.
Any suggestion how I can check that my google authorization is
correctly set up?
Post by Kenneth Loafman
When you installed 0.7.06, did you first remove the repo version?
The tarball and the repo versions quite often install in conflicting
places.
Duplicity 0.7.07.1 has been released. You might want to install this
to get the latest.
I'm sorry for bringing this up, again (I thought I had it all worked out).
PyDrive backend requires PyDrive installation
Please read the manpage to fix.
Here are is the result of "pip list" on Fedora 23 x86-64.
I assume these versions are sufficiently up-to-date?
No patches are needed? (like pydrivebackend.patch ?)
boto (2.39.0)
chardet (2.2.1)
dropbox (2.2.0)
duplicity (0.7.6)
ecdsa (0.11)
GnuPGInterface (0.3.2)
google-api-python-client (1.5.0)
httplib2 (0.9.2)
lockfile (0.10.2)
oauth2client (2.0.2)
paramiko (1.15.2)
pip (7.1.0)
pyasn1 (0.1.8)
pyasn1-modules (0.0.8)
pycrypto (2.6.1)
PyDrive (1.0.1)
pygobject (3.18.2)
PyYAML (3.11)
requests (2.9.1)
rsa (3.4.1)
setuptools (18.0.1)
simplejson (3.8.2)
six (1.9.0)
uritemplate (0.6)
urllib3 (1.13.1)
... [ lots of successful imports including gdocs ]
Import of duplicity.backends.webdavbackend Succeeded
Using temporary directory /tmp/duplicity-goUCAl-tempdir
File "/usr/bin/duplicity", line 1532, in <module>
with_tempdir(main)
File "/usr/bin/duplicity", line 1526, in with_tempdir
fn()
File "/usr/bin/duplicity", line 1364, in main
action = commandline.ProcessCommandLine(sys.argv[1:])
File
"/usr/lib64/python2.7/site-packages/duplicity/commandline.py",
line 1116, in ProcessCommandLine
backup, local_pathname = set_backend(args[0], args[1])
File
"/usr/lib64/python2.7/site-packages/duplicity/commandline.py",
line 1005, in set_backend
globals.backend = backend.get_backend(bend)
File "/usr/lib64/python2.7/site-packages/duplicity/backend.py",
line 223, in get_backend
obj = get_backend_object(url_string)
File "/usr/lib64/python2.7/site-packages/duplicity/backend.py",
line 209, in get_backend_object
return factory(pu)
File
"/usr/lib64/python2.7/site-packages/duplicity/backends/pydrivebackend.py",
line 41, in __init__
raise BackendException('PyDrive backend requires PyDrive installation'
BackendException: PyDrive backend requires PyDrive
installationPlease read the manpage to fix.
_______________________________________________
Duplicity-talk mailing list
https://lists.nongnu.org/mailman/listinfo/duplicity-talk
_______________________________________________
Duplicity-talk mailing list
https://lists.nongnu.org/mailman/listinfo/duplicity-talk
_______________________________________________
Duplicity-talk mailing list
https://lists.nongnu.org/mailman/listinfo/duplicity-talk
Norman Goldstein
2016-04-21 00:34:50 UTC
Permalink
Using 7.7 fixed the problem ... thanks.

My distribution just seems never to catch up with duplicity :-)
Post by Norman Goldstein
From line 36 of pydrivebackend.py
from oauth2client.client import SignedJwtAssertionCredentials
SignedJwtAssertionCredentials has been removed from oauth2client .
I will try the newer version of duplicity, as suggested ...
Post by Norman Goldstein
I installed duplicity 0.7.06 through the repo.
However, I installed PyDrive using pip, directly.
At the python prompt,
Post by Kenneth Loafman
import pydrive
does not complain, so duplicity should be finding the PyDrive package.
Unfortunately, the error can refer to any problem in the setting up of
the credentials.
Any suggestion how I can check that my google authorization is
correctly set up?
Post by Kenneth Loafman
When you installed 0.7.06, did you first remove the repo version?
The tarball and the repo versions quite often install in conflicting
places.
Duplicity 0.7.07.1 has been released. You might want to install
this to get the latest.
On Wed, Apr 20, 2016 at 2:54 PM, Norman Goldstein
I'm sorry for bringing this up, again (I thought I had it all worked out).
PyDrive backend requires PyDrive installation
Please read the manpage to fix.
Here are is the result of "pip list" on Fedora 23 x86-64.
I assume these versions are sufficiently up-to-date?
No patches are needed? (like pydrivebackend.patch ?)
boto (2.39.0)
chardet (2.2.1)
dropbox (2.2.0)
duplicity (0.7.6)
ecdsa (0.11)
GnuPGInterface (0.3.2)
google-api-python-client (1.5.0)
httplib2 (0.9.2)
lockfile (0.10.2)
oauth2client (2.0.2)
paramiko (1.15.2)
pip (7.1.0)
pyasn1 (0.1.8)
pyasn1-modules (0.0.8)
pycrypto (2.6.1)
PyDrive (1.0.1)
pygobject (3.18.2)
PyYAML (3.11)
requests (2.9.1)
rsa (3.4.1)
setuptools (18.0.1)
simplejson (3.8.2)
six (1.9.0)
uritemplate (0.6)
urllib3 (1.13.1)
... [ lots of successful imports including gdocs ]
Import of duplicity.backends.webdavbackend Succeeded
Using temporary directory /tmp/duplicity-goUCAl-tempdir
File "/usr/bin/duplicity", line 1532, in <module>
with_tempdir(main)
File "/usr/bin/duplicity", line 1526, in with_tempdir
fn()
File "/usr/bin/duplicity", line 1364, in main
action = commandline.ProcessCommandLine(sys.argv[1:])
File
"/usr/lib64/python2.7/site-packages/duplicity/commandline.py",
line 1116, in ProcessCommandLine
backup, local_pathname = set_backend(args[0], args[1])
File
"/usr/lib64/python2.7/site-packages/duplicity/commandline.py",
line 1005, in set_backend
globals.backend = backend.get_backend(bend)
File
"/usr/lib64/python2.7/site-packages/duplicity/backend.py", line
223, in get_backend
obj = get_backend_object(url_string)
File
"/usr/lib64/python2.7/site-packages/duplicity/backend.py", line
209, in get_backend_object
return factory(pu)
File
"/usr/lib64/python2.7/site-packages/duplicity/backends/pydrivebackend.py",
line 41, in __init__
raise BackendException('PyDrive backend requires PyDrive installation'
BackendException: PyDrive backend requires PyDrive
installationPlease read the manpage to fix.
_______________________________________________
Duplicity-talk mailing list
https://lists.nongnu.org/mailman/listinfo/duplicity-talk
_______________________________________________
Duplicity-talk mailing list
https://lists.nongnu.org/mailman/listinfo/duplicity-talk
_______________________________________________
Duplicity-talk mailing list
https://lists.nongnu.org/mailman/listinfo/duplicity-talk
_______________________________________________
Duplicity-talk mailing list
https://lists.nongnu.org/mailman/listinfo/duplicity-talk
Norman Goldstein
2016-04-21 00:53:52 UTC
Permalink
I use duplicity 0.7.7.1 on Fedora 23 x86-64.

I did a successful restore with duplicity,
but there were supposed errors of the form:

Writing config.pl of type reg
Error '[Errno 1] Operation not permitted:
'/home/transient/systems/Duplicity/temp/config.pl''
processing config.pl

However, config.pl /was/ properly written to the destination directory.

I was not able to find in the duplicity code base where this
message was originating. It may be that I am having this annoyance,
because I did a not-from-repo install of duplicity, and maybe some of
its support packages need to be newer, too.

??
e***@web.de
2016-04-21 08:24:33 UTC
Permalink
Post by Norman Goldstein
I use duplicity 0.7.7.1 on Fedora 23 x86-64.
I did a successful restore with duplicity,
Writing config.pl of type reg
'/home/transient/systems/Duplicity/temp/config.pl''
processing config.pl
However, config.pl /was/ properly written to the destination directory.
I was not able to find in the duplicity code base where this
message was originating. It may be that I am having this annoyance,
because I did a not-from-repo install of duplicity, and maybe some of
its support packages need to be newer, too.
??
this usually happens when restoring as a non-root user. duplicity tries to restore file owner/permissions which is only allowed to root.

..ede/duply.net

Loading...