On Thu, 12 Jan 2017 15:48:51 -0500 Sandro Tosi <mo...@debian.org> wrote: > control: reassign -1 python3 > control: affects -1 reportbug > > On Thu, Jan 12, 2017 at 3:44 PM, Akkana Peck <akkzi...@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
I can't reproduce this. I tried reportbug on testing and it worked fine. Importing webbrowser works fine (on unstable too): python3 Python 3.5.3rc1 (default, Jan 3 2017, 04:40:57) [GCC 6.3.0 20161229] on linux Type "help", "copyright", "credits" or "license" for more information. >>> import webbrowser >>> reassigning to libpython3.5-stdlib, since that's what provides webbrowser. Lowering severity since it's not consistently a problem. Scott K