Bug 1056800

Summary: [abrt] pyp2rpm: subprocess.py:1308:_execute_child:OSError: [Errno 2] No such file or directory
Product: [Fedora] Fedora Reporter: Jan Hutař <jhutar>
Component: pyp2rpmAssignee: Robert Kuska <rkuska>
Status: CLOSED ERRATA QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 20CC: bkabrda, jberan, rkuska
Target Milestone: ---   
Target Release: ---   
Hardware: x86_64   
OS: Unspecified   
URL: https://retrace.fedoraproject.org/faf/reports/bthash/7cf20154c4e850f11ddb8926f985e2c9121a7af4
Whiteboard: abrt_hash:a1d02c0dfe1558f2e7678baed61335cc9c290db8
Fixed In Version: pyp2rpm-1.0.1-4.fc20 Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2014-02-14 08:03:29 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Attachments:
Description Flags
File: backtrace
none
File: dso_list
none
File: environ none

Description Jan Hutař 2014-01-22 23:15:04 UTC
Description of problem:
I have followed workaround:

https://bugzilla.redhat.com/show_bug.cgi?id=1036046#c10

Then called:

$ pyp2rpm -n django-grappelli

and got the traceback. When I have noted "subprocess.Popen('rpmdev-packager'" in the traceback, I have installed "rpmdevtools" package and thn it worked.

Version-Release number of selected component:
pyp2rpm-1.0.1-3.fc20

Additional info:
reporter:       libreport-2.1.11
cmdline:        /usr/bin/python /usr/bin/pyp2rpm -n django-grappelli
executable:     /usr/bin/pyp2rpm
kernel:         3.12.8-300.fc20.x86_64
runlevel:       N 5
type:           Python
uid:            1000

Truncated backtrace:
subprocess.py:1308:_execute_child:OSError: [Errno 2] No such file or directory

Traceback (most recent call last):
  File "/usr/bin/pyp2rpm", line 9, in <module>
    load_entry_point('pyp2rpm==1.0.1', 'console_scripts', 'pyp2rpm')()
  File "/usr/lib/python2.7/site-packages/pyp2rpm/bin.py", line 75, in main
    converted = convertor.convert()
  File "/usr/lib/python2.7/site-packages/pyp2rpm/convertor.py", line 75, in convert
    return jinja_template.render(data = data, name_convertor = name_convertor)
  File "/usr/lib/python2.7/site-packages/jinja2/environment.py", line 969, in render
    return self.environment.handle_exception(exc_info, True)
  File "/usr/lib/python2.7/site-packages/jinja2/environment.py", line 742, in handle_exception
    reraise(exc_type, exc_value, tb)
  File "/usr/lib/python2.7/site-packages/pyp2rpm/templates/fedora.spec", line 116, in top-level template code
    * {{ data.changelog_date_packager }} - {{ data.version }}-1
  File "/usr/lib/python2.7/site-packages/jinja2/environment.py", line 397, in getattr
    return getattr(obj, attribute)
  File "/usr/lib/python2.7/site-packages/pyp2rpm/package_data.py", line 53, in changelog_date_packager
    packager = subprocess.Popen('rpmdev-packager', stdout = subprocess.PIPE).communicate()[0].strip()
  File "/usr/lib64/python2.7/subprocess.py", line 711, in __init__
    errread, errwrite)
  File "/usr/lib64/python2.7/subprocess.py", line 1308, in _execute_child
    raise child_exception
OSError: [Errno 2] No such file or directory

Local variables in innermost frame:
errread: None
c2pread: 4
gc_was_enabled: True
errwrite: None
shell: False
errpipe_write: 7
executable: 'rpmdev-packager'
close_fds: False
self: <subprocess.Popen object at 0x1d41550>
env: None
cwd: None
child_exception: OSError(2, 'No such file or directory')
args: ['rpmdev-packager']
c2pwrite: 5
data: 'cexceptions\nOSError\np0\n(I2\nS\'No such file or directory\'\np1\ntp2\nRp3\n(dp4\nS\'child_traceback\'\np5\nS\'Traceback (most recent call last):\\n  File "/usr/lib64/python2.7/subprocess.py", line 1263, in _execute_child\\n    os.execvp(executable, args)\\n  File "/usr/lib64/python2.7/os.py", line 344, in execvp\\n    _execvpe(file, args)\\n  File "/usr/lib64/python2.7/os.py", line 380, in _execvpe\\n    func(fullname, *argrest)\\nOSError: [Errno 2] No such file or directory\\n\'\np6\nsb.'
creationflags: 0
errpipe_read: 6
preexec_fn: None
p2cread: None
startupinfo: None
p2cwrite: None
universal_newlines: False

Comment 1 Jan Hutař 2014-01-22 23:15:12 UTC
Created attachment 854108 [details]
File: backtrace

Comment 2 Jan Hutař 2014-01-22 23:15:15 UTC
Created attachment 854109 [details]
File: dso_list

Comment 3 Jan Hutař 2014-01-22 23:15:18 UTC
Created attachment 854110 [details]
File: environ

Comment 4 Robert Kuska 2014-01-28 10:44:39 UTC
Hi,
Yes, this is also problem with requires. I will fix this.

Comment 5 Fedora Update System 2014-01-29 08:22:46 UTC
pyp2rpm-1.0.1-4.fc20 has been submitted as an update for Fedora 20.
https://admin.fedoraproject.org/updates/pyp2rpm-1.0.1-4.fc20

Comment 6 Fedora Update System 2014-01-30 03:40:27 UTC
Package pyp2rpm-1.0.1-4.fc20:
* should fix your issue,
* was pushed to the Fedora 20 testing repository,
* should be available at your local mirror within two days.
Update it with:
# su -c 'yum update --enablerepo=updates-testing pyp2rpm-1.0.1-4.fc20'
as soon as you are able to.
Please go to the following url:
https://admin.fedoraproject.org/updates/FEDORA-2014-1798/pyp2rpm-1.0.1-4.fc20
then log in and leave karma (feedback).

Comment 7 Jan Hutař 2014-02-07 13:48:17 UTC
Thanks, it have requirements set as expected now.

Comment 8 Fedora Update System 2014-02-14 08:03:29 UTC
pyp2rpm-1.0.1-4.fc20 has been pushed to the Fedora 20 stable repository.  If problems still persist, please make note of it in this bug report.