RHEL Engineering is moving the tracking of its product development work on RHEL 6 through RHEL 9 to Red Hat Jira (issues.redhat.com). If you're a Red Hat customer, please continue to file support cases via the Red Hat customer portal. If you're not, please head to the "RHEL project" in Red Hat Jira and file new tickets here. Individual Bugzilla bugs in the statuses "NEW", "ASSIGNED", and "POST" are being migrated throughout September 2023. Bugs of Red Hat partners with an assigned Engineering Partner Manager (EPM) are migrated in late September as per pre-agreed dates. Bugs against components "kernel", "kernel-rt", and "kpatch" are only migrated if still in "NEW" or "ASSIGNED". If you cannot log in to RH Jira, please consult article #7032570. That failing, please send an e-mail to the RH Jira admins at rh-issues@redhat.com to troubleshoot your issue as a user management inquiry. The email creates a ServiceNow ticket with Red Hat. Individual Bugzilla bugs that are migrated will be moved to status "CLOSED", resolution "MIGRATED", and set with "MigratedToJIRA" in "Keywords". The link to the successor Jira issue will be found under "Links", have a little "two-footprint" icon next to it, and direct you to the "RHEL project" in Red Hat Jira (issue links are of type "https://issues.redhat.com/browse/RHEL-XXXX", where "X" is a digit). This same link will be available in a blue banner at the top of the page informing you that that bug has been migrated.
Bug 1218815 - Save as RPM displays error
Summary: Save as RPM displays error
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat Enterprise Linux 6
Classification: Red Hat
Component: openscap
Version: 6.7
Hardware: Unspecified
OS: Unspecified
medium
medium
Target Milestone: rc
: ---
Assignee: Šimon Lukašík
QA Contact: Marek Haicman
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2015-05-06 00:21 UTC by Martin Žember
Modified: 2016-05-10 20:53 UTC (History)
5 users (show)

Fixed In Version: openscap-1.2.7-1.el6
Doc Type: Bug Fix
Doc Text:
Previously, the scap-as-rpm utility was using some features specific to Python 2.7 while actually using Python 2.6 as the interpreter. This caused other tools such as scap-workbench, which depend on scap-as-rpm, to fail with a traceback. With this update, Python 2.7 features have been removed from scap-as-rpm code, and applications which depend on this tool no longer display tracebacks.
Clone Of:
Environment:
Last Closed: 2016-05-10 20:53:13 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Product Errata RHEA-2016:0806 0 normal SHIPPED_LIVE openscap bug fix and enhancement update 2016-05-10 22:38:33 UTC

Description Martin Žember 2015-05-06 00:21:55 UTC
Description of problem:
Save as RPM displays error

Version-Release number of selected component (if applicable):
scap-workbench-1.0.3-2.el6

How reproducible:
Easily

Steps to Reproduce:
1. File->Save As->Save as RPM
2. Choose some dir/type a new filename
3. Push Save

Actual results:
RPM version 4.8.0
Traceback (most recent call last):
  File "/usr/bin/scap-as-rpm", line 321, in <module>
    ret = main()
  File "/usr/bin/scap-as-rpm", line 277, in main
    rpmbuild_sources_path, rpmbuild_rpm_path, rpmbuild_srpm_path = get_rpmbuild_paths()
  File "/usr/bin/scap-as-rpm", line 112, in get_rpmbuild_paths
    sources = subprocess.check_output(["rpm", "--eval", "%{_sourcedir}"]).strip()
AttributeError: 'module' object has no attribute 'check_output'


Expected results:
RPM version 4.11.1
....
Finished!


Additional info:
This does not manifest in RHEL-7 currently, therefore I am filing this in bugzilla here.

Comment 2 Martin Preisler 2015-05-06 08:15:02 UTC
This is an issue in scap-as-rpm which is part of openscap-utils.

Comment 7 Marek Haicman 2016-01-25 14:30:45 UTC
Verified fix on openscap-utils-1.2.8-1.el6.x86_64.

Comment 10 errata-xmlrpc 2016-05-10 20:53:13 UTC
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.

For information on the advisory, and where to find the updated
files, follow the link below.

If the solution does not work for you, open a new bug report.

https://rhn.redhat.com/errata/RHEA-2016-0806.html


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