[Reportbug-maint] Bug#700046: reportbug: Traceback with OSError ENOENT despite file existing, on attach+send

Jakub Wilk jwilk at debian.org
Sun Aug 3 09:12:30 UTC 2014


* Thorsten Glaser <tg at mirbsd.de>, 2013-02-07, 20:48:
>Choose a file to attach: /var/lib/buildd/logs/haveged_1.4-4_m68k-20130207-1507
>Report will be sent to "Debian Bug Tracking System" <submit at bugs.debian.org>
>Attachments:
> /var/lib/buildd/logs/haveged_1.4-4_m68k-20130207-1507
>Submit this report on haveged (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 2206, in <module>
>    main()
>  File "/usr/bin/reportbug", line 1080, in main
>    return iface.user_interface()
>  File "/usr/bin/reportbug", line 2198, in user_interface
>    self.options.envelopefrom)
>  File "/usr/lib/pymodules/python2.7/reportbug/submit.py", line 248, in send_report
>    (message, failed) = mime_attach(body, attachments, charset, body_charset)
>  File "/usr/lib/pymodules/python2.7/reportbug/submit.py", line 170, in mime_attach
>    stdout=PIPE, stderr=STDOUT).communicate()[0]
>  File "/usr/lib/python2.7/subprocess.py", line 679, in __init__
>    errread, errwrite)
>  File "/usr/lib/python2.7/subprocess.py", line 1259, in _execute_child
>    raise child_exception
>OSError: [Errno 2] No such file or directory

I was bitten by this bug, too. AFAICS the problem is that "file" (the 
package) is not installed. That is, the missing file is /usr/bin/file.

The error message is unfortunately not very helpful, especially for 
people who are not familiar with Python.

-- 
Jakub Wilk



More information about the Reportbug-maint mailing list