[Reportbug-maint] Bug#803764: reportbug: missing dependency on "file"

Ansgar Burchardt ansgar at debian.org
Mon Nov 2 12:50:45 UTC 2015

Package: reportbug
Version: 6.6.5
Severity: important


while trying to file a bug report, reportbug crashed, resulting in
loss of the report:

| Submit this report on evolution (e to edit) [Y|n|a|c|e|i|l|m|p|q|d|t|s|?]? l
| Report will be sent to "Debian Bug Tracking System" <submit at bugs.debian.org>
| Attachments:
|  /home/ansgar/evolution-crash.png
|  /home/ansgar/evolution-backtrace.txt
| Submit this report on evolution (e to edit) [Y|n|a|c|e|i|l|m|p|q|d|t|s|?]? 
| Traceback (most recent call last):
|   File "/usr/bin/reportbug", line 2247, in <module>
|     main()
|   File "/usr/bin/reportbug", line 1115, in main
|     return iface.user_interface()
|   File "/usr/bin/reportbug", line 2238, in user_interface
|     self.options.envelopefrom)
|   File "/usr/lib/python2.7/dist-packages/reportbug/submit.py", line 257, in send_report
|     (message, failed) = mime_attach(body, attachments, charset, body_charset)
|   File "/usr/lib/python2.7/dist-packages/reportbug/submit.py", line 178, in mime_attach
|     stdout=PIPE, stderr=STDOUT).communicate()[0]
|   File "/usr/lib/python2.7/subprocess.py", line 710, in __init__
|     errread, errwrite)
|   File "/usr/lib/python2.7/subprocess.py", line 1335, in _execute_child
|     raise child_exception
| OSError: [Errno 2] No such file or directory

The line in question is

|         info = Popen(['file', '--mime', '--brief', attachment],
|                      stdout=PIPE, stderr=STDOUT).communicate()[0]
+---[ /usr/lib/python2.7/dist-packages/reportbug/submit.py l. 177-178 ]

It looks like reportbug is missing a dependency on "file" (which is
only Priority: standard and not guaranteed to be installed).


-- Package-specific info:
** Environment settings:
DEBEMAIL="ansgar at debian.org"
NAME="Ansgar Burchardt"

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

Kernel: Linux 4.2.0-1-amd64 (SMP w/8 CPU cores)
Locale: LANG=C.UTF-8, LC_CTYPE=C.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     
ii  python            2.7.9-1
ii  python-reportbug  6.6.5
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>
ii  emacs24-bin-common                         24.5+1-3
ii  exim4                                      4.86-4
ii  exim4-daemon-light [mail-transport-agent]  4.86-4
pn  file                                       <none>
ii  gnupg                                      1.4.19-6
ii  python-gtk2                                2.24.0-4
pn  python-gtkspell                            <none>
pn  python-urwid                               <none>
pn  python-vte                                 <none>
ii  xdg-utils                                  1.1.1-1

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

python-reportbug suggests no packages.

-- no debconf information

More information about the Reportbug-maint mailing list