Bug 1056800 - [abrt] pyp2rpm: subprocess.py:1308:_execute_child:OSError: [Errno 2] No such file or directory
Summary: [abrt] pyp2rpm: subprocess.py:1308:_execute_child:OSError: [Errno 2] No such ...
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Fedora
Classification: Fedora
Component: pyp2rpm
Version: 20
Hardware: x86_64
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Robert Kuska
QA Contact: Fedora Extras Quality Assurance
URL: https://retrace.fedoraproject.org/faf...
Whiteboard: abrt_hash:a1d02c0dfe1558f2e7678baed61...
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2014-01-22 23:15 UTC by Jan Hutař
Modified: 2016-04-18 10:17 UTC (History)
3 users (show)

Fixed In Version: pyp2rpm-1.0.1-4.fc20
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2014-02-14 08:03:29 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)
File: backtrace (2.42 KB, text/plain)
2014-01-22 23:15 UTC, Jan Hutař
no flags Details
File: dso_list (65 bytes, text/plain)
2014-01-22 23:15 UTC, Jan Hutař
no flags Details
File: environ (3.01 KB, text/plain)
2014-01-22 23:15 UTC, Jan Hutař
no flags Details

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.


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