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

Sandro Tosi morph at debian.org
Thu Jan 12 20:48:51 UTC 2017


control: reassign -1 python3
control: affects -1 reportbug

On Thu, Jan 12, 2017 at 3:44 PM, Akkana Peck <akkzilla at shallowsky.com> wrote:
> $ 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).

that;s what is it: a bug in python3, so reassigning + affecting accordingly

> 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?

because UIs need to interact with URLs, and those are managed by the
urlutils module, which import webbrowser. introducing conditional
imports is a no go here

-- 
Sandro "morph" Tosi
My website: http://sandrotosi.me/
Me at Debian: http://wiki.debian.org/SandroTosi
G+: https://plus.google.com/u/0/+SandroTosi



More information about the Reportbug-maint mailing list