exceptions.KeyError: 'port' when doing Branch

Bug #654684 reported by Jan Juricek
24
This bug affects 4 people
Affects Status Importance Assigned to Milestone
Bazaar
Fix Released
Medium
Martin Pool

Bug Description

Hello,

I have Windows 7 Pro x64 and everytime I try to do a local branch, I get following error. It has happened with both 2.2.1 and 2.1.2 versions. Could somebody please provide an advice?

Run command: bzr checkout http+urllib://x.x.x.x/trunk C:\Web\Data\nm\bazaar\trunk
bzr: ERROR: exceptions.KeyError: 'port'

Traceback (most recent call last):
  File "bzrlib\commands.pyo", line 853, in exception_to_return_code
  File "bzrlib\commands.pyo", line 1055, in run_bzr
  File "bzrlib\commands.pyo", line 661, in run_argv_aliases
  File "bzrlib\commands.pyo", line 665, in run_direct
  File "bzrlib\cleanup.pyo", line 122, in run_simple
  File "bzrlib\cleanup.pyo", line 156, in _do_with_cleanups
  File "C:/Program Files (x86)/Bazaar/plugins\qbzr\lib\commands.py", line 788, in run
  File "C:/Program Files (x86)/Bazaar/plugins\qbzr\lib\subprocess.py", line 789, in run_subprocess_command
  File "bzrlib\commands.pyo", line 1055, in run_bzr
  File "bzrlib\commands.pyo", line 661, in run_argv_aliases
  File "bzrlib\commands.pyo", line 665, in run_direct
  File "bzrlib\cleanup.pyo", line 122, in run_simple
  File "bzrlib\cleanup.pyo", line 156, in _do_with_cleanups
  File "bzrlib\builtins.pyo", line 1307, in run
  File "bzrlib\bzrdir.pyo", line 956, in open_tree_or_branch
  File "bzrlib\bzrdir.pyo", line 841, in open
  File "bzrlib\bzrdir.pyo", line 871, in open_from_transport
  File "bzrlib\lazy_import.pyo", line 125, in __call__
  File "bzrlib\transport\__init__.pyo", line 1648, in do_catching_redirections
  File "bzrlib\bzrdir.pyo", line 858, in find_format
  File "bzrlib\bzrdir.pyo", line 1818, in find_format
  File "C:/Program Files (x86)/Bazaar/plugins\svn\format.py", line 102, in probe_transport
  File "C:/Program Files (x86)/Bazaar/plugins\svn\transport.py", line 142, in get_svn_ra_transport
  File "C:/Program Files (x86)/Bazaar/plugins\svn\transport.py", line 89, in dav_options
  File "bzrlib\transport\http\_urllib.pyo", line 79, in _perform
  File "urllib2.pyo", line 387, in open
  File "bzrlib\transport\http\_urllib2_wrappers.pyo", line 1561, in http_response
  File "urllib2.pyo", line 419, in error
  File "urllib2.pyo", line 360, in _call_chain
  File "bzrlib\transport\http\_urllib2_wrappers.pyo", line 1472, in http_error_401
  File "bzrlib\transport\http\_urllib2_wrappers.pyo", line 1114, in auth_required
  File "urllib2.pyo", line 387, in open
  File "bzrlib\transport\http\_urllib2_wrappers.pyo", line 1561, in http_response
  File "urllib2.pyo", line 419, in error
  File "urllib2.pyo", line 360, in _call_chain
  File "bzrlib\transport\http\_urllib2_wrappers.pyo", line 837, in http_error_302
  File "urllib2.pyo", line 387, in open
  File "bzrlib\transport\http\_urllib2_wrappers.pyo", line 1561, in http_response
  File "urllib2.pyo", line 419, in error
  File "urllib2.pyo", line 360, in _call_chain
  File "bzrlib\transport\http\_urllib2_wrappers.pyo", line 1472, in http_error_401
  File "bzrlib\transport\http\_urllib2_wrappers.pyo", line 1084, in auth_required
  File "bzrlib\transport\http\_urllib2_wrappers.pyo", line 1322, in auth_match
  File "bzrlib\transport\http\_urllib2_wrappers.pyo", line 1185, in get_user_password
KeyError: 'port'

bzr 2.1.2 on python 2.5.4 (Windows-Vista-6.1.7600)
arguments: ['C:\\Program Files (x86)\\Bazaar\\bzr.exe', 'qsubprocess', '--bencode', 'l8:checkout39:http+urllib://81.0.246.171/nameee/trunk27:C:\\Web\\Data\\nm\\bazaar\\trunke']
encoding: 'cp1250', fsenc: 'mbcs', lang: None
plugins:
  bzrtools C:\Program Files (x86)\Bazaar\plugins\bzrtools [2.1.0]
  explorer C:\Program Files (x86)\Bazaar\plugins\explorer [1.0.0rc1]
  launchpad C:\Program Files (x86)\Bazaar\plugins\launchpad [2.1.2]
  netrc_credential_store C:\Program Files (x86)\Bazaar\plugins\netrc_credential_store [2.1.2]
  qbzr C:\Program Files (x86)\Bazaar\plugins\qbzr [0.18.6]
  rebase C:\Program Files (x86)\Bazaar\plugins\rebase [0.5.5]
  svn C:\Program Files (x86)\Bazaar\plugins\svn [1.0.2]
  upload C:\Program Files (x86)\Bazaar\plugins\upload [1.0.0dev]
  xmloutput C:\Program Files (x86)\Bazaar\plugins\xmloutput [0.8.6]

*** Bazaar has encountered an internal error. This probably indicates a
    bug in Bazaar. You can help us fix it by filing a bug report at
        https://bugs.launchpad.net/bzr/+filebug
    including this traceback and a description of the problem.

-----------------

Bazaar (bzr) 2.1.2
  Python interpreter: C:\Program Files (x86)\Bazaar\python25.dll 2.5.4
  Python standard library: C:\Program Files (x86)\Bazaar\lib\library.zip
  Platform: Windows-Vista-6.1.7600
  bzrlib: C:\Program Files (x86)\Bazaar\lib\library.zip\bzrlib
  Bazaar configuration: C:\Users\pog\AppData\Roaming\bazaar\2.0
  Bazaar log file: C:\Users\pog\Documents\.bzr.log

Copyright 2005-2010 Canonical Ltd.
http://bazaar-vcs.org/

bzr comes with ABSOLUTELY NO WARRANTY. bzr is free software, and
you may use, modify and redistribute it under the terms of the GNU
General Public License version 2 or later.

Bazaar is part of the GNU Project to produce a free operating system.

Related branches

Martin Pool (mbp)
Changed in bzr:
assignee: nobody → Martin Pool (mbp)
importance: Undecided → Medium
status: New → In Progress
Vincent Ladeuil (vila)
Changed in bzr:
milestone: none → 2.3b3
status: In Progress → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Duplicates of this bug

Other bug subscribers

Remote bug watches

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