UnicodeEncodeError: 'ascii' codec can't encode

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

Bug Description

win xp sp3 32 bits spanish

machine has python 2.6, 2.7, 3.2 installed ; 2.7 is the default one

Fresh install bzr-2.6b1-1-setup.exe

Trying to clone https://code.launchpad.net/~cdpedistas/cdpedia/trunk
 got a traceback:

D:\tmp>bzr branch lp:cdpedia
You have not informed bzr of your Launchpad ID, and you must do this to
write to Launchpad or access private data. See "bzr help launchpad-login".
bzr: ERROR: exceptions.UnicodeEncodeError: 'ascii' codec can't encode character
u'\u0301' in position 48: 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 character u'\u0301' in position 4
8: ordinal not in range(128)

bzr 2.6b1 on python 2.6.6 (Windows-XP-5.1.2600-SP3)
arguments: ['bzr', 'branch', 'lp:cdpedia']
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: 'cp1252', 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.

D:\tmp>set path
Path=c:\python27\Scripts;C:\Python27\Lib\site-packages\PyQt4;C:\Tcl\bin;C:\WINDO
WS\system32;C:\WINDOWS;C:\WINDOWS\System32\Wbem;C:\Archivos de programa\ATI Tech
nologies\ATI.ACE\Core-Static;c:\utils;C:\Archivos de programa\Graphviz2.26.3\bin
;C:\utils\grep\bin;C:\Archivos de programa\Subversion\bin;c:\archivos de program
a\bazaar;C:\Archivos de programa\Bazaar

Revision history for this message
ccanepa (ccanepacc) wrote :

Additional data:
The prev command seems to bomb after all the repo ( cdpedia/.bzr) has been writen to disk but before being able to write a single working copy file.

Uninstalled the bzr mentioned in prev post, installed bzr-2.4.2-1-setup(stable).exe, trying to clone gives:

D:\tmp>bzr branch lp:cdpedia
You have not informed bzr of your Launchpad ID, and you must do this to
write to Launchpad or access private data. See "bzr help launchpad-login".
bzr: ERROR: Unable to create symlink 'AUTHORS.txt' on this platform

I know I cloned some time ago another software from
https://code.launchpad.net/~facundo/enjuewemela/trunk

so just to see if some repo could be cloned from this machine now, I try
 D:\tmp>bzr branch lp:enjuewemela
You have not informed bzr of your Launchpad ID, and you must do this to
write to Launchpad or access private data. See "bzr help launchpad-login".
Branched 102 revision(s).

success.

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

Thanks for the report! The fix will be in the next beta release, and the current stable release already has it if you want to use that instead.

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

The issue with the symlink in the lp:cdpedia branch is unrelated, see bug 81689 for that.

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.