Import error in - fastimport.helpers

Bug #1295833 reported by Ching on 2014-03-21
This bug affects 8 people
Affects Status Importance Assigned to Milestone
Bazaar Fast Import
Jelmer Vernooij
bzr-fastimport (Ubuntu)
Barry Warsaw

Bug Description

When exporting bzr using fastimport, I have discovered an error:
bzr: ERROR: exceptions.ImportError: cannot import name binary_stream

Traceback (most recent call last):
  File "/usr/lib/python2.7/site-packages/bzrlib/", line 930, in exception_to_return_code
    return the_callable(*args, **kwargs)
  File "/usr/lib/python2.7/site-packages/bzrlib/", line 1121, in run_bzr
    ret = run(*run_argv)
  File "/usr/lib/python2.7/site-packages/bzrlib/", line 673, in run_argv_aliases
  File "/usr/lib/python2.7/site-packages/bzrlib/", line 697, in run
    return self._operation.run_simple(*args, **kwargs)
  File "/usr/lib/python2.7/site-packages/bzrlib/", line 136, in run_simple
    self.cleanups, self.func, *args, **kwargs)
  File "/usr/lib/python2.7/site-packages/bzrlib/", line 166, in _do_with_cleanups
    result = func(*args, **kwargs)
  File "/usr/lib/python2.7/site-packages/bzrlib/plugins/fastimport/", line 679, in run
    from bzrlib.plugins.fastimport import exporter
  File "/usr/lib/python2.7/site-packages/bzrlib/plugins/fastimport/", line 67, in <module>
    from fastimport.helpers import (
ImportError: cannot import name binary_stream

The relivent lines of code are in bzrlib/plugins/fastimport/
from fastimport.helpers import (

binary_stream and single_pural where removed from lb:python-fastimport in revition 327. Relevint commit message:
revno: 327
committer: Jelmer Vernooij <email address hidden>
timestamp: Sat 2014-03-01 15:26:41 +0000
  Remove unused helper

This makes it imposible for me to import/export bzr repos to git using git-bzr-ng.

Related branches

Jelmer Vernooij (jelmer) on 2014-03-30
Changed in bzr-fastimport:
status: New → Triaged
status: Triaged → New
Jelmer Vernooij (jelmer) on 2014-05-15
Changed in bzr-fastimport:
status: New → Triaged
importance: Undecided → High
assignee: nobody → Jelmer Vernooij (jelmer)
importance: High → Critical
Changed in bzr-fastimport:
status: Triaged → Fix Committed
Barry Warsaw (barry) wrote :

Any chance we can get a release with the fix for Utopic?

Jelmer Vernooij (jelmer) wrote :

I've added an Ubuntu component. Note that bzr-fastimport is no longer present in Debian, so it's no longer getting any updates that way.

Changed in bzr-fastimport (Ubuntu):
status: New → Triaged
importance: Undecided → High
Barry Warsaw (barry) on 2014-10-10
Changed in bzr-fastimport (Ubuntu):
assignee: nobody → Barry Warsaw (barry)
milestone: none → ubuntu-14.10
status: Triaged → In Progress
Barry Warsaw (barry) wrote :

I'm going to upload the new bzr-fastimport to Utopic, but it will also require a new python-fastimport to update the Breaks. python-fastimport is stuck in utopic-proposed because of this, but this should hopefully unjam everything.

Launchpad Janitor (janitor) wrote :

This bug was fixed in the package bzr-fastimport - 0.13.0-4ubuntu1

bzr-fastimport (0.13.0-4ubuntu1) utopic; urgency=medium

  * d/patches/import-binary-stream.patch: Upstream patch to fixes an
    import error due bzr helpers removed from python-fastimport.
    (LP: #1295833)
 -- Barry Warsaw <email address hidden> Fri, 10 Oct 2014 11:05:03 -0400

Changed in bzr-fastimport (Ubuntu):
status: In Progress → Fix Released
Marcos Cardinot (cardinot) wrote :

This bug seems to be back.
- Fedora 25
- bzr-fastimport-0.13.0-8.fc25.noarch

Jelmer Vernooij (jelmer) wrote :

It's not back, but you need a bzr-fastimport snapshot to get the fix. 0.13.0 is too old.

Jelmer Vernooij (jelmer) on 2018-10-25
Changed in bzr-fastimport:
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  Edit
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.