crash with --s3-use-multiprocessing

Bug #908417 reported by Andrei Pozolotin
16
This bug affects 3 people
Affects Status Importance Assigned to Milestone
Duplicity
New
Undecided
Unassigned

Bug Description

the following invocation

duplicity \
  --volsize $VOLUME_SIZE \
  --s3-use-new-style \
  --verbosity info \
  --asynchronous-upload \
  --s3-use-multiprocessing \
  --include-globbing-filelist $INCLUDE \
  --exclude-globbing-filelist $EXCLUDE \
  $SOURCE $TARGET

works fine if I remove --s3-use-multiprocessing
but it blows up with exception otherwise:

user1@wks002:~/.duplicity$ ./save.sh
Using archive dir: /home/user1/.cache/duplicity/8f7a2bc069fd6f70a8dccbf1ce8eb68a
Using backup name: 8f7a2bc069fd6f70a8dccbf1ce8eb68a
Import of duplicity.backends.rsyncbackend Succeeded
Import of duplicity.backends.ftpsbackend Succeeded
Import of duplicity.backends.webdavbackend Succeeded
Import of duplicity.backends.gdocsbackend Succeeded
Import of duplicity.backends.ftpbackend Succeeded
Import of duplicity.backends.sshbackend Succeeded
Import of duplicity.backends.imapbackend Succeeded
Import of duplicity.backends.cloudfilesbackend Succeeded
Import of duplicity.backends.botobackend Failed: name 'sys' is not defined
Import of duplicity.backends.tahoebackend Succeeded
Import of duplicity.backends.hsibackend Succeeded
Import of duplicity.backends.localbackend Succeeded
Import of duplicity.backends.u1backend Succeeded
Import of duplicity.backends.giobackend Succeeded
Using temporary directory /tmp/duplicity-IKgSDI-tempdir
User error detail: Traceback (most recent call last):
  File "/usr/bin/duplicity", line 1377, in <module>
    with_tempdir(main)
  File "/usr/bin/duplicity", line 1370, in with_tempdir
    fn()
  File "/usr/bin/duplicity", line 1221, in main
    action = commandline.ProcessCommandLine(sys.argv[1:])
  File "/usr/lib/python2.6/dist-packages/duplicity/commandline.py", line 996, in ProcessCommandLine
    backup, local_pathname = set_backend(args[0], args[1])
  File "/usr/lib/python2.6/dist-packages/duplicity/commandline.py", line 889, in set_backend
    globals.backend = backend.get_backend(bend)
  File "/usr/lib/python2.6/dist-packages/duplicity/backend.py", line 154, in get_backend
    raise UnsupportedBackendScheme(url_string)
UnsupportedBackendScheme: scheme not supported in url: s3+http://archive-duplicity/wks002

UnsupportedBackendScheme: scheme not supported in url: s3+http://archive-duplicity/wks002

########################

user1@wks002:~/.duplicity$ duplicity --version
duplicity 0.6.17

user1@wks002:~/.duplicity$ uname -a
Linux wks002 3.0.0-14-generic-pae #23-Ubuntu SMP Mon Nov 21 22:07:10 UTC 2011 i686 i686 i386 GNU/Linux

Revision history for this message
derp herp (junkmail-trash) wrote :

Seeing this as well on python2.7 on Debian Lenny.

Revision history for this message
derp herp (junkmail-trash) wrote :

Here's a patch:

*** duplicity-0.6.17/duplicity/backends/botobackend.py 2011-11-25 11:20:19.000000000 -0800
--- duplicity-0.6.17-fixed/duplicity/backends/botobackend.py 2012-01-12 17:05:31.000000000 -0800
***************
*** 21,26 ****
--- 21,27 ----
  # Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA

  from duplicity import globals
+ import sys

  if globals.s3_use_multiprocessing:
      if sys.version_info[:2] < (2,6):

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Related questions

Remote bug watches

Bug watches keep track of this bug in other bug trackers.