UnboundLocalError: local variable 'document' referenced before assignment

Bug #726823 reported by Tobias Wichtrey
22
This bug affects 5 people
Affects Status Importance Assigned to Milestone
Duplicity
New
Undecided
Unassigned

Bug Description

When I invoke duplicity with

duplicity -v9 localdir/ webdav://username:<email address hidden>/remotedir/

(with details filled in, of course), then I always get the following error:

------

Linux dhcppc0 2.6.34.7-0.7-desktop #1 SMP PREEMPT 2010-12-13 11:13:53 +0100 x86_64 x86_64
/usr/bin/python 2.6.5 (r265:79063, Oct 28 2010, 20:56:23)
[GCC 4.5.0 20100604 [gcc-4_5-branch revision 160292]]
================================================================================
Using temporary directory /tmp/duplicity-P_wNM6-tempdir
Registering (mkstemp) temporary file /tmp/duplicity-P_wNM6-tempdir/mkstemp-WlUnpu-1
Temp has 8678006784 available, backup will use approx 34078720.
Listing directory /remotedir/ on WebDAV server
WebDAV PROPFIND attempt #1 failed: 405 Method Not Allowed
Listing directory /remotedir/ on WebDAV server
WebDAV PROPFIND attempt #2 failed: 405 Method Not Allowed
Listing directory /remotedir/ on WebDAV server
WebDAV PROPFIND attempt #3 failed: 405 Method Not Allowed
Listing directory /remotedir/ on WebDAV server
WebDAV PROPFIND attempt #4 failed: 405 Method Not Allowed
Listing directory /remotedir/ on WebDAV server
WebDAV PROPFIND attempt #5 failed: 405 Method Not Allowed
Removing still remembered temporary file /tmp/duplicity-P_wNM6-tempdir/mkstemp-WlUnpu-1
Traceback (most recent call last):
  File "/usr/bin/duplicity", line 1239, in <module>
    with_tempdir(main)
  File "/usr/bin/duplicity", line 1232, in with_tempdir
    fn()
  File "/usr/bin/duplicity", line 1133, in main
    sync_archive()
  File "/usr/bin/duplicity", line 910, in sync_archive
    remlist = globals.backend.list()
  File "/usr/lib64/python2.6/site-packages/duplicity/backends/webdavbackend.py", line 181, in list
    log.Info("%s" % (document,))
UnboundLocalError: local variable 'document' referenced before assignment

------

I am using duplicity 0.6.08b with python 2.6.5 on an OpenSuSE 11.3 system.

Maybe, it is because my username contains an '@'. I tried writing '\@' and putting the username in "s, but the same error occcurs. It is also the same with duplicity 0.6.11.

Cheers
Tobias

Revision history for this message
Beni Buess (beni-benel) wrote :

This also happens with duplicity 0.6.18-0ubuntu3

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.