brz error while creating package

Bug #1887578 reported by Andreas Buslehner
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Breezy
Invalid
Undecided
Unassigned

Bug Description

I got an error while creating a new package, e.g when I following the package guide (https://packaging.ubuntu.com/html/packaging-new-software.html ).

First of all, I am using an Ubuntu 20.04 system and therefore had to upgrade to breezy-3.1 (python3-breezy.tests_3.1.0-4_all.deb) due to this bug:

    https://bugs.launchpad.net/brz/+bug/1881287

I downloaded breezy using the "pull-debs breezy comand" and had additional to dl

I installed the packages w/o problems:

    sudo apt install ./brz_3.1.0-4_all.deb\
                     ./dh-make_2.202001_all.deb\
                     ./bzr-builddeb_2.8.12+brz_all.deb\
                     ./python3-breezy_3.1.0-4_amd64.deb

When I try to create a package-tar-ball e.g.

    bzr dh-make hello 2.10 hello-2.10.tar.gz

I get the following error:

```

bzr dh-make hello 2.10 hello-2.10.tar.gz
Fetching tarball
Looking for a way to retrieve the upstream tarball
Upstream tarball already exists in build directory, using that
brz: ERROR: TypeError: can only concatenate str (not "bytes") to str

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/breezy/commands.py", line 1022, in exception_to_return_code
    return the_callable(*args, **kwargs)
  File "/usr/lib/python3/dist-packages/breezy/commands.py", line 1208, in run_bzr
    ret = run(*run_argv)
  File "/usr/lib/python3/dist-packages/breezy/commands.py", line 762, in run_argv_aliases
    return self.run(**all_cmd_args)
  File "/usr/lib/python3/dist-packages/breezy/commands.py", line 787, in run
    return class_run(*args, **kwargs)
  File "/usr/lib/python3/dist-packages/breezy/plugins/debian/cmds.py", line 1385, in run
    tree = dh_make.import_upstream(
  File "/usr/lib/python3/dist-packages/breezy/plugins/debian/dh_make.py", line 94, in import_upstream
    db.import_upstream_tarballs(
  File "/usr/lib/python3/dist-packages/breezy/plugins/debian/import_dsc.py", line 910, in import_upstream_tarballs
    return self.import_upstream(
  File "/usr/lib/python3/dist-packages/breezy/plugins/debian/import_dsc.py", line 881, in import_upstream
    (tag, revid) = self.pristine_upstream_source.import_component_tarball(
  File "/usr/lib/python3/dist-packages/breezy/plugins/debian/upstream/pristinetar.py", line 444, in import_component_tarball
    tag_name = self.tag_name(version, component=component)
  File "/usr/lib/python3/dist-packages/breezy/plugins/debian/upstream/pristinetar.py", line 326, in tag_name
    name = "upstream-" + version
TypeError: can only concatenate str (not "bytes") to str

You can report this problem to Bazaar's developers by running
    apport-bug /var/crash/brz.1000.2020-07-14T21:18.crash
if a bug-reporting window does not automatically appear.

```

It seems that the hello directory is correctly, but there is no debian directory inside hello! Further a tar ball "hello_b'2.10'.orig.tar.gz" was created.

Tags: bzr dh-make
description: updated
description: updated
description: updated
Revision history for this message
Jelmer Vernooij (jelmer) wrote :

This is fixed in brz-debian, but Ubuntu hasn't imported the new version yet.

Revision history for this message
Jelmer Vernooij (jelmer) wrote :

bzr-builddeb is irrelevant here, you'd need brz-debian if you're using breezy.

Revision history for this message
Andreas Buslehner (abuubu) wrote :

Thank you Jelmer, it works now! I had to install the brz-debian_2.8.39_all.deb package !

Thank you!

Revision history for this message
Andreas Buslehner (abuubu) wrote :

sudo apt install ./brz-debian_2.8.39_all.deb solved the problem! False package.

Thanks to Jelmer Vernooij!!

Changed in brz:
status: New → Invalid
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.