~apport-hackers/apport/main

« back to all changes in this revision

Viewing changes to apport/crashdb_impl/launchpad.py

  • Committer: Benjamin Drung
  • Date: 2022-08-11 13:19:16 UTC
  • Revision ID: git-v1:d2cf6a98167e5dafc2a51b4878cd5f13b3e022c9
Suggest installing python3-launchpadlib if missing and needed

A user reported a bug that apport-collect does not work, because it
fails with the error message: "The python3-launchpadlib package is not
installed. This functionality is not available."

Clarify the error message by telling the user to install the
`python3-launchpadlib` package. The package is called
`python3-launchpadlib` on Fedora and on all Debian based distributions.

Bug: https://launchpad.net/bugs/1958059
Signed-off-by: Benjamin Drung <bdrung@ubuntu.com>

Show diffs side-by-side

added added

removed removed

Lines of Context:
151
151
        if Launchpad is None:
152
152
            sys.stderr.write(
153
153
                "ERROR: The launchpadlib Python %s module is not installed."
154
 
                " This functionality is not available.\n" % sys.version[0]
 
154
                " Please install the python3-launchpadlib package!\n"
 
155
                % sys.version[0]
155
156
            )
156
157
            sys.exit(1)
157
158