[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#975398: reportbug crashes with Python 3.9



Package: python3-reportbug
Version: 7.8.0
Severity: normal
Tags: patch
X-Debbugs-Cc: roderich.schupp@gmail.com

Trying to retrieve a bug page in "reportbug" (using Python 3.9 which
just became the default in unstable) results in

  File "/usr/lib/python3/dist-packages/reportbug/ui/gtk_ui.py", line 435, in
pulse
    return self.isAlive()
AttributeError: 'BugPage' object has no attribute 'isAlive'

Note: class BugPage is derived from threading.Thread)

Reason (from "What's New In Python 3.9"):
The :meth:`~threading.Thread.isAlive()` method of :class:`threading.Thread` has
been removed. It was deprecated since Python 3.8. Use
:meth:`~threading.Thread.is_alive()` instead.

Patch attached.


Cheers, Roderich



-- System Information:
Debian Release: bullseye/sid
  APT prefers unstable
  APT policy: (500, 'unstable'), (1, 'experimental')
Architecture: amd64 (x86_64)

Kernel: Linux 5.10.0-rc4 (SMP w/8 CPU threads)
Kernel taint flags: TAINT_UNSIGNED_MODULE
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8), LANGUAGE=en_US:en
Shell: /bin/sh linked to /usr/bin/dash
Init: systemd (via /run/systemd/system)

Versions of packages python3-reportbug depends on:
ii  apt                2.1.11
ii  file               1:5.39-3
ii  python3            3.9.0-3
ii  python3-apt        2.1.5
ii  python3-debian     0.1.38
ii  python3-debianbts  3.0.2
ii  python3-requests   2.24.0+dfsg-1
ii  sensible-utils     0.0.12+nmu1

python3-reportbug recommends no packages.

Versions of packages python3-reportbug suggests:
ii  reportbug  7.8.0

-- no debconf information
python3-reportbug: /usr/lib/python3/dist-packages/reportbug/ui/gtk_ui.py

Reply to: