UnicodeEncodeError in trace.mutter called from dir_exporter during bzr builddeb

Bug #496016 reported by Dilomo
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Bazaar
Confirmed
Medium
Unassigned

Bug Description

bzr crashes when I execute the command :

bzr builddeb --split

for the project: https://code.launchpad.net/~ubuntu-new-wave/anton/nw-config

I think it is caused by the Cyrillic chars in the path filename because if I move it to other latin dest it almost builds with the following error of the package not been able to be signed by gpg.

 Traceback (most recent call last):
   File "/usr/lib/python2.6/dist-packages/bzrlib/commands.py", line 842, in exception_to_return_code
     return the_callable(*args, **kwargs)
   File "/usr/lib/python2.6/dist-packages/bzrlib/commands.py", line 1037, in run_bzr
     ret = run(*run_argv)
   File "/usr/lib/python2.6/dist-packages/bzrlib/commands.py", line 654, in run_argv_aliases
     return self.run(**all_cmd_args)
   File "/usr/lib/python2.6/dist-packages/bzrlib/plugins/builddeb/cmds.py", line 415, in run
     builder.export()
   File "/usr/lib/python2.6/dist-packages/bzrlib/plugins/builddeb/builder.py", line 82, in export
     self.distiller.distill(self.target_dir)
   File "/usr/lib/python2.6/dist-packages/bzrlib/plugins/builddeb/source_distiller.py", line 90, in distill
     self._distill(target)
   File "/usr/lib/python2.6/dist-packages/bzrlib/plugins/builddeb/source_distiller.py", line 115, in _distill
     self.upstream_provider.provide(parent_dir)
   File "/usr/lib/python2.6/dist-packages/bzrlib/plugins/builddeb/upstream.py", line 400, in provide
     self.version.upstream_version, self.store_dir)
   File "/usr/lib/python2.6/dist-packages/bzrlib/plugins/builddeb/upstream.py", line 311, in get_specific_version
     return source.get_specific_version(package, version, target_dir)
   File "/usr/lib/python2.6/dist-packages/bzrlib/plugins/builddeb/upstream.py", line 209, in get_specific_version
     export(self.tree, export_dir, format="dir")
   File "/usr/lib/python2.6/dist-packages/bzrlib/export/__init__.py", line 102, in export
     return _exporters[format](tree, dest, root, subdir, filtered=filtered)
   File "/usr/lib/python2.6/dist-packages/bzrlib/export/__init__.py", line 61, in _loader
     return func(tree, dest, root, subdir, filtered=filtered)
   File "/usr/lib/python2.6/dist-packages/bzrlib/export/dir_exporter.py", line 45, in dir_exporter
     mutter('export version %r', tree)
   File "/usr/lib/python2.6/dist-packages/bzrlib/trace.py", line 155, in mutter
     out = fmt % tuple(real_args)
 UnicodeEncodeError: 'ascii' codec can't encode characters in position 28-31: ordinal not in range(128)

Revision history for this message
Dilomo (ankere) wrote :
Revision history for this message
Martin Pool (mbp) wrote :

mutter should probably be defensive and perhaps print a repr of its arguments if it can't actually encode/decode them.

description: updated
summary: - bzr builddeb is not working - exceptions.UnicodeEncodeError
+ UnicodeEncodeError in trace.mutter called from dir_exporter during bzr
+ builddeb
tags: added: easy unicode
Changed in bzr:
status: New → Confirmed
importance: Undecided → Medium
Jelmer Vernooij (jelmer)
tags: added: check-for-breezy
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.