Import error in exporter.py - fastimport.helpers

Bug #1295833 reported by Ching
44
This bug affects 8 people
Affects Status Importance Assigned to Milestone
Bazaar Fast Import
Fix Released
Critical
Jelmer Vernooij
bzr-fastimport (Ubuntu)
Fix Released
High
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/commands.py", line 930, in exception_to_return_code
    return the_callable(*args, **kwargs)
  File "/usr/lib/python2.7/site-packages/bzrlib/commands.py", line 1121, in run_bzr
    ret = run(*run_argv)
  File "/usr/lib/python2.7/site-packages/bzrlib/commands.py", line 673, in run_argv_aliases
    return self.run(**all_cmd_args)
  File "/usr/lib/python2.7/site-packages/bzrlib/commands.py", line 697, in run
    return self._operation.run_simple(*args, **kwargs)
  File "/usr/lib/python2.7/site-packages/bzrlib/cleanup.py", line 136, in run_simple
    self.cleanups, self.func, *args, **kwargs)
  File "/usr/lib/python2.7/site-packages/bzrlib/cleanup.py", line 166, in _do_with_cleanups
    result = func(*args, **kwargs)
  File "/usr/lib/python2.7/site-packages/bzrlib/plugins/fastimport/cmds.py", line 679, in run
    from bzrlib.plugins.fastimport import exporter
  File "/usr/lib/python2.7/site-packages/bzrlib/plugins/fastimport/exporter.py", line 67, in <module>
    from fastimport.helpers import (
ImportError: cannot import name binary_stream

The relivent lines of code are in bzrlib/plugins/fastimport/exporter.py:
from fastimport.helpers import (
    binary_stream,
    single_plural,
    )

Problem:
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
message:
  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)
Changed in bzr-fastimport:
status: New → Triaged
status: Triaged → New
Jelmer Vernooij (jelmer)
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
Revision history for this message
Barry Warsaw (barry) wrote :

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

Revision history for this message
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)
Changed in bzr-fastimport (Ubuntu):
assignee: nobody → Barry Warsaw (barry)
milestone: none → ubuntu-14.10
status: Triaged → In Progress
Revision history for this message
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.

Revision history for this message
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
Revision history for this message
Marcos Cardinot (cardinot) wrote :

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

https://bugzilla.redhat.com/show_bug.cgi?id=1409256

Revision history for this message
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)
Changed in bzr-fastimport:
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  
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.