NameError: global name 'result' is not defined

Bug #843900 reported by Andreas Hasenack
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Bazaar
Fix Released
High
Martin Pool

Bug Description

Got this traceback when running "bzr branch ubuntu:natty/updates/smartpm":

 Traceback (most recent call last):
   File "/usr/lib/pymodules/python2.6/bzrlib/commands.py", line 946, in exception_to_return_code
     return the_callable(*args, **kwargs)
   File "/usr/lib/pymodules/python2.6/bzrlib/commands.py", line 1150, in run_bzr
     ret = run(*run_argv)
   File "/usr/lib/pymodules/python2.6/bzrlib/commands.py", line 699, in run_argv_aliases
     return self.run(**all_cmd_args)
   File "/usr/lib/pymodules/python2.6/bzrlib/commands.py", line 721, in run
     return self._operation.run_simple(*args, **kwargs)
   File "/usr/lib/pymodules/python2.6/bzrlib/cleanup.py", line 135, in run_simple
     self.cleanups, self.func, *args, **kwargs)
   File "/usr/lib/pymodules/python2.6/bzrlib/cleanup.py", line 165, in _do_with_cleanups
     result = func(*args, **kwargs)
   File "/usr/lib/pymodules/python2.6/bzrlib/builtins.py", line 1263, in run
     from_location)
   File "/usr/lib/pymodules/python2.6/bzrlib/bzrdir.py", line 918, in open_tree_or_branch
     bzrdir = klass.open(location)
   File "/usr/lib/pymodules/python2.6/bzrlib/bzrdir.py", line 827, in open
     t = _mod_transport.get_transport(base, possible_transports)
   File "/usr/lib/pymodules/python2.6/bzrlib/transport/__init__.py", line 1602, in get_transport
     base = directories.dereference(base)
   File "/usr/lib/pymodules/python2.6/bzrlib/directory_service.py", line 63, in dereference
     return service().look_up(name, url)
   File "/usr/lib/pymodules/python2.6/bzrlib/plugins/launchpad/lp_directory.py", line 66, in look_up
     return self._resolve(url)
   File "/usr/lib/pymodules/python2.6/bzrlib/plugins/launchpad/lp_directory.py", line 157, in _resolve
     url, path = self._update_url_scheme(url)
   File "/usr/lib/pymodules/python2.6/bzrlib/plugins/launchpad/lp_directory.py", line 133, in _update_url_scheme
     raise errors.InvalidURL('Bad path: %s' % result.path)
 NameError: global name 'result' is not defined

Crash file attached (apport wouldn't accept it, saying bzr is not a genuine ubuntu package).

Related branches

Revision history for this message
Andreas Hasenack (ahasenack) wrote :
Martin Pool (mbp)
Changed in bzr:
status: New → Confirmed
importance: Undecided → High
tags: added: launchpad trivial
Revision history for this message
Martin Pool (mbp) wrote :

Hi, I'll fix this so that you get at least a clean "invalid url" as intended.

I think the url you want is actually ubuntu:natty-updates/smart - using the distroseries and pocket together, and using the source package name not the binary name - but even that does not exist for some reason.

I filed https://bugs.launchpad.net/launchpad/+bug/868934 for the lack of documentation.

Changed in bzr:
assignee: nobody → Martin Pool (mbp)
status: Confirmed → In Progress
Vincent Ladeuil (vila)
Changed in bzr:
milestone: none → 2.5b3
status: In Progress → 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.