Note: This bug is displayed in read-only format because the product is no longer active in Red Hat Bugzilla.

Bug 872486

Summary: [RHEL7] ImportError: cannot import name dbus_bindings
Product: [Retired] Red Hat Hardware Certification Program Reporter: Caspar Zhang <czhang>
Component: Test Suite (harness)Assignee: Caspar Zhang <czhang>
Status: CLOSED CURRENTRELEASE QA Contact: Petr Beňas <pbenas>
Severity: high Docs Contact:
Priority: medium    
Version: 1.7.0CC: bbrock, czhang, gnichols, pbenas, pstehlik, qcai, rlandry
Target Milestone: ---   
Target Release: ---   
Hardware: All   
OS: All   
Whiteboard:
Fixed In Version: v7-1.7.0-R1 Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2013-03-28 06:21:27 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Bug Depends On:    
Bug Blocks: 904887    
Attachments:
Description Flags
hardwaretest.py patch removing the import czhang: review+

Description Caspar Zhang 2012-11-02 07:44:41 UTC
Description of problem:

On RHEL7, the following traceback is shown when doing `v7 plan`:

Traceback (most recent call last):
  File "/usr/bin/v7", line 24, in <module>
    from v7.hardwaretest import HardwareTestHarness
  File "/usr/share/v7/lib/v7/hardwaretest.py", line 28, in <module>
    from dbus import dbus_bindings
ImportError: cannot import name dbus_bindings

Version-Release number of selected component (if applicable):
v7-1.6.4

How reproducible:
always

Comment 1 Caspar Zhang 2012-11-20 11:14:20 UTC
This is due to dbus-python commit cabcf23:

"
commit cabcf23207a67cb9215e3efc25ae6e8d73823fd1
Author: Simon McVittie <simon.mcvittie.uk>
Date:   Tue Dec 13 12:04:19 2011 +0000

    Remove dbus_bindings, deprecated for nearly 5 years
"

Comment 4 Caspar Zhang 2013-01-23 15:02:05 UTC
*** Bug 903226 has been marked as a duplicate of this bug. ***

Comment 5 Greg Nichols 2013-01-24 17:07:26 UTC
Created attachment 686857 [details]
hardwaretest.py patch removing the import

Updated patch for 1.6.4 R22 - the import is no longer needed.

Comment 7 Greg Nichols 2013-01-31 15:58:16 UTC
This bug is fixed in v7 1.7.0 R1