[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Duplicity-talk] problem w/ pydrive
From: |
edgar . soldin |
Subject: |
Re: [Duplicity-talk] problem w/ pydrive |
Date: |
Tue, 28 Feb 2017 15:01:06 +0100 |
User-agent: |
Mozilla/5.0 (Windows NT 6.1; WOW64; rv:45.0) Gecko/20100101 Thunderbird/45.7.1 |
On 28.02.2017 14:03, Douglas J Hunley via Duplicity-talk wrote:
> I'm trying to use pydrive to backup to google drive and it's throwing the
> following:
> address@hidden ~ » duply googledrive backup --force --asynchronous-upload
> --full-if-older-than 1W
> Start duply v2.0.1, time is 2017-02-28 07:54:37.
> Using profile '/Users/doug/.duply/googledrive'.
> Using installed duplicity version 0.7.11, python 2.7.13, gpg 2.0.30 (Home:
> ~/.gnupg), awk 'awk version 20070501', grep 'grep (BSD grep) 2.5.1-FreeBSD',
> bash '3.2.57(1)-release (x86_64-apple-darwin16)'.
> Checking TEMP_DIR '/Users/doug/.cache/tmp' is a folder and writable (OK)
> Test - En/Decryption skipped. (GPG disabled)
>
> --- Start running command PRE at 07:54:44.388 ---
> Running '/Users/doug/.duply/googledrive/pre' - OK
> --- Finished state OK at 07:54:44.506 - Runtime 00:00:00.118 ---
>
> --- Start running command BKP at 07:54:44.552 ---
> Using archive dir: /Users/doug/.cache/duplicity/duply_googledrive
> Using backup name: duply_googledrive
> Import of duplicity.backends.acdclibackend Succeeded
> Import of duplicity.backends.azurebackend Succeeded
> Import of duplicity.backends.b2backend Succeeded
> Import of duplicity.backends.botobackend Succeeded
> Import of duplicity.backends.cfbackend Succeeded
> Import of duplicity.backends.copycombackend Succeeded
> Import of duplicity.backends.dpbxbackend Succeeded
> Import of duplicity.backends.gdocsbackend Succeeded
> Import of duplicity.backends.giobackend Succeeded
> Import of duplicity.backends.hsibackend Succeeded
> Import of duplicity.backends.hubicbackend Succeeded
> Import of duplicity.backends.imapbackend Succeeded
> Import of duplicity.backends.lftpbackend Succeeded
> Import of duplicity.backends.localbackend Succeeded
> Import of duplicity.backends.mediafirebackend Succeeded
> Import of duplicity.backends.megabackend Succeeded
> Import of duplicity.backends.multibackend Succeeded
> Import of duplicity.backends.ncftpbackend Succeeded
> Import of duplicity.backends.onedrivebackend Succeeded
> Import of duplicity.backends.par2backend Succeeded
> Import of duplicity.backends.pydrivebackend Succeeded
> Import of duplicity.backends.rsyncbackend Succeeded
> Import of duplicity.backends.ssh_paramiko_backend Succeeded
> Import of duplicity.backends.ssh_pexpect_backend Succeeded
> Import of duplicity.backends.swiftbackend Succeeded
> Import of duplicity.backends.sxbackend Succeeded
> Import of duplicity.backends.tahoebackend Succeeded
> Import of duplicity.backends.webdavbackend Succeeded
> Using temporary directory /Users/doug/.cache/tmp/duplicity-kRJfEB-tempdir
> Backend error detail: Traceback (most recent call last):
> File "/usr/local/bin/duplicity", line 1546, in <module>
> with_tempdir(main)
> File "/usr/local/bin/duplicity", line 1540, in with_tempdir
> fn()
> File "/usr/local/bin/duplicity", line 1375, in main
> action = commandline.ProcessCommandLine(sys.argv[1:])
> File
> "/usr/local/Cellar/duplicity/0.7.11/libexec/lib/python2.7/site-packages/duplicity/commandline.py",
> line 1126, in ProcessCommandLine
> backup, local_pathname = set_backend(args[0], args[1])
> File
> "/usr/local/Cellar/duplicity/0.7.11/libexec/lib/python2.7/site-packages/duplicity/commandline.py",
> line 1015, in set_backend
> globals.backend = backend.get_backend(bend)
> File
> "/usr/local/Cellar/duplicity/0.7.11/libexec/lib/python2.7/site-packages/duplicity/backend.py",
> line 223, in get_backend
> obj = get_backend_object(url_string)
> File
> "/usr/local/Cellar/duplicity/0.7.11/libexec/lib/python2.7/site-packages/duplicity/backend.py",
> line 209, in get_backend_object
> return factory(pu)
> File
> "/usr/local/Cellar/duplicity/0.7.11/libexec/lib/python2.7/site-packages/duplicity/backends/pydrivebackend.py",
> line 40, in __init__
> raise BackendException('PyDrive backend requires PyDrive installation'
> BackendException: PyDrive backend requires PyDrive installationPlease read
> the manpage to fix.
>
> BackendException: PyDrive backend requires PyDrive installationPlease read
> the manpage to fix.
> 07:54:52.288 Task 'BKP' failed with exit code '23'.
> --- Finished state FAILED 'code 23' at 07:54:52.288 - Runtime 00:00:07.735 ---
>
> --- Start running command POST at 07:54:52.347 ---
> Running '/Users/doug/.duply/googledrive/post' - OK
> --- Finished state OK at 07:54:52.445 - Runtime 00:00:00.097 ---
> address@hidden ~ »
>
> I'm on OSX Sierra. I installed duply 2.0.1 via brew (which installed
> duplicity 0.7.11), and then installed pydrive via pip:
> address@hidden ~ » pip list
> DEPRECATION: The default format will switch to columns in the future. You can
> use --format=(legacy|columns) (or define a format=(legacy|columns) in your
> pip.conf under the [list] section) to disable this warning.
> google-api-python-client (1.6.2)
> httplib2 (0.10.3)
> oauth2client (4.0.0)
> pandocfilters (1.3.0)
> pip (9.0.1)
> psycopg2 (2.6.2)
> pyasn1 (0.2.3)
> pyasn1-modules (0.0.8)
> PyDrive (1.3.1)
> PyYAML (3.12)
> requests (2.11.1)
> rsa (3.4.2)
> setuptools (32.1.0)
> six (1.10.0)
> uritemplate (3.0.0)
> wheel (0.29.0)
>
> My config:
> address@hidden ~/repos/mine/dotfiles/common/duply/googledrive ±master » egrep
> -v '^#|^$' conf
> GPG_KEY='disabled'
> GPG_PW='_GPG_PASSWORD_'
> TARGET='gdocs://address@hidden/backup <http://address@hidden/backup>'
> GOOGLE_DRIVE_SETTINGS=/Users/doug/.duply/googledrive/pydrive
> SOURCE='/Users/doug'
> FILENAME='.duplicity-ignore'
> DUPL_PARAMS="$DUPL_PARAMS --exclude-if-present '$FILENAME'"
> MAX_AGE=1M
> MAX_FULL_BACKUPS=1
> MAX_FULLS_WITH_INCRS=1
> VERBOSITY=9
> TEMP_DIR=/Users/doug/.cache/tmp
>
> And the contents of 'pydrive':
> address@hidden ~/repos/mine/dotfiles/common/duply/googledrive ±master » cat
> pydrive
> client_config_backend: settings
> client_config:
> client_id: XXXX.apps.googleusercontent.com
> <http://XXXX.apps.googleusercontent.com>
> client_secret: XXXX
> save_credentials: True
> save_credentials_backend: file
> save_credentials_file: /Users/doug/.duply/googledrive/authdata.json
> get_refresh_token: True
>
> Everything I've seen via Google (use an older of X, use a different version
> of Y, etc) has not helped. Any pointers?
try replacing
/usr/local/Cellar/duplicity/0.7.11/libexec/lib/python2.7/site-packages/duplicity/backends/pydrivebackend.py",
line 39-40, in __init__
OLD:
except ImportError:
raise BackendException('PyDrive backend requires PyDrive
installation'
'Please read the manpage to fix.')
NEW:
except ImportError as error:
raise error
to see what the actual error really is. that should get you further. keep
indention as it was before.
..ede/duply.net
- [Duplicity-talk] problem w/ pydrive, Douglas J Hunley, 2017/02/28
- Re: [Duplicity-talk] problem w/ pydrive,
edgar . soldin <=
- Re: [Duplicity-talk] problem w/ pydrive, Douglas J Hunley, 2017/02/28
- Re: [Duplicity-talk] problem w/ pydrive, edgar . soldin, 2017/02/28
- Re: [Duplicity-talk] problem w/ pydrive, Douglas J Hunley, 2017/02/28
- Re: [Duplicity-talk] problem w/ pydrive, Kenneth Loafman, 2017/02/28
- Re: [Duplicity-talk] problem w/ pydrive, Douglas J Hunley, 2017/02/28
- Re: [Duplicity-talk] problem w/ pydrive, edgar . soldin, 2017/02/28