revno 407 emits a lot of tracebacks to the console

Bug #517040 reported by Alexander Belchenko
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Bazaar Explorer
Fix Released
Medium
Ian Clatworthy

Bug Description

  File "xml\etree\ElementTree.pyo", line 587, in parse
  File "xml\etree\ElementTree.pyo", line 1254, in close
ExpatError: no element found: line 1, column 0

bzr 2.1.0rc1 on python 2.5.4 (Windows-XP-5.1.2600-SP3)
arguments: ['C:\\Program Files\\Bazaar\\bzr.EXE', 'explore']
encoding: 'cp1251', fsenc: 'mbcs', lang: None
plugins:
  acad C:\work\Bazaar\plugins\acad [0.8.0]
  bzrtools C:\Program Files\Bazaar\plugins\bzrtools [2.1.0b1]
  colo C:\work\Bazaar\plugins\colo [0.0.2dev]
  explorer C:\work\Bazaar\plugins\explorer [1.0.0dev]
  fastimport C:\work\Bazaar\plugins\fastimport [0.9.0dev]
  format1 C:\work\Bazaar\plugins\format1 [unknown]
  launchpad C:\Program Files\Bazaar\plugins\launchpad [2.1.0rc1]
  qbzr C:\work\Bazaar\plugins\qbzr [0.18.0]
  rebase C:\Program Files\Bazaar\plugins\rebase [0.5.5]
  scmproj C:\work\Bazaar\plugins\scmproj [0.5.2dev]
  svn C:\work\Bazaar\plugins\svn [1.0.2dev]
  upload C:\work\Bazaar\plugins\upload [1.0.0dev]
  x_bit C:\work\Bazaar\plugins\x_bit [1.0.0]

*** 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.
bzr: ERROR: xml.parsers.expat.ExpatError: no element found: line 1, column 0

Traceback (most recent call last):
  File "C:\work\Bazaar\plugins\explorer\lib\extensions\tools.py", line 136, in load
  File "xml\etree\ElementTree.pyo", line 546, in __init__
  File "xml\etree\ElementTree.pyo", line 587, in parse
  File "xml\etree\ElementTree.pyo", line 1254, in close
ExpatError: no element found: line 1, column 0

bzr 2.1.0rc1 on python 2.5.4 (Windows-XP-5.1.2600-SP3)
arguments: ['C:\\Program Files\\Bazaar\\bzr.EXE', 'explore']
encoding: 'cp1251', fsenc: 'mbcs', lang: None
plugins:
  acad C:\work\Bazaar\plugins\acad [0.8.0]
  bzrtools C:\Program Files\Bazaar\plugins\bzrtools [2.1.0b1]
  colo C:\work\Bazaar\plugins\colo [0.0.2dev]
  explorer C:\work\Bazaar\plugins\explorer [1.0.0dev]
  fastimport C:\work\Bazaar\plugins\fastimport [0.9.0dev]
  format1 C:\work\Bazaar\plugins\format1 [unknown]
  launchpad C:\Program Files\Bazaar\plugins\launchpad [2.1.0rc1]
  qbzr C:\work\Bazaar\plugins\qbzr [0.18.0]
  rebase C:\Program Files\Bazaar\plugins\rebase [0.5.5]
  scmproj C:\work\Bazaar\plugins\scmproj [0.5.2dev]
  svn C:\work\Bazaar\plugins\svn [1.0.2dev]
  upload C:\work\Bazaar\plugins\upload [1.0.0dev]
  x_bit C:\work\Bazaar\plugins\x_bit [1.0.0]

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

Related branches

Revision history for this message
Alexander Belchenko (bialix) wrote :

after I delete tools.xml in explorer directory I have unicode error again:

C:\work\Bazaar\plugins\explorer>bzr explore
bzr: ERROR: exceptions.UnicodeEncodeError: 'ascii' codec can't encode characters in position 15-17: ordinal not in range(128)

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:\work\Bazaar\plugins\explorer\lib\commands.py", line 137, in run
  File "C:\work\Bazaar\plugins\explorer\lib\explorer.py", line 162, in __init__
  File "C:\work\Bazaar\plugins\explorer\lib\extensions\accessories.py", line 149, in __init__
  File "C:\work\Bazaar\plugins\explorer\lib\extensions\accessories.py", line 218, in reset
  File "C:\work\Bazaar\plugins\explorer\lib\extensions\accessories.py", line 304, in __init__
  File "C:\work\Bazaar\plugins\explorer\lib\extensions\accessories.py", line 325, in _create_missing_content
  File "C:\work\Bazaar\plugins\explorer\lib\extensions\accessories.py", line 340, in _create_content_if_missing
  File "C:\work\Bazaar\plugins\explorer\lib\extensions\accessories.py", line 347, in _write_content
UnicodeEncodeError: 'ascii' codec can't encode characters in position 15-17: ordinal not in range(128)

bzr 2.1.0rc1 on python 2.5.4 (Windows-XP-5.1.2600-SP3)
arguments: ['C:\\Program Files\\Bazaar\\bzr.EXE', 'explore']
encoding: 'cp1251', fsenc: 'mbcs', lang: None
plugins:
  acad C:\work\Bazaar\plugins\acad [0.8.0]
  bzrtools C:\Program Files\Bazaar\plugins\bzrtools [2.1.0b1]
  colo C:\work\Bazaar\plugins\colo [0.0.2dev]
  explorer C:\work\Bazaar\plugins\explorer [1.0.0dev]
  fastimport C:\work\Bazaar\plugins\fastimport [0.9.0dev]
  format1 C:\work\Bazaar\plugins\format1 [unknown]
  launchpad C:\Program Files\Bazaar\plugins\launchpad [2.1.0rc1]
  qbzr C:\work\Bazaar\plugins\qbzr [0.18.0]
  rebase C:\Program Files\Bazaar\plugins\rebase [0.5.5]
  scmproj C:\work\Bazaar\plugins\scmproj [0.5.2dev]
  svn C:\work\Bazaar\plugins\svn [1.0.2dev]
  upload C:\work\Bazaar\plugins\upload [1.0.0dev]
  x_bit C:\work\Bazaar\plugins\x_bit [1.0.0]

*** 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
Alexander Belchenko (bialix) wrote :

if I set LANG=C I can force explorer to run again without triggering of unicode error, but traceback from element tree still there, regardless of presence tools.xml.

Revision history for this message
Alexander Belchenko (bialix) wrote :

traceback from element tree was caused by empty toolbars.xml. After I've removed it no more traceback is seen.

Revision history for this message
Ian Clatworthy (ian-clatworthy) wrote :

Problems parsing xml files aren't dumped to the console anymore unless -Derror is given. bzr.log has the details still.

Changed in bzr-explorer:
assignee: nobody → Ian Clatworthy (ian-clatworthy)
importance: Undecided → Medium
milestone: none → 1.0.0beta
status: New → Fix Released
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.