bzr-builddeb fails to import-dsc a package (TypeError)

Bug #364671 reported by Sami Haahtinen
8
This bug affects 1 person
Affects Status Importance Assigned to Milestone
bzr-builddeb
Fix Released
High
Unassigned
bzr-builddeb (Ubuntu)
Fix Released
High
Unassigned

Bug Description

For some reason bzr-builddeb fails to import bcfg2 packages since 0.9.3-1 version. Below are the commands needed to reproduce. Tested with packaged version from ubuntu jaunty: 2.1.2~ubuntu1

ressu@denial:/tmp/bcfg2/ > bzr init .
Created a standalone tree (format: pack-0.92)
ressu@denial:/tmp/bcfg2/ > bzr import-dsc http://ftp.debian.org/debian/pool/main/b/bcfg2/bcfg2_0.9.5.7-1.1.dsc
bzr: ERROR: exceptions.TypeError: coercing to Unicode: need string or buffer, NoneType found

Traceback (most recent call last):
  File "/usr/lib/python2.6/dist-packages/bzrlib/commands.py", line 716, in exception_to_return_code
    return the_callable(*args, **kwargs)
  File "/usr/lib/python2.6/dist-packages/bzrlib/commands.py", line 911, in run_bzr
    ret = run(*run_argv)
  File "/usr/lib/python2.6/dist-packages/bzrlib/commands.py", line 547, in run_argv_aliases
    return self.run(**all_cmd_args)
  File "/usr/lib/python2.6/dist-packages/bzrlib/plugins/builddeb/cmds.py", line 717, in run
    self.import_many(db, files_list, orig_target)
  File "/usr/lib/python2.6/dist-packages/bzrlib/plugins/builddeb/cmds.py", line 660, in import_many
    db.import_package(os.path.join(orig_target, filename))
  File "/usr/lib/python2.6/dist-packages/bzrlib/plugins/builddeb/import_dsc.py", line 2043, in import_package
    upstream_tarball=upstream_tarball)
  File "/usr/lib/python2.6/dist-packages/bzrlib/plugins/builddeb/import_dsc.py", line 1936, in _do_import_package
    upstream_tarball=upstream_tarball)
  File "/usr/lib/python2.6/dist-packages/bzrlib/plugins/builddeb/import_dsc.py", line 1635, in import_upstream
    upstream_tarball)
  File "/usr/lib/python2.6/dist-packages/bzrlib/plugins/builddeb/import_dsc.py", line 2209, in make_pristine_tar_delta
    export(tree, dest, format='dir')
  File "/usr/lib/python2.6/dist-packages/bzrlib/export/__init__.py", line 100, in export
    return _exporters[format](tree, dest, root, subdir)
  File "/usr/lib/python2.6/dist-packages/bzrlib/export/__init__.py", line 61, in _loader
    return func(tree, dest, root, subdir)
  File "/usr/lib/python2.6/dist-packages/bzrlib/export/dir_exporter.py", line 53, in dir_exporter
    os.symlink(ie.symlink_target, fullpath)
TypeError: coercing to Unicode: need string or buffer, NoneType found

bzr 1.13.1 on python 2.6.2 (linux2)
arguments: ['/usr/bin/bzr', 'import-dsc', 'http://ftp.debian.org/debian/pool/main/b/bcfg2/bcfg2_0.9.5.7-1.1.dsc']
encoding: 'UTF-8', fsenc: 'UTF-8', lang: 'fi_FI.UTF-8'
plugins:
  builddeb /usr/lib/python2.6/dist-packages/bzrlib/plugins/builddeb [unknown]
  bzrtools /usr/lib/python2.6/dist-packages/bzrlib/plugins/bzrtools [1.13]
  gtk /usr/lib/python2.6/dist-packages/bzrlib/plugins/gtk [0.96.0.dev.1]
  launchpad /usr/lib/python2.6/dist-packages/bzrlib/plugins/launchpad [unknown]
  netrc_credential_store /usr/lib/python2.6/dist-packages/bzrlib/plugins/netrc_credential_store [unknown]
  rebase /usr/lib/python2.6/dist-packages/bzrlib/plugins/rebase [0.4.4]
  search /usr/lib/python2.6/dist-packages/bzrlib/plugins/search [1.7dev]
  stats /usr/lib/python2.6/dist-packages/bzrlib/plugins/stats [unknown]
  svn /usr/lib/python2.6/dist-packages/bzrlib/plugins/svn [0.5.3]
*** Bazaar has encountered an internal error.
    Please report a bug at https://bugs.launchpad.net/bzr/+filebug
    including this traceback, and a description of what you
    were doing when the error occurred.

Revision history for this message
James Westby (james-w) wrote : Re: [Bug 364671] [NEW] bzr-builddeb fails to import-dsc a package (TypeError)

On Tue, 2009-04-21 at 15:07 +0000, Sami Haahtinen wrote:
> Public bug reported:
>
> For some reason bzr-builddeb fails to import bcfg2 packages since
> 0.9.3-1 version. Below are the commands needed to reproduce. Tested with
> packaged version from ubuntu jaunty: 2.1.2~ubuntu1

> TypeError: coercing to Unicode: need string or buffer, NoneType found

Hmm, I think I know why this is, but I thought that it was fixed. I'll
investigate.

Thanks,

James

Revision history for this message
Nick Moffitt (nick-moffitt) wrote :

I've encountered this same bug in Jaunty (2.1.2~ubuntu1) when trying to import-dsc http://zork.net/pub/yardbird/debs/iotower_0.1~acbb.dsc

The same problem occurs when I try to merge-upstream the .orig.tar.gz manually first.

James Westby (james-w)
Changed in bzr-builddeb:
importance: Undecided → High
status: New → Triaged
Changed in bzr-builddeb (Ubuntu):
importance: Undecided → High
status: New → Triaged
James Westby (james-w)
Changed in bzr-builddeb:
milestone: none → 2.2
status: Triaged → Fix Committed
James Westby (james-w)
Changed in bzr-builddeb:
status: Fix Committed → Fix Released
Revision history for this message
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package bzr-builddeb - 2.3

---------------
bzr-builddeb (2.3) experimental; urgency=low

  [ James Westby ]
  * Some support for v3 source formats (Closes: #562991)
    - Those that look quite a lot like v1 are supported well.
    - .tar.bz2 tarballs are supported for import, building, merge-upstream,
      etc., but only enabled for the latter with a --v3 switch for now.
    - Multiple orig.tar.gz is not supported.
    - .tar.lzma is not supported awaiting pristine-tar support.
  * New "dh-make" command ("dh_make" alias) that allows you to start
    packaging, either in an empty branch, or based on an upstream branch.
  * Fix merge-package for native packages (LP: #476348)
  * debian/changelog merge hook to reduce the manual conflict resolution
    required there. Thanks to John Arbash Meinel and Andrew Bennetts
    (LP: #501754).
    - Requires newer bzr.
  * Fix merge-package outside a shared repo (LP: #493462)
  * Fix exporting of symlinks (LP: #364671)
  * Add --force option to merge-upstream which may help certain people.
  * Use system configobj if the bzr copy isn't available. Thanks Jelmer.
  * Make merging multiple-root branches work. Thanks Robert Collins.
  * Disentangle from bzrtools. Thanks Max Bowser.

  [ Jelmer Vernooij ]
  * Bump standards version to 3.8.4.
  * Fix formatting in doc-base.
 -- Jelmer Vernooij <email address hidden> Sat, 13 Feb 2010 01:30:21 +0000

Changed in bzr-builddeb (Ubuntu):
status: Triaged → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.