NameError: global name 'parsed_url' is not defined

Bug #612714 reported by Martin Pool
14
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Duplicity
Fix Released
Medium
Unassigned
duplicity (Debian)
Fix Released
Unknown
duplicity (Ubuntu)
Fix Released
Undecided
Unassigned

Bug Description

Binary package hint: duplicity

Changes in Maverick in the last couple of weeks seem to have totally broken duplicity on boto:

+ duplicity -v5 .... /home/mbp/ s3://s3.amazonaws.com/....../ --asynchronous-upload
Using archive dir: /home/mbp/.cache/duplicity/3792168cd335751efe81cb0c54cf7eca
Using backup name: 3792168cd335751efe81cb0c54cf7eca
Import of duplicity.backends.hsibackend Succeeded
Import of duplicity.backends.sshbackend Succeeded
Import of duplicity.backends.tahoebackend Succeeded
Import of duplicity.backends.botobackend Succeeded
Import of duplicity.backends.cloudfilesbackend Succeeded
Import of duplicity.backends.imapbackend Succeeded
Import of duplicity.backends.webdavbackend Succeeded
Import of duplicity.backends.localbackend Succeeded
Import of duplicity.backends.ftpbackend Succeeded
Import of duplicity.backends.giobackend Succeeded
Import of duplicity.backends.rsyncbackend Succeeded
/home/mbp/lib/python/boto/utils.py:42: DeprecationWarning: the sha module is deprecated; use the hashlib module instead
  import sha
/home/mbp/lib/python/boto/utils.py:45: DeprecationWarning: The popen2 module is deprecated. Use the subprocess module.
  import popen2, os, StringIO
/home/mbp/lib/python/boto/s3/key.py:25: DeprecationWarning: the md5 module is deprecated; use hashlib instead
  import md5
Using temporary directory /tmp/duplicity-Z_rsKn-tempdir

Traceback (most recent call last):
  File "/usr/bin/duplicity", line 1251, in <module>
    with_tempdir(main)
  File "/usr/bin/duplicity", line 1244, in with_tempdir
    fn()
  File "/usr/bin/duplicity", line 1130, in main
    action = commandline.ProcessCommandLine(sys.argv[1:])
  File "/usr/lib/python2.6/dist-packages/duplicity/commandline.py", line 911, in ProcessCommandLine
    backup, local_pathname = set_backend(args[0], args[1])
  File "/usr/lib/python2.6/dist-packages/duplicity/commandline.py", line 806, in set_backend
    globals.backend = backend.get_backend(bend)
  File "/usr/lib/python2.6/dist-packages/duplicity/backend.py", line 153, in get_backend
    return _backends[pu.scheme](pu)
  File "/usr/lib/python2.6/dist-packages/duplicity/backends/botobackend.py", line 69, in __init__
    self.resetConnection()
  File "/usr/lib/python2.6/dist-packages/duplicity/backends/botobackend.py", line 138, in resetConnection
    self.conn = S3Connection(host=parsed_url.hostname)
NameError: global name 'parsed_url' is not defined

ProblemType: Bug
DistroRelease: Ubuntu 10.10
Package: duplicity 0.6.09-0ubuntu1
ProcVersionSignature: Ubuntu 2.6.35-13.18-generic 2.6.35-rc6
Uname: Linux 2.6.35-13-generic x86_64
Architecture: amd64
Date: Tue Aug 3 06:02:15 2010
EcryptfsInUse: Yes
ProcEnviron:
 PATH=(custom, user)
 LANG=en_AU.utf8
 SHELL=/bin/zsh
SourcePackage: duplicity

Revision history for this message
Martin Pool (mbp) wrote :
Revision history for this message
Liraz (liraz-siri) wrote :

Maverick isn't at fault. It's a bug in duplicity. See patch.

Revision history for this message
Martin Pool (mbp) wrote : Re: [Bug 612714] Re: NameError: global name 'parsed_url' is not defined

On 4 August 2010 08:53, Liraz <email address hidden> wrote:
> Maverick isn't at fault. It's a bug in duplicity. See patch.
>
> ** Patch added: "0001-bugfix-make-parsed_url-part-of-the-instance.patch"
>   http://launchpadlibrarian.net/53016681/0001-bugfix-make-parsed_url-part-of-the-instance.patch

looks good to me.

--
Martin

Revision history for this message
Angel Abad (angelabad) wrote :
Revision history for this message
Angel Abad (angelabad) wrote :

Debdiff attached.

Thanks!

Revision history for this message
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package duplicity - 0.6.09-0ubuntu2

---------------
duplicity (0.6.09-0ubuntu2) maverick; urgency=low

  * debian/patches/04fixparsed_url.dpatch: upstream fix for make
    parsed_url part of the instance. Thanks Liraz Siri (LP: #612714)
 -- Angel Abad <email address hidden> Thu, 12 Aug 2010 10:40:08 +0200

Changed in duplicity (Ubuntu):
status: New → Fix Released
tags: added: patch
Revision history for this message
Kenneth Loafman (kenneth-loafman) wrote :

Applied patch from Liraz Siri.

Changed in duplicity:
importance: Undecided → Medium
milestone: none → 0.6.10
status: New → Fix Committed
Changed in duplicity:
status: Fix Committed → Fix Released
Changed in duplicity (Debian):
status: Unknown → Confirmed
Changed in duplicity (Debian):
status: Confirmed → Fix Released
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.