$ brz fast-import debian.fi ../xtables-addons/debian
brz: ERROR: TypeError: startswith first arg must be bytes or a tuple of bytes, not str
Traceback (most recent call last):
File "/usr/local/lib/python3.7/dist-packages/breezy/commands.py", line 1016, in exception_to_return_code
return the_callable(*args, **kwargs)
File "/usr/local/lib/python3.7/dist-packages/breezy/commands.py", line 1202, in run_bzr
ret = run(*run_argv)
File "/usr/local/lib/python3.7/dist-packages/breezy/commands.py", line 759, in run_argv_aliases
return self.run(**all_cmd_args)
File "/usr/local/lib/python3.7/dist-packages/breezy/commands.py", line 784, in run
return self._operation.run_simple(*args, **kwargs)
File "/usr/local/lib/python3.7/dist-packages/breezy/cleanup.py", line 137, in run_simple
self.cleanups, self.func, *args, **kwargs)
File "/usr/local/lib/python3.7/dist-packages/breezy/cleanup.py", line 166, in _do_with_cleanups
result = func(*args, **kwargs)
File "/usr/local/lib/python3.7/dist-packages/breezy/plugins/fastimport/cmds.py", line 304, in run
info = self._generate_info(source)
File "/usr/local/lib/python3.7/dist-packages/breezy/plugins/fastimport/cmds.py", line 336, in _generate_info
return_code = proc.process(p.iter_commands)
File "/usr/lib/python3/dist-packages/fastimport/processor.py", line 75, in process
self._process(command_iter)
File "/usr/lib/python3/dist-packages/fastimport/processor.py", line 87, in _process
handler(self, cmd)
File "/usr/lib/python3/dist-packages/fastimport/processors/info_processor.py", line 241, in reset_handler
if cmd.ref.startswith('refs/tags/'):
TypeError: startswith first arg must be bytes or a tuple of bytes, not str
Heh, turns out it doesn't work under Python3 either, though naturally the specific error is different. This is what I'm encountering
...
$ git fast-export --tag-of- filtered- object= rewrite --signed-tags=strip --all > debian.fi
$ brz fast-import debian.fi ../xtables- addons/ debian
brz: ERROR: TypeError: startswith first arg must be bytes or a tuple of bytes, not str
Traceback (most recent call last): lib/python3. 7/dist- packages/ breezy/ commands. py", line 1016, in exception_ to_return_ code lib/python3. 7/dist- packages/ breezy/ commands. py", line 1202, in run_bzr lib/python3. 7/dist- packages/ breezy/ commands. py", line 759, in run_argv_aliases **all_cmd_ args) lib/python3. 7/dist- packages/ breezy/ commands. py", line 784, in run .run_simple( *args, **kwargs) lib/python3. 7/dist- packages/ breezy/ cleanup. py", line 137, in run_simple lib/python3. 7/dist- packages/ breezy/ cleanup. py", line 166, in _do_with_cleanups lib/python3. 7/dist- packages/ breezy/ plugins/ fastimport/ cmds.py" , line 304, in run info(source) lib/python3. 7/dist- packages/ breezy/ plugins/ fastimport/ cmds.py" , line 336, in _generate_info p.iter_ commands) python3/ dist-packages/ fastimport/ processor. py", line 75, in process _process( command_ iter) python3/ dist-packages/ fastimport/ processor. py", line 87, in _process python3/ dist-packages/ fastimport/ processors/ info_processor. py", line 241, in reset_handler startswith( 'refs/tags/ '):
File "/usr/local/
return the_callable(*args, **kwargs)
File "/usr/local/
ret = run(*run_argv)
File "/usr/local/
return self.run(
File "/usr/local/
return self._operation
File "/usr/local/
self.cleanups, self.func, *args, **kwargs)
File "/usr/local/
result = func(*args, **kwargs)
File "/usr/local/
info = self._generate_
File "/usr/local/
return_code = proc.process(
File "/usr/lib/
self.
File "/usr/lib/
handler(self, cmd)
File "/usr/lib/
if cmd.ref.
TypeError: startswith first arg must be bytes or a tuple of bytes, not str
...
Breezy (brz) 3.0.2 3.0-23- generic- x86_64- with-Ubuntu- 19.10-eoan
Python interpreter: /usr/bin/python3.7 3.7.5
Python standard library: /usr/lib/python3.7
Platform: Linux-5.