'Password: ' not a unicode string error

Bug #1029832 reported by Ian Newson on 2012-07-27
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
bzr-wincrypt
Undecided
Unassigned

Bug Description

The following error occurs when attempting to use a fresh checkout with 2.5.1 and Python 2.6.6:

bzr: ERROR: exceptions.ValueError: prompt 'Password: ' not a unicode string

Traceback (most recent call last):
  File "bzrlib\commands.pyo", line 920, in exception_to_return_code
  File "bzrlib\commands.pyo", line 1131, in run_bzr
  File "bzrlib\commands.pyo", line 673, in run_argv_aliases
  File "bzrlib\commands.pyo", line 695, in run
  File "bzrlib\cleanup.pyo", line 136, in run_simple
  File "bzrlib\cleanup.pyo", line 166, in _do_with_cleanups
  File "C:/Program Files (x86)/Bazaar/plugins\wincrypt_credential_store\__init__
.py", line 125, in run
  File "bzrlib\ui\text.pyo", line 249, in get_password
  File "bzrlib\ui\text.pyo", line 323, in prompt
ValueError: prompt 'Password: ' not a unicode string

I have fixed this error by changing line 125 in __init__.py from:

password = ui.ui_factory.get_password('Password')

to

password = ui.ui_factory.get_password(u'Password')

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

Other bug subscribers