Comment 1 for bug 1854607

Revision history for this message
Peter J. Mello (roguescholar) wrote : Re: [fastimport 3.0.2] AttributeError: 'NoneType' object has no attribute '_transport'

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):
  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

...

Breezy (brz) 3.0.2
Python interpreter: /usr/bin/python3.7 3.7.5
Python standard library: /usr/lib/python3.7
Platform: Linux-5.3.0-23-generic-x86_64-with-Ubuntu-19.10-eoan