backtrace when running bzr bd --source (--export-upstream=...)

Bug #345747 reported by Steve Langasek
10
Affects Status Importance Assigned to Milestone
bzr-builddeb
Fix Released
High
Unassigned
bzr-builddeb (Ubuntu)
Fix Released
High
Unassigned

Bug Description

Binary package hint: bzr-builddeb

backtrace with current jaunty, seen when trying to build the nspluginwrapper package from the public branch.

$ bzr bd --source
Building using working tree
Running in merge mode
bzr: ERROR: exceptions.AttributeError: 'DebBuildConfig' object has no attribute 'version'

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 367, in run
    export_upstream_revision, config)
  File "/usr/lib/python2.6/dist-packages/bzrlib/plugins/builddeb/cmds.py", line 324, in _get_upstream_branch
    config.export_upstream_revision
  File "/usr/lib/python2.6/dist-packages/bzrlib/plugins/builddeb/config.py", line 273, in _get_export_upstream_revision
    if self.version is not None:
AttributeError: 'DebBuildConfig' object has no attribute 'version'

bzr 1.13rc1 on python 2.6.1 (linux2)
arguments: ['/usr/bin/bzr', 'bd', '--source']
encoding: 'UTF-8', fsenc: 'UTF-8', lang: 'en_US.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]
  email /usr/lib/python2.6/dist-packages/bzrlib/plugins/email [unknown]
  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]
  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.

ProblemType: Bug
Architecture: amd64
DistroRelease: Ubuntu 9.04
Package: bzr-builddeb 2.1.1
PackageArchitecture: all
ProcEnviron:
 PATH=(custom, user)
 LANG=en_US.UTF-8
 SHELL=/bin/bash
SourcePackage: bzr-builddeb
Uname: Linux 2.6.28-9-generic x86_64

Revision history for this message
Steve Langasek (vorlon) wrote :
Philip Muškovac (yofel)
Changed in bzr-builddeb:
status: New → Confirmed
Revision history for this message
Philip Muškovac (yofel) wrote :

Confirmed on x86_64 with the same package version. I get exactly the same error message.

Alexander Sack (asac)
summary: - backtrace when running bzr bd --source
+ backtrace when running bzr bd --source (--export-upstream=...)
James Westby (james-w)
Changed in bzr-builddeb (Ubuntu):
importance: Undecided → High
status: Confirmed → Triaged
Changed in bzr-builddeb:
importance: Undecided → High
status: New → Confirmed
Revision history for this message
Alexander Sack (asac) wrote :

please fix this asap. its really not nice to keep such an important use-case broken for a full cycle :(

Revision history for this message
Alexander Sack (asac) wrote :

bzr branch lp:~network-manager/libmbca/libmbca.ubuntu/
cd libmbca.ubuntu
bzr bd --export-upstream-revision=revid:svn-v3-trunk0:2d35780d-6805-4f47-b25d-4b2871b32c18:trunk:70 --export-upstream=.

Building using working tree
Looking for a way to retrieve the upstream tarball
Using apt to look for the upstream tarball.
apt could not find the needed tarball.
Trying to use get-orig-source to retrieve needed tarball.
make: *** No rule to make target `get-orig-source'. Stop.
Trying to run get-orig-source rule failed
No watch file to use to retrieve upstream tarball.
bzr: ERROR: Unable to find the needed upstream tarball: libmbca_0.0.4+bzr66.orig.tar.gz.

James Westby (james-w)
Changed in bzr-builddeb:
status: Confirmed → Fix Committed
Revision history for this message
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package bzr-builddeb - 2.1.2~ubuntu1

---------------
bzr-builddeb (2.1.2~ubuntu1) jaunty; urgency=low

  * Add --download-version to the uscan command line.
  * Make --export-upstream work again by not trying to use a removed attribute
    in config.py. (LP: #345747)
  * Look in the correct place for the tarball created by get-orig-source.

 -- James Westby <email address hidden> Mon, 09 Mar 2009 09:04:48 +1000

Changed in bzr-builddeb:
status: Triaged → Fix Released
James Westby (james-w)
Changed in bzr-builddeb:
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.