Port to python3-launchpadlib

Bug #1153671 reported by Nicholas Skaggs
54
This bug affects 12 people
Affects Status Importance Assigned to Milestone
apport (Ubuntu)
Fix Released
Medium
Ubuntu Foundations Bugs

Bug Description

Apport-cli depends on python3-launchpadlib for some actions, but it is not installable (currently). For example,

apport-cli -u 542452
ERROR: The launchpadlib Python module is not installed. This functionality is not available.

The current candidates for installation on raring only include python-launchpadlib (which is python2 based). I believe this bug is relevant:

https://bugs.launchpad.net/launchpadlib/+bug/1060734

I'm filing this against apport in the event raring is shipped without a python3-launchpadlib package. I would recommend updating the error to make what is needing to be installed more clear. IE,

ERROR: The launchpadlib Python3 module is not installed (python3-launchpadlib). This functionality is not available.

Also consider adding the library as a suggested dependency. In addition, should the package not land, further steps may be required.

summary: - Apport-cli depends on python3-launchpadlib for some actions, but it is
- not installable
+ Apport-cli depends on python3-launchpadlib
Revision history for this message
Martin Pitt (pitti) wrote : Re: Apport-cli depends on python3-launchpadlib

We don't have a python3-launchpadlib. Once we do, I'll gladly change Apport's dependencies.

affects: apport → apport (Ubuntu)
summary: - Apport-cli depends on python3-launchpadlib
+ Need python3-launchpadlib
Changed in apport (Ubuntu):
status: New → Triaged
Revision history for this message
Launchpad Janitor (janitor) wrote : Re: Need python3-launchpadlib

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

Changed in python-launchpadlib (Ubuntu):
status: New → Confirmed
Revision history for this message
Christopher Townsend (townsend) wrote :

Yes, a python3-launchpadlib is almost a must for getting bug information into Launchpad for systems with broken X of X-less systems such as servers. In those cases, apport-collect won't work since the web browser can't be opened.

Revision history for this message
Christopher Townsend (townsend) wrote :

Also, +1 on changing the message printed out by apport-cli about the python-launchpadlib. It is very misleading since python-launchpadlib is technically instead, just the wrong version.

Revision history for this message
Pander (pander) wrote :

Indeed:

# apport-collect 1221264
ERROR: The launchpadlib Python module is not installed. This functionality is not available.

What is the workaround for now?

tags: added: 13.04
Revision history for this message
Pander (pander) wrote :

ah

sudo apt-get install python-launchpadlib

Revision history for this message
Scott Ritchie (scottritchie) wrote :

https://bugs.launchpad.net/launchpadlib/+bug/1060734 <-- for the python3 development task

Revision history for this message
Martin Pitt (pitti) wrote :

vivid now has a python3-launchpadlib \o/ (Thanks Dimitri!)

Changed in python-launchpadlib (Ubuntu):
status: Confirmed → Fix Released
Changed in apport (Ubuntu):
status: Triaged → In Progress
assignee: nobody → Martin Pitt (pitti)
milestone: none → ubuntu-15.01
Revision history for this message
Martin Pitt (pitti) wrote :

Blocked on bug 1403524

Changed in apport (Ubuntu):
importance: Undecided → Low
status: In Progress → Triaged
Martin Pitt (pitti)
Changed in apport (Ubuntu):
milestone: ubuntu-15.01 → none
summary: - Need python3-launchpadlib
+ Port to python3-launchpadlib
Revision history for this message
Martin Pitt (pitti) wrote :

Current blockers: bug 1414055, bug 1414063, bug 1414075

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

This bug was fixed in the package apport - 2.16-0ubuntu1

---------------
apport (2.16-0ubuntu1) vivid; urgency=medium

  * New upstream release:
    - Add a new method ProblemReport.extract_keys() which writes binary keys
      (which can be very large) directly to files without loading them all
      into memory first. Use that in apport-unpack. Thanks Louis Bouchard!
      (LP: #1307413)
    - launchpad backend: Work with Python 3, now that launchpadlib exists for
      Python 3. (LP: #1153671)
    - apport-bug, apport-gtk: Also check for $WAYLAND_SESSION, to use
      apport-gtk instead of apport-cli under Wayland. Thanks Tim Lunn.
      (LP: #1418766)
    - apport-gtk: When running under Wayland, avoid Gdk/Wnck operation for
      setting crash window modal to the PID of the crashed window; these only
      work under X11.
    - Don't install the test suite any more, to save 1 MB of installed space.
      It can be run out of trunk easily enough, and distributions can install
      it from tests/ if they desire.
    - hookutils, attach_root_command_outputs(): Fix UnicodeDecodeError crash
      for non-textual values. (LP: #1370259)
    - ui.py: Only provide a UI to hooks if the crash db will accept the
      report. This avoids asking questions if the report is merely sent to
      whoopsie for Ubuntu stable releases. Thanks Brian Murrary.
      (LP: #1084979)
    - whoopsie-upload-all: Add package information to the report before
      calling package hooks. Thanks Brian Murray.
    - Fix check for available terminal when checking whether to display the
      "Examine locally" button.
  * Add general hook for detecting Wayland sessions and tagging them with
    "wayland-session". Thanks Timm Lunn! (LP: #1418262)
  * debian/tests/upstream-system: Copy tests from source tree, as
    /usr/share/apport/testsuite/ does not exist any more.
 -- Martin Pitt <email address hidden> Fri, 06 Feb 2015 10:11:30 +0100

Changed in apport (Ubuntu):
status: Triaged → Fix Released
Revision history for this message
Martin Pitt (pitti) wrote :

Reopening, this isn't sufficient yet. I still need to flip the package dependencies around once a fixed py3-lplib lands.

Changed in apport (Ubuntu):
status: Fix Released → In Progress
Mathew Hodson (mhodson)
tags: removed: 13.04
Revision history for this message
Martin Pitt (pitti) wrote :

Next blocker: bug 1422249

Revision history for this message
Martin Pitt (pitti) wrote :

Another blocker: bug 1425575

Revision history for this message
Martin Pitt (pitti) wrote :

Another blocker: bug 1425609

Revision history for this message
Martin Pitt (pitti) wrote :

Next blocker: bug 1425627

Martin Pitt (pitti)
Changed in apport (Ubuntu):
status: In Progress → Triaged
Pander (pander)
tags: added: 15.10 python
Martin Pitt (pitti)
no longer affects: python-launchpadlib (Ubuntu)
tags: added: blocked
tags: removed: 15.10
Changed in apport (Ubuntu):
assignee: Martin Pitt (pitti) → nobody
Pander (pander)
tags: added: artful zesty
Revision history for this message
Matthias Klose (doko) wrote :

LP: #1425609 and LP: #1425627 (aka LP: #1714960) and LP: #1422249 (aka LP: #1471894) are now fixed.

tags: added: py2-demotion py2-removal
removed: blocked
Changed in apport (Ubuntu):
importance: Low → Medium
Matthias Klose (doko)
Changed in apport (Ubuntu):
assignee: nobody → Ubuntu Foundations Bugs (foundations-bugs)
Revision history for this message
Martin Pitt (pitti) wrote :
Revision history for this message
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package apport - 2.20.8-0ubuntu3

---------------
apport (2.20.8-0ubuntu3) bionic; urgency=medium

  * apport-retrace: Use Python3. LP: #1153671.

 -- Matthias Klose <email address hidden> Tue, 05 Dec 2017 15:39:46 +0100

Changed in apport (Ubuntu):
status: Triaged → Fix Released
tags: added: id-5a204aad7e9a5b70feb6b4c3
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.