brz fast-export fails with TypeError: write() argument must be str, not bytes
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Breezy |
Fix Released
|
High
|
Jelmer Vernooij |
Bug Description
Thank you for maintaining the Breezy!
I'm working on converting on many Bazaar repositories to Git and wanted to give a try to brz replacing bzr [1], but it failed quickly in brz fast-export:
root@cc-daily:~# brz fast-export lp:anna > /dev/null
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".
16:03:43 Calculating the revisions to include ...
16:03:44 Starting export of 1491 revisions ...
brz: ERROR: TypeError: write() argument must be str, not bytes
Traceback (most recent call last):
File "/usr/lib/
return the_callable(*args, **kwargs)
File "/usr/lib/
ret = run(*run_argv)
File "/usr/lib/
return self.run(
File "/usr/lib/
return self._operation
File "/usr/lib/
self.cleanups, self.func, *args, **kwargs)
File "/usr/lib/
result = func(*args, **kwargs)
File "/usr/lib/
return exporter.run()
File "/usr/lib/
self.
File "/usr/lib/
self.
File "/usr/lib/
self.
TypeError: write() argument must be str, not bytes
brz version: 3.0.0~bzr7192-
[1] https:/
Related branches
- Martin Packman: Approve
-
Diff: 33 lines (+8/-6)2 files modifiedbreezy/plugins/fastimport/cmds.py (+7/-5)
breezy/plugins/fastimport/exporter.py (+1/-1)
Changed in brz: | |
status: | New → Fix Committed |
importance: | Undecided → High |
assignee: | nobody → Jelmer Vernooij (jelmer) |
milestone: | none → 3.0.0 |
Changed in brz: | |
status: | Fix Committed → Fix Released |
On Mon, Nov 26, 2018 at 04:07:05PM -0000, Balint Reczey wrote:
> Public bug reported:
>
> Thank you for maintaining the Breezy!
>
> I'm working on converting on many Bazaar repositories to Git and wanted
> to give a try to brz replacing bzr [1], but it failed quickly in brz
> fast-export:
Thanks for the bug report. This should be a simple thing to fix. In
the mean time, you can specify /dev/stdout explicitly to work around
it:
$ brz fast-export lp:anna /dev/stdout
-- /www.jelmer. uk/D729A457. asc
Jelmer Vernooij <email address hidden>
PGP Key: https:/