UnicodeEncodeError: 'ascii' codec can't encode characters in position 34-43: ordinal not in range(128)

Bug #1009512 reported by Stas Fomin
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Bazaar
New
Undecided
Unassigned

Bug Description

zr 2.5.0 on python 2.6.6 (Windows-7-6.1.7601-SP1)
rguments: ['c:\\app\\bzr25\\bzr.EXE', 'clone', 'lp:ubiquity']
lugins: bzrtools[2.5.0], changelog_merge[2.5.0], colo[0.4.0],
   explorer[1.2.2], fastimport[0.14.0dev], git[0.6.7], launchpad[2.5.0],
   loom[2.3.0dev], netrc_credential_store[2.5.0], news_merge[2.5.0],
   pipeline[1.4.0], qbzr[0.22.1], rewrite[0.6.4dev], svn[1.2.1],
   upload[1.2.0dev], xmloutput[0.8.8]
ncoding: 'cp1251', fsenc: 'mbcs', lang: None

** 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.

Wed 2012-06-06 17:12:32 +0400
0.069 bazaar version: 2.5.0
0.070 bzr arguments: [u'clone', u'lp:ubiquity']
0.071 looking for plugins in C:/Users/stasbook2740/AppData/Roaming/bazaar/2.0/plugins
0.071 looking for plugins in C:/app/bzr25/plugins
0.115 encoding stdout as sys.stdout encoding 'cp866'
0.198 falling back to default implementation
[ 6720] 2012-06-06 17:12:32.627 INFO: Connected (version 2.0, client Twisted)
0.816 Trying SSH agent key 2B3F86162600F9F3F871022EF1C78937
[ 6720] 2012-06-06 17:12:33.427 INFO: Authentication (publickey) successful!
[ 6720] 2012-06-06 17:12:33.493 INFO: Secsh channel 1 opened.
4.557 creating repository in file:///D:/projects/ubiquity/.bzr/.
4.648 Using fetch logic to copy between RemoteRepository(bzr+ssh://bazaar.launchpad.net/%2Bbranch/ubiquity/.bzr/)(RemoteRepositoryFormat(_network_name='Bazaar repository format 2a (needs bzr 1.16 or later)\n')) and CHKInventoryRepository('file:///D:/projects/ubiquity/.bzr/repository/')(RepositoryFormat2a())
4.649 fetching: <PendingAncestryResult heads:frozenset(['<email address hidden>']) repo:RemoteRepository(bzr+ssh://bazaar.launchpad.net/%2Bbranch/ubiquity/.bzr/)>
164.330 creating branch <bzrlib.branch.BzrBranchFormat7 object at 0x026B0BF0> in file:///D:/projects/ubiquity/
164.344 bzr-colo: setting nick from hook
164.694 created new branch BzrBranch7(file:///D:/projects/ubiquity/)
164.711 opening working tree 'D:/projects/ubiquity'
164.875 Transferred: 50463kB (309.0kB/s r:50462kB w:1kB)
164.875 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 "bzrlib\builtins.pyo", line 1475, in run
  File "bzrlib\bzrdir.pyo", line 366, in sprout
  File "bzrlib\cleanup.pyo", line 132, in run
  File "bzrlib\cleanup.pyo", line 166, in _do_with_cleanups
  File "bzrlib\bzrdir.pyo", line 434, in _sprout
  File "bzrlib\bzrdir.pyo", line 910, in create_workingtree
  File "bzrlib\workingtree_4.pyo", line 1549, in initialize
  File "bzrlib\transform.pyo", line 2536, in build_tree
  File "bzrlib\transform.pyo", line 2591, in _build_tree
  File "bzrlib\progress.pyo", line 116, in update
  File "bzrlib\ui\text.pyo", line 374, in _progress_updated
  File "bzrlib\ui\text.pyo", line 554, in show_progress
  File "bzrlib\ui\text.pyo", line 536, in _repaint
  File "bzrlib\ui\text.pyo", line 440, in _show_line
UnicodeEncodeError: 'ascii' codec can't encode characters in position 34-43: ordinal not in range(128)

164.876 couldn't find apport bug-reporting library: No module named apport
164.889 return code 4

Wed 2012-06-06 17:28:17 +0400
0.082 bazaar version: 2.5.0
0.083 bzr arguments: [u'--version']
0.084 looking for plugins in C:/Users/stasbook2740/AppData/Roaming/bazaar/2.0/plugins
0.084 looking for plugins in C:/app/bzr25/plugins
0.125 encoding stdout as sys.stdout encoding 'cp866'
0.162 Transferred: 0kB (0.0kB/s r:0kB w:0kB)
0.162 return code 0

Wed 2012-06-06 17:28:22 +0400
0.065 bazaar version: 2.5.0
0.065 bzr arguments: [u'--version']
0.066 looking for plugins in C:/Users/stasbook2740/AppData/Roaming/bazaar/2.0/plugins
0.066 looking for plugins in C:/app/bzr25/plugins
0.109 encoding stdout as sys.stdout encoding 'cp866'
0.143 Transferred: 0kB (0.0kB/s r:0kB w:0kB)
0.143 return code 0

Revision history for this message
Martin Packman (gz) wrote :

Thanks for the report, this issue is fixed in bzr 2.5.1 which should have a windows installer available shortly.

Revision history for this message
Stas Fomin (stanislav-fomin) wrote :

>>this issue is fixed in bzr 2.5.1

I am not sure...
bug #966934 marked as fixed, but I still have similar exception on 2.6b1:

--------------------------------------------------------------------------
d:\tmp>bzr clone lp:seminar-assembler
The command 'bzr clone' has been deprecated in bzr 2.4. Please use 'bzr branch' instead.
Connected (version 2.0, client Twisted)
Authentication (publickey) successful!
Secsh channel 1 opened.
bzr: ERROR: exceptions.UnicodeEncodeError: 'ascii' codec can't encode characters in position 34-43:
ordinal not in range(128)

Traceback (most recent call last):
  File "bzrlib\commands.pyo", line 930, in exception_to_return_code
  File "bzrlib\commands.pyo", line 1141, in run_bzr
  File "bzrlib\commands.pyo", line 673, in run_argv_aliases
  File "bzrlib\commands.pyo", line 697, in run
  File "bzrlib\cleanup.pyo", line 136, in run_simple
  File "bzrlib\cleanup.pyo", line 166, in _do_with_cleanups
  File "bzrlib\builtins.pyo", line 1489, in run
  File "bzrlib\bzrdir.pyo", line 366, in sprout
  File "bzrlib\cleanup.pyo", line 132, in run
  File "bzrlib\cleanup.pyo", line 166, in _do_with_cleanups
  File "bzrlib\bzrdir.pyo", line 434, in _sprout
  File "bzrlib\bzrdir.pyo", line 906, in create_workingtree
  File "bzrlib\workingtree_4.pyo", line 1565, in initialize
  File "bzrlib\transform.pyo", line 2535, in build_tree
  File "bzrlib\transform.pyo", line 2590, in _build_tree
  File "bzrlib\progress.pyo", line 116, in update
  File "bzrlib\ui\text.pyo", line 374, in _progress_updated
  File "bzrlib\ui\text.pyo", line 554, in show_progress
  File "bzrlib\ui\text.pyo", line 536, in _repaint
  File "bzrlib\ui\text.pyo", line 440, in _show_line
UnicodeEncodeError: 'ascii' codec can't encode characters in position 34-43: ordinal not in range(12
8)

bzr 2.6b1 on python 2.6.6 (Windows-7-6.1.7601-SP1)
arguments: ['bzr', 'clone', 'lp:seminar-assembler']
plugins: bzrtools[2.5.0], changelog_merge[2.6b1], colo[0.4.0],
    explorer[1.3.0dev], fastimport[0.14.0dev], git[0.6.8dev],
    launchpad[2.6b1], loom[2.3.0dev], netrc_credential_store[2.6b1],
    news_merge[2.6b1], pipeline[1.4.0], qbzr[0.23.0dev], rewrite[0.6.4dev],
    svn[1.2.2dev], upload[1.2.0dev], xmloutput[0.8.8]
encoding: 'cp1251', fsenc: 'mbcs', lang: None

*** 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.

Revision history for this message
Stas Fomin (stanislav-fomin) wrote :

Sorry, bzr 2.5.1 OK,
it seems the fix not merged with 2.6 branch.

Revision history for this message
Martin Packman (gz) wrote :

If you look at the main bug 966934, you'll note it says it's fixed in 2.5.1 on the 2.5 branch, and 2.6b2 on trunk. I suggest you use the stable release, or build the latest beta yourself if you want to help us test that.

Revision history for this message
Evgeny Tarasov (tetasoft) wrote :

I am very sorry, but trying 'bzr upgrade' on 2.5.1 in bzr explorer (or anywhere) outputs the problem is still present.
(no-ubuntu)

Run command: bzr upgrade
bzr: ERROR: exceptions.UnicodeEncodeError: 'ascii' codec can't encode characters in position 0-9: ordinal not in range(128)

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/Bazaar/plugins\qbzr\lib\commands.py", line 823, in run
  File "C:/Program Files/Bazaar/plugins\qbzr\lib\subprocess.py", line 920, in run_subprocess_command
  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 "bzrlib\builtins.pyo", line 3818, in run
  File "bzrlib\upgrade.pyo", line 145, in upgrade
  File "bzrlib\upgrade.pyo", line 177, in smart_upgrade
  File "bzrlib\upgrade.pyo", line 206, in _smart_upgrade_one
  File "bzrlib\upgrade.pyo", line 284, in _convert_items
  File "bzrlib\ui\text.pyo", line 314, in note
UnicodeEncodeError: 'ascii' codec can't encode characters in position 0-9: ordinal not in range(128)

bzr 2.5.1 on python 2.6.6 (Windows-7-6.1.7601-SP1)
arguments: ['C:\\Program Files\\Bazaar\\bzr.exe', 'qsubprocess', '--bencode',
    'l7:upgradee']
plugins: bzrtools[2.5.0], changelog_merge[2.5.1], colo[0.4.0],
    explorer[1.2.2], fastimport[0.14.0dev], git[0.6.8], launchpad[2.5.1],
    loom[2.3.0dev], netrc_credential_store[2.5.1], news_merge[2.5.1],
    pipeline[1.4.0], qbzr[0.22.3], rewrite[0.6.4dev], svn[1.2.2],
    upload[1.2.0dev], xmloutput[0.8.8]
encoding: 'cp1251', fsenc: 'mbcs', lang: None

*** 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.

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.