seeded-in-ubuntu: TypeError: getBinaries() missing 1 required positional argument: 'arch'

Bug #1862286 reported by Seth Arnold
12
This bug affects 2 people
Affects Status Importance Assigned to Milestone
ubuntu-dev-tools (Ubuntu)
Fix Released
Undecided
Unassigned
Focal
Fix Released
Undecided
Unassigned

Bug Description

Hello, on focal, I get a python stack trace when running: seeded-in-ubuntu bash

$ seeded-in-ubuntu bash
Traceback (most recent call last):
  File "/usr/bin/seeded-in-ubuntu", line 145, in <module>
    main()
  File "/usr/bin/seeded-in-ubuntu", line 140, in main
    binaries = resolve_binaries(args)
  File "/usr/bin/seeded-in-ubuntu", line 70, in resolve_binaries
    for bpph in spph.getBinaries()))
TypeError: getBinaries() missing 1 required positional argument: 'arch'

If I'm not using seeded-in-ubuntu correctly, it would be nice to get a friendlier error message than a stack trace. But I suspect this is just a bug.

Thanks

ProblemType: Bug
DistroRelease: Ubuntu 20.04
Package: ubuntu-dev-tools 0.175
ProcVersionSignature: Ubuntu 5.4.0-12.15-generic 5.4.8
Uname: Linux 5.4.0-12-generic x86_64
NonfreeKernelModules: zfs zunicode zavl icp zcommon znvpair
ApportVersion: 2.20.11-0ubuntu16
Architecture: amd64
Date: Fri Feb 7 02:59:40 2020
PackageArchitecture: all
ProcEnviron:
 TERM=rxvt-unicode-256color
 PATH=(custom, no user)
 XDG_RUNTIME_DIR=<set>
 LANG=en_US.UTF-8
 SHELL=/bin/bash
SourcePackage: ubuntu-dev-tools
UpgradeStatus: Upgraded to focal on 2020-01-24 (13 days ago)

Revision history for this message
Seth Arnold (seth-arnold) wrote :
Revision history for this message
Iain Lane (laney) wrote :

Just noticed this too. It seems like a recent regression, trying to pin down which update caused it.

Revision history for this message
Iain Lane (laney) wrote :

commit fb750e38bb217e0bd625dbadbd080c04256effb1 (refs/bisect/bad)
Author: Dan Streetman <email address hidden>
Date: Tue Nov 21 14:37:42 2017 -0500

    lpapicache: find binaries from lp

    Also update getBinaries() to allow retreival by binary name

    This significantly speeds up binary file lookup for non-published
    package versions, since we can get the list of binary urls, but
    then have to look up the BPPH for each of those urls, which is slow.
    If the user only wants a specific binary package and/or arch, this
    speeds up getting that, especially for packages with a lot of binary
    files (like the kernel).

That was ages ago though, not sure why this only just broke.

Anyway, seems simple to fix.

Revision history for this message
Dan Streetman (ddstreet) wrote :

MR ready, but it's based on my git repo, which includes the fixes for bug 1860456

fixed pkgs as usual in my ppa
https://launchpad.net/~ddstreet/+archive/ubuntu/ubuntu-dev-tools

Revision history for this message
Brian Murray (brian-murray) wrote :

I don't use seeded-in-ubuntu every day but when I did it didn't require an arch argument.

Revision history for this message
Launchpad Janitor (janitor) wrote :

Status changed to 'Confirmed' because the bug affects multiple users.

Changed in ubuntu-dev-tools (Ubuntu):
status: New → Confirmed
Revision history for this message
Dan Streetman (ddstreet) wrote :

> I don't use seeded-in-ubuntu every day but when I did it didn't require an arch argument.

correct, the previous changes added the arch restriction to getBinaries(), and the current MR fixes getBinaries() to allow not specifying an arch (to return the binaries for all archs)

Revision history for this message
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package ubuntu-dev-tools - 0.175ubuntu1

---------------
ubuntu-dev-tools (0.175ubuntu1) focal; urgency=medium

  [ Dan Streetman ]
  * lpapicache: remove new requirement to pass arch to getBinaries()
    (LP: #1862286)
  * ubuntu-upload-permission: sort packagesets by name to fix py3
    (LP: #1862372)
  * submittodebian: open with 'b' before writing utf-8 encoded bytes
    (LP: #1863119)

  [ Colin Watson ]
  * Use +sourcefiles URLs where possible (LP: #1860456)

 -- Dan Streetman <email address hidden> Thu, 20 Feb 2020 17:20:23 -0500

Changed in ubuntu-dev-tools (Ubuntu Focal):
status: Confirmed → 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.