graph-ancestry does not create html output

Bug #211104 reported by René Brandenburger
16
This bug affects 1 person
Affects Status Importance Assigned to Milestone
BzrTools
In Progress
Low
Martin Packman

Bug Description

running
bzr graph-ancestry test.html
does not generate output, an error is thrown instead:

bzr: ERROR: exceptions.UnicodeDecodeError: 'ascii' codec can't decode byte 0xc3 in position 21: ordinal not in range(128)

Traceback (most recent call last):
  File "/usr/lib/python2.5/site-packages/bzrlib/commands.py", line 834, in run_bzr_catch_errors
    return run_bzr(argv)
  File "/usr/lib/python2.5/site-packages/bzrlib/commands.py", line 790, in run_bzr
    ret = run(*run_argv)
  File "/usr/lib/python2.5/site-packages/bzrlib/plugins/bzrtools/command.py", line 13, in run_argv_aliases
    commands.Command.run_argv_aliases(self, argv, alias_argv)
  File "/usr/lib/python2.5/site-packages/bzrlib/commands.py", line 492, in run_argv_aliases
    return self.run(**all_cmd_args)
  File "/usr/lib/python2.5/site-packages/bzrlib/plugins/bzrtools/__init__.py", line 148, in run
    max_distance=max_distance)
  File "/usr/lib/python2.5/site-packages/bzrlib/plugins/bzrtools/graph.py", line 319, in write_ancestry_file
    invoke_dot_html(output, filename)
  File "/usr/lib/python2.5/site-packages/bzrlib/plugins/bzrtools/dotgraph.py", line 229, in invoke_dot_html
    status = invoke_dot(dot, temp_file, 'cmapx')
  File "/usr/lib/python2.5/site-packages/bzrlib/plugins/bzrtools/dotgraph.py", line 213, in invoke_dot
    dot_proc.stdin.write(line.encode('utf-8'))
UnicodeDecodeError: 'ascii' codec can't decode byte 0xc3 in position 21: ordinal not in range(128)

bzr 1.3 on python 2.5.2.final.0 (linux2)
arguments: ['/usr/bin/bzr', 'graph-ancestry', 'test.html']
encoding: 'UTF-8', fsenc: 'UTF-8', lang: 'de_LU.UTF-8'
plugins:
  bzrtools /usr/lib/python2.5/site-packages/bzrlib/plugins/bzrtools [1.3.0]
  difftools /home/rbrandenburger/.bazaar/plugins/difftools [unknown]
  gtk /usr/lib/python2.5/site-packages/bzrlib/plugins/gtk [0.93.0]
  launchpad /usr/lib/python2.5/site-packages/bzrlib/plugins/launchpad [unknown]
  xmloutput /home/rbrandenburger/.bazaar/plugins/xmloutput [0.3.0]
*** Bazaar has encountered an internal error.
    Please report a bug at https://bugs.launchpad.net/bzr/+filebug
    including this traceback, and a description of what you
    were doing when the error occurred.
Error: <stdin>:7: syntax error near line 7
/tmp/tmpJ_SNZg/temp.cmapx: No such file or directory

Related branches

Revision history for this message
T.Gerigk (tgerigk) wrote :

Bug still valid for bzrtools 1.5.0 revno 654.

Revision history for this message
m4v (m4v) wrote :

i can confirm in 1.6.0 from intrepid packages

 % bzr graph-ancestry test.html
bzr: ERROR: exceptions.UnicodeDecodeError: 'ascii' codec can't decode byte 0xc3 in position 21: ordinal not in range(128)

Traceback (most recent call last):
  File "/usr/lib/python2.5/site-packages/bzrlib/commands.py", line 857, in run_bzr_catch_errors
    return run_bzr(argv)
  File "/usr/lib/python2.5/site-packages/bzrlib/commands.py", line 797, in run_bzr
    ret = run(*run_argv)
  File "/usr/lib/python2.5/site-packages/bzrlib/plugins/bzrtools/command.py", line 13, in run_argv_aliases
    commands.Command.run_argv_aliases(self, argv, alias_argv)
  File "/usr/lib/python2.5/site-packages/bzrlib/commands.py", line 499, in run_argv_aliases
    return self.run(**all_cmd_args)
  File "/usr/lib/python2.5/site-packages/bzrlib/plugins/bzrtools/__init__.py", line 145, in run
    max_distance=max_distance)
  File "/usr/lib/python2.5/site-packages/bzrlib/plugins/bzrtools/graph.py", line 344, in write_ancestry_file
    invoke_dot_html(output, filename)
  File "/usr/lib/python2.5/site-packages/bzrlib/plugins/bzrtools/dotgraph.py", line 237, in invoke_dot_html
    status = invoke_dot(dot, temp_file, 'cmapx')
  File "/usr/lib/python2.5/site-packages/bzrlib/plugins/bzrtools/dotgraph.py", line 221, in invoke_dot
    dot_proc.stdin.write(line.encode('utf-8'))
UnicodeDecodeError: 'ascii' codec can't decode byte 0xc3 in position 21: ordinal not in range(128)

bzr 1.6.1 on python 2.5.2 (linux2)
arguments: ['/usr/bin/bzr', 'graph-ancestry', 'test.html']
encoding: 'UTF-8', fsenc: 'UTF-8', lang: 'es_ES.UTF-8'
plugins:
  bzrtools /usr/lib/python2.5/site-packages/bzrlib/plugins/bzrtools [1.6.0]
  launchpad /usr/lib/python2.5/site-packages/bzrlib/plugins/launchpad [unknown]
*** Bazaar has encountered an internal error.
    Please report a bug at https://bugs.launchpad.net/bzr/+filebug
    including this traceback, and a description of what you
    were doing when the error occurred.
Error: <stdin>:13: syntax error near line 13
/tmp/tmp8rS3AO/temp.cmapx: No such file or directory

Jelmer Vernooij (jelmer)
Changed in bzrtools:
status: New → Confirmed
Martin Packman (gz)
Changed in bzrtools:
assignee: nobody → Martin Packman (gz)
importance: Undecided → Low
status: Confirmed → In Progress
Revision history for this message
Frédéric Buclin (lpsolit-deactivatedaccount) wrote :

Still a problem in bzrtools 2.5.0. Could we get some traction on this bug, please? graph-ancestry is totally unusable.

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

Duplicates of this bug

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.