Bug 1180822 - [abrt] rpmconf: subprocess.py:1456:_execute_child:FileNotFoundError: [Errno 2] No such file or directory: 'usr/bin/diff'
Summary: [abrt] rpmconf: subprocess.py:1456:_execute_child:FileNotFoundError: [Errno 2...
Keywords:
Status: CLOSED UPSTREAM
Alias: None
Product: Fedora
Classification: Fedora
Component: rpmconf
Version: rawhide
Hardware: x86_64
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Miroslav Suchý
QA Contact: Fedora Extras Quality Assurance
URL: https://retrace.fedoraproject.org/faf...
Whiteboard: abrt_hash:236063f3eae82fa90c3e2b5238f...
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2015-01-10 19:08 UTC by Igor Gnatenko
Modified: 2015-01-12 10:56 UTC (History)
2 users (show)

Fixed In Version: rpmconf-1.0.7-1
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2015-01-10 19:09:48 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)
File: backtrace (2.46 KB, text/plain)
2015-01-10 19:08 UTC, Igor Gnatenko
no flags Details
File: environ (2.08 KB, text/plain)
2015-01-10 19:08 UTC, Igor Gnatenko
no flags Details

Description Igor Gnatenko 2015-01-10 19:08:31 UTC
Description of problem:
tried rpmconf -a

Version-Release number of selected component:
rpmconf-1.0.6-1.fc22

Additional info:
reporter:       libreport-2.3.0
cmdline:        /usr/bin/python3 /sbin/rpmconf -a
executable:     /sbin/rpmconf
kernel:         3.19.0-0.rc3.git1.2.fc22.x86_64
runlevel:       N 5
type:           Python3
uid:            0

Truncated backtrace:
subprocess.py:1456:_execute_child:FileNotFoundError: [Errno 2] No such file or directory: 'usr/bin/diff'

Traceback (most recent call last):
  File "/usr/lib/python3.4/site-packages/rpmconf/rpmconf.py", line 135, in show_diff
    fromlines = open(file1, "U").readlines()
  File "/usr/lib64/python3.4/codecs.py", line 313, in decode
    (result, consumed) = self._buffer_decode(data, self.errors, final)
UnicodeDecodeError: 'utf-8' codec can't decode byte 0x89 in position 11: invalid start byte

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/sbin/rpmconf", line 63, in <module>
    main()
  File "/sbin/rpmconf", line 60, in main
    rconf.run()
  File "/usr/lib/python3.4/site-packages/rpmconf/rpmconf.py", line 88, in run
    self._handle_package(pkg_hdr)
  File "/usr/lib/python3.4/site-packages/rpmconf/rpmconf.py", line 253, in _handle_package
    tmp.format(conf_file, "rpmnew"))
  File "/usr/lib/python3.4/site-packages/rpmconf/rpmconf.py", line 288, in _handle_rpmnew
    self.show_diff(conf_file, other_file)
  File "/usr/lib/python3.4/site-packages/rpmconf/rpmconf.py", line 144, in show_diff
    universal_newlines=True)
  File "/usr/lib64/python3.4/subprocess.py", line 858, in __init__
    restore_signals, start_new_session)
  File "/usr/lib64/python3.4/subprocess.py", line 1456, in _execute_child
    raise child_exception_type(errno_num, err_msg)
FileNotFoundError: [Errno 2] No such file or directory: 'usr/bin/diff'

Local variables in innermost frame:
child_exec_never_called: False
cwd: None
p2cwrite: -1
start_new_session: False
hex_errno: bytearray(b'2')
child_exception_type: <class 'OSError'>
restore_signals: True
executable_list: (b'usr/bin/diff',)
startupinfo: None
close_fds: True
errwrite: -1
fds_to_keep: {11}
errread: -1
errno_num: 2
errpipe_data: bytearray(b'OSError:2:')
devnull_fd: None
part: b''
orig_executable: 'usr/bin/diff'
err_msg: "No such file or directory: 'usr/bin/diff'"
args: ['usr/bin/diff', '-u', '/usr/lib/jvm/java-1.8.0-openjdk-1.8.0.40-19.b12.fc22.x86_64/jre/lib/security/US_export_policy.jar', '/usr/lib/jvm/java-1.8.0-openjdk-1.8.0.40-19.b12.fc22.x86_64/jre/lib/security/US_export_policy.jar.rpmnew']
self: <subprocess.Popen object at 0x7f1d83d45a58>
c2pwrite: 9
exception_name: bytearray(b'OSError')
p2cread: -1
low_fds_to_close: []
preexec_fn: None
pass_fds: ()
env: None
c2pread: 8
env_list: None
errpipe_write: 11
creationflags: 0
errpipe_read: 10
executable: b'usr/bin/diff'
shell: False

Comment 1 Igor Gnatenko 2015-01-10 19:08:34 UTC
Created attachment 978553 [details]
File: backtrace

Comment 2 Igor Gnatenko 2015-01-10 19:08:36 UTC
Created attachment 978554 [details]
File: environ

Comment 3 Igor Gnatenko 2015-01-10 19:09:48 UTC
https://github.com/xsuchy/rpmconf/pull/21


Note You need to log in before you can comment on or make changes to this bug.