[Reportbug-maint] Bug#849564: python3-reportbug: reportbug fails with AttributeError: 'str' object has no attribute 'utils'

Bernhard R. Link brlink at debian.org
Wed Dec 28 16:58:29 UTC 2016


Package: python3-reportbug
Version: 7.1.1
Control: affects -1 reportbug

Running reportbugs fails with:

*** Welcome to reportbug.  Use ? for help at prompts. ***
Note: bug reports are publicly archived (including the email address of
the submitter).
Detected character set: UTF-8
Please change your locale if this is incorrect.

Traceback (most recent call last):
  File "/usr/bin/reportbug", line 2233, in <module>
    main()
  File "/usr/bin/reportbug", line 1107, in main
    return iface.user_interface()
  File "/usr/bin/reportbug", line 1325, in user_interface
    fromaddr = utils.get_user_id(self.options.email,
self.options.realname, charset)
  File "/usr/lib/python3/dist-packages/reportbug/utils.py", line 316, in
get_user_id
    addr = email.utils.formataddr((realname, email))
AttributeError: 'str' object has no attribute 'utils'


It looks like the parameter email shadows the module name email causing
this error.

	Bernhard R. Link
-- 
F8AC 04D5 0B9B 064B 3383  C3DA AFFC 96D1 151D FFDC



More information about the Reportbug-maint mailing list