Note: This bug is displayed in read-only format because the product is no longer active in Red Hat Bugzilla.
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 801280

Summary: [abrt] subscription-manager-0.99.7.2-1.el7: rhsmd:21:<module>:ImportError: No module named gobject
Product: Red Hat Enterprise Linux 7 Reporter: Michal Nowak <mnowak>
Component: subscription-managerAssignee: Devan Goodwin <dgoodwin>
Status: CLOSED CURRENTRELEASE QA Contact: John Sefler <jsefler>
Severity: medium Docs Contact:
Priority: medium    
Version: 7.0CC: bkearney, jgalipea, khong, ohudlick, rvokal
Target Milestone: alpha   
Target Release: ---   
Hardware: x86_64   
OS: Unspecified   
Whiteboard: abrt_hash:6ec591a8e0b68942756e8a9a222860b139a905d2
Fixed In Version: 1.8.2 Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2014-06-13 10:56:01 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 Michal Nowak 2012-03-08 07:33:57 UTC
libreport version: 2.0.7
abrt_version:   2.0.7
cmdline:        /usr/bin/python /usr/libexec/rhsmd -s
comment:        
executable:     /usr/libexec/rhsmd
kernel:         3.2.1-0.8.el7.x86_64
reason:         rhsmd:21:<module>:ImportError: No module named gobject
time:           Wed 07 Mar 2012 12:32:38 PM EST
uid:            0
username:       root

backtrace:
:rhsmd:21:<module>:ImportError: No module named gobject
:
:Traceback (most recent call last):
:  File "/usr/libexec/rhsmd", line 21, in <module>
:    import gobject
:ImportError: No module named gobject
:
:Local variables in innermost frame:
:__builtins__: <module '__builtin__' (built-in)>
:__file__: '/usr/libexec/rhsmd'
:datetime: <module 'datetime' from '/usr/lib64/python2.7/lib-dynload/datetime.so'>
:syslog: <module 'syslog' from '/usr/lib64/python2.7/lib-dynload/syslog.so'>
:__name__: '__main__'
:__package__: None
:__doc__: None

Comment 1 Michal Nowak 2012-03-08 07:34:45 UTC
Found it on the system right after it's setup.

Comment 2 Bill Nottingham 2012-03-09 22:23:08 UTC
Looks like a missing requires in the package.

Comment 4 Bryan Kearney 2012-09-19 15:35:27 UTC
Should be fixed and built based on commit 91ecae87 from master.

Comment 5 Bryan Kearney 2013-02-08 17:18:24 UTC
Fixed in the 1.8.2 version of subscription-manager or python-rhsm

Comment 7 John Sefler 2013-10-28 20:45:21 UTC
Verifying...

[root@jsefler-7 ~]# /usr/libexec/rhsmd -s
[root@jsefler-7 ~]# 

VERIFIED: rhsmd runs without traceback

[root@jsefler-7 ~]# rpm -q --whatprovides /usr/libexec/rhsmd
subscription-manager-1.10.4-1.el7.x86_64

[root@jsefler-7 ~]# rpm -q --requires --verbose subscription-manager | egrep ^manual
manual: dbus-python
manual: pygobject2
manual: python-dateutil
manual: python-dmidecode
manual: python-ethtool
manual: python-iniparse
manual: python-rhsm >= 1.9.1-1
manual: python-simplejson
manual: usermode
manual: virt-what
manual: yum >= 3.2.19-15

VERIFIED: pygobject2 is manually required by subscription-manager which provides /usr/libexec/rhsmd

[root@jsefler-7 ~]# rpm -q --whatprovides /usr/lib64/python2.7/site-packages/gobject
pygobject2-2.28.6-9.el7.x86_64

VERIFIED: python module gobject is provided by package pygobject2 which is now required by subscription-manager which provides /usr/libexec/rhsmd

Moving to VERIFIED

Comment 8 Ludek Smid 2014-06-13 10:56:01 UTC
This request was resolved in Red Hat Enterprise Linux 7.0.

Contact your manager or support representative in case you have further questions about the request.