Bug 867855

Summary: [RHEL5] pcp - python-ctypes dependency missing
Product: Red Hat Developer Toolset Reporter: Tomas Dohnalek <tdohnale>
Component: pcpAssignee: Nathan Scott <nathans>
Status: CLOSED CANTFIX QA Contact:
Severity: medium Docs Contact:
Priority: unspecified    
Version: DTS 1.1 RHEL 5CC: fche, mcermak, mfranc, mgoodwin, mnewsome, mpolacek, ohudlick
Target Milestone: beta2   
Target Release: 1.1   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: devtoolset-1.1-pcp-3.6.9-2.el[56] Doc Type: Bug Fix
Doc Text:
No documentation needed.
Story Points: ---
Clone Of: Environment:
Last Closed: 2013-01-22 15:36:02 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:

Description Tomas Dohnalek 2012-10-18 12:33:01 UTC
User-Agent:       Mozilla/5.0 (X11; Linux x86_64; rv:16.0) Gecko/20100101 Firefox/16.0
Build Identifier: 

When running new upstream test-suite's test-case 710 on RHEL5, there are python import errors for ctypes module.

Reproducible: Always

Steps to Reproduce:
1. run pcp-testsuite test-case 710 or 708
Actual Results:  
[root@x86-64-v05 testsuite]# python /opt/rh/devtoolset-1.1/root/var/lib/pcp/testsuite/src/check_import.python /tmp/13114.pcplog
	Traceback (most recent call last):
	  File "/opt/rh/devtoolset-1.1/root/var/lib/pcp/testsuite/src/check_import.python", line 19, in ?
	    from pcp import *
	  File "/opt/rh/devtoolset-1.1/root/usr/lib64/python2.4/site-packages/pcp.py", line 83, in ?
	    import ctypes
	ImportError: No module named ctypes

Comment 1 Frank Ch. Eigler 2012-10-18 12:35:20 UTC
Adding a Requires: python-ctypes to the spec will cure this, both on rhel5 and rhel6 (where python-ctypes is a virtual provide by core python).

Comment 2 Nathan Scott 2012-10-18 23:58:47 UTC
Frank's fix has been merged into the upstream PCP git tree.