Bug 219954

Summary: gtk2reactor.py needs to be fixed on FC6
Product: [Fedora] Fedora Reporter: Christopher Stone <chris.stone>
Component: python-twistedAssignee: Thomas Vander Stichele <thomas>
Status: CLOSED NEXTRELEASE QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: medium Docs Contact:
Priority: medium    
Version: 6CC: extras-qa
Target Milestone: ---   
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2007-01-25 00:31:56 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:
Attachments:
Description Flags
Patch that fixes problem for me none

Description Christopher Stone 2006-12-17 17:41:26 UTC
In FC5 gobject was built into the gtk module, now in FC6 gobject has been
seperated out into the pygobject2 rpm.  The gtk module in FC6 no longer supports
a gobject and gtk2reactor.py needs to be patched to accomodate this.

I am not sure on if this file has been fixed in FC7, but I know for a fact that
it is broken in FC6.

Please see attached patch.  To demonstrate what has changed try:

python
import gtk
gtk._gobject

on FC5 the above script will indicate it is included, in FC6+ an error occurs. 
The patch I have attached fixes python-twisted for FC6+ in this regard.  Please
communicate to upstream and apply updates to Fedora FC6, as I need this patch
for a package I am about to submit for review.

Comment 1 Christopher Stone 2006-12-17 17:41:26 UTC
Created attachment 143871 [details]
Patch that fixes problem for me

Comment 2 Thomas Vander Stichele 2006-12-26 15:53:40 UTC
the patch is probably not acceptable upstream since it will not be
backwards-compatible.

A better approach is probably to hide away the difference by trying to import
either gobject or gtk._gobject as a "gobject" global and then keep the code as is.


Comment 3 Christopher Stone 2006-12-26 16:08:48 UTC
That sounds good to me.  My python is very rusty so I'm not sure how to do such
a patch.

Comment 4 Christopher Stone 2007-01-05 16:25:29 UTC
This problem seems to be fixed in python-twisted-core package.

Comment 5 Christopher Stone 2007-01-25 00:31:56 UTC
Closing bug, if there is any reason why this bug should not be closed, then
reopen explaining why or add a dependency.