fast-import get internal error on lookup error: unkown encoding: cp65001

Bug #1100113 reported by David Sperry
8
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Bazaar Fast Import
New
Undecided
Unassigned

Bug Description

(Update):"Fixed" it (badly, but made it complete the task at hand) by copying the utf_8.pyo file in lib/library.zip and renaming it cp65001.pyo
Problem appears to be related to pythons lack of aliasing cp65001 to utf_8.
-----------------------------

Attempting conversion of a CVS repository. Successfully created a dumpfile.fi.
Ran >bzr fast-import dumpfile.fi new_bzr.bzr
received error message bzr: ERROR: exceptions.LookupError: unknown encoding: cp65001
and ultimately crashed.

Below is the trace of the second attempt using a smaller subset of the CVS repository hence the
14:44:14 Found 4556 commits already loaded - skipping over these ...
but the the first attempt had the same result.

Following trace resulted:

C:\Users\cvsuser\temp\cvs2svn-tmp>bzr fast-import dumpfile.fi new_bzr.bzr
bzr: warning: unknown terminal encoding cp65001.
  Using encoding cp1252 instead.
bzr: warning: unknown terminal encoding cp65001.
  Using encoding cp1252 instead.
14:44:13 Starting import of 2758 commits ...
14:44:14 Found 4556 commits already loaded - skipping over these ...
14:44:50 Updating branch information ...
bzr: ERROR: exceptions.LookupError: unknown encoding: cp65001

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:/Bazaar/plugins\fastimport\cmds.py", line 312, in run
  File "C:/Bazaar/plugins\fastimport\cmds.py", line 42, in _run
  File "C:/Bazaar/plugins\fastimport\processors\generic_processor.py", line 310,
 in process
  File "fastimport\processor.pyo", line 79, in _process
  File "C:/Bazaar/plugins\fastimport\processors\generic_processor.py", line 351,
 in post_process
  File "C:/Bazaar/plugins\fastimport\branch_updater.py", line 59, in update
  File "C:/Bazaar/plugins\fastimport\branch_updater.py", line 117, in _get_match
ing_branches
  File "C:/Bazaar/plugins\fastimport\branch_updater.py", line 145, in make_branc
h
  File "bzrlib\controldir.pyo", line 646, in create_branch_convenience
  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 2568, in _build_tree
  File "bzrlib\progress.pyo", line 248, in next_phase
  File "bzrlib\progress.pyo", line 122, in update
  File "bzrlib\ui\text.pyo", line 374, in _progress_updated
  File "bzrlib\ui\text.pyo", line 561, in show_progress
  File "bzrlib\ui\text.pyo", line 543, in _repaint
  File "bzrlib\ui\text.pyo", line 441, in _show_line
LookupError: unknown encoding: cp65001

bzr 2.5.1 on python 2.6.6 (Windows-7-6.1.7601-SP1)
arguments: ['bzr', 'fast-import', 'dumpfile.fi', 'vega_bzr.bzr']
plugins: bzrtools[2.5.0], changelog_merge[2.5.1], colo[0.4.0],
    cvsps_import[unknown], explorer[1.3.0], 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: '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.

David Sperry (dsperry)
description: updated
David Sperry (dsperry)
affects: bzr → bzr-fastimport
description: updated
David Sperry (dsperry)
summary: - fast-import crashes on lookup error cp65001
+ fast-import get internal error on lookup error: unkown encoding:
+ cp65001
David Sperry (dsperry)
information type: Public → Private
David Sperry (dsperry)
description: updated
David Sperry (dsperry)
information type: Private → Public
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.