[Reportbug-maint] Bug#851192: reportbug: All UIs depend on python3 webbrowser which is failing with Bad magic number

Akkana Peck akkzilla at shallowsky.com
Thu Jan 12 20:44:12 UTC 2017


Package: reportbug
Version: 6.6.3
Severity: grave
Justification: renders package unusable

Dear Maintainer,

Note: this concerns reportbug on TESTING, even though I am reporting it
from stable because reportbug on testing won't run at all.

Running reportbug fails immediately with:

$ reportbug reportbug              ~/outsrc/stable-grep/grep-2.20/src
Traceback (most recent call last):
  File "/usr/bin/reportbug", line 43, in <module>
    from reportbug import utils
  File "/usr/lib/python3/dist-packages/reportbug/utils.py", line 43, in <module>
    from .urlutils import open_url
  File "/usr/lib/python3/dist-packages/reportbug/urlutils.py", line 33, in <module>
    import webbrowser
ImportError: bad magic number in 'webbrowser': b'\x03\xf3\r\n'


Obviously this is a bug in python3's webbrowser module
(import webbrowser from the python3 console also fails).
However, it's also a reportbug bug, because it makes reportbug
completely unusable with any UI. No matter whether I run reportbug
with -u text, -u gtk, or -u urwid, it dies with the same error.
Why is the text interface trying to call up the webbrowser module?



*** Reporter, please consider answering these questions, where appropriate ***

   * What led up to the situation?
   * What exactly did you do (or not do) that was effective (or
     ineffective)?
   * What was the outcome of this action?
   * What outcome did you expect instead?

*** End of the template - remove these template lines ***


-- Package-specific info:
** Environment settings:
EDITOR="vim"
INTERFACE="text"

** /home/akkana/.reportbugrc:
reportbug_version "3.31"
  **** This is the version on stable. On testing, reportbug --version
       just fails with the same webbrowser error, but aptitude show
       says it's version 7.1.2.
mode standard
ui text
email "akkzilla at shallowsky.com"

-- System Information:
  **** The system where the bug happens is Debian GNU/Linux testing (stretch)
       and I just did a dist-upgrade today to make sure I wasn't
       missing any updated packages.
       python3 --version gives Python 3.5.2+
       libpython3.5-stdlib is 3.5.2-9
       libpython3.4-stdlib is also installed and is 3.4.4-3
  ****

  **** Info below is for the stable release where I'm reporting this.
Debian Release: 8.6
  APT prefers stable
  APT policy: (500, 'stable')
Architecture: amd64 (x86_64)

Kernel: Linux 3.16.0-4-amd64 (SMP w/1 CPU core)
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
Init: systemd (via /run/systemd/system)

Versions of packages reportbug depends on:
ii  apt               1.0.9.8.4
ii  python            2.7.9-1
ii  python-reportbug  6.6.3
pn  python:any        <none>

reportbug recommends no packages.

Versions of packages reportbug suggests:
pn  claws-mail                               <none>
pn  debconf-utils                            <none>
pn  debsums                                  <none>
pn  dlocate                                  <none>
pn  emacs23-bin-common | emacs24-bin-common  <none>
ii  file                                     1:5.22+15-2+deb8u2
ii  gnupg                                    1.4.18-7+deb8u3
ii  postfix [mail-transport-agent]           2.11.3-1
pn  python-gtk2                              <none>
pn  python-gtkspell                          <none>
pn  python-urwid                             <none>
pn  python-vte                               <none>
pn  xdg-utils                                <none>

Versions of packages python-reportbug depends on:
ii  apt               1.0.9.8.4
ii  python-debian     0.1.27
ii  python-debianbts  1.12
pn  python:any        <none>

python-reportbug suggests no packages.

-- no debconf information



More information about the Reportbug-maint mailing list