Bug 657648 - python exception crash looking for gobject in egg.trayicon call
Summary: python exception crash looking for gobject in egg.trayicon call
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Fedora
Classification: Fedora
Component: gnome-python2-extras
Version: rawhide
Hardware: Unspecified
OS: Unspecified
low
medium
Target Milestone: ---
Assignee: Colin Walters
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2010-11-27 00:41 UTC by Sean Middleditch
Modified: 2011-05-19 05:07 UTC (History)
3 users (show)

Fixed In Version: gnome-python2-extras-2.25.3-31.fc15
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2011-05-19 05:07:43 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)

Description Sean Middleditch 2010-11-27 00:41:59 UTC
Description of problem:

$ istanbul 
** Message: pygobject_register_sinkfunc is deprecated (GstObject)
Traceback (most recent call last):
  File "/usr/bin/istanbul", line 30, in <module>
    from istanbul.main import main
  File "/usr/lib/python2.7/site-packages/istanbul/main/main.py", line 37, in <module>
    from istanbul.main.tray_icon import TrayIcon
  File "/usr/lib/python2.7/site-packages/istanbul/main/tray_icon.py", line 26, in <module>
    import egg.trayicon
ImportError: could not import gobject (could not find _PyGObject_API object)

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

istanbul.x86_64 0:0.2.2-15.fc14

Comment 1 Jef Spaleta 2010-11-27 18:12:38 UTC
This doesn't make a lot of sense


istanbul package require the pygtk2 package

pygtk2 package requires the pyobject2 package

pyobject2 provides the gobject python module.

I don't see how you can get into this situation without there being a problem either in pygtk2 or pyobject2 packaging.


So first thing to do is to see if your python can import the gobject package.
Run:  
python -c "import gobject"

if that fails then confirm that the pyobject2 package is installed.
Run: 
rpm -q pyobject2

If the pyobject2 package is installed but the command python -c "import gobject" fails than this is a bug in the pyobject2 package and needs to be refiled accordingly to make the pyobject2 maintainer aware.


-jef

Comment 2 Sean Middleditch 2010-11-29 19:52:38 UTC
elanthis@stargrazer:~$ python -c "import gobject"
( no output from that command, assuming that means success )

elanthis@stargrazer:~$ rpm -q pygobject2
pygobject2-2.27.0-1.fc15.x86_64

Tons of other Python/GTK apps work fine.  Istanbul is the only one that has failed.  Double checked after running the above commands and I definitely still get the exact same error when I run Istanbul.

Comment 3 Jef Spaleta 2010-11-29 21:46:09 UTC
Ah I misread the traceback, the problem appears to be associated with the egg module not being about to find gobject.

Give me the outputs of these commands:
rpm -q gnome-python2-libegg

python -c "import egg"
python -c "import egg.trayicon"

Both those python commands should return with no message unless there is an error associated with the gnome-python2-libegg package.

if the import egg or import egg.trayicon fails then it suggests a packaging problem in gnome-python2-libegg

-jef

Comment 4 Sean Middleditch 2010-11-30 03:41:08 UTC
elanthis@stargrazer:~$ rpm -q gnome-python2-libegg
gnome-python2-libegg-2.25.3-22.fc15.x86_64

elanthis@stargrazer:~$ python -c "import egg"
( no output )

elanthis@stargrazer:~$ python -c "import egg.trayicon"
Traceback (most recent call last):
  File "<string>", line 1, in <module>
ImportError: could not import gobject (could not find _PyGObject_API object)


Tried to reassign to gnome-python2-libegg, but there's no such component.  Package is a sub-package of another srpm I take it, but I'm playing the "I'm a dumb user and to me it's an application that's broken and I shouldn't need to figure out internal Fedora rpm/repo techno-mumbo-jumbo" card.  :)

Comment 5 Jef Spaleta 2010-11-30 07:01:39 UTC
If you were filing this against f14 or f13 such a card would be valid. However since you are filing against rawhide...the smiley face won't save you from the educational lecture that you are about to receive.

In the future  rpm -qi packagename will help you determine which srpm and thus which bugzilla component to file a bug against.

rpm -qi gnome-python2-libegg
Source RPM: gnome-python2-extras-2.2

So I'm refiling this against gnome-python2-extras.

Comment 6 Jef Spaleta 2010-11-30 07:06:42 UTC
Dear Maintainer of gnome-python2-extras,

It appears that the egg python module in the gnome-python2-libegg subpackage is behaving badly in rawhide.

It showing up as a crash in istanbul but attempts to import egg.trayicon fail outside of istanbul as well as seen in comment #4.


-jef

Comment 7 Sean Middleditch 2010-12-01 06:18:42 UTC
Thanks for the information, and for refiling.  I actually tried 'rpm -qi' but was apparently too blind to see the Source RPM field on the right.

Comment 8 Shawn Starr 2011-02-12 06:28:11 UTC
This remains broken in rawhide... any update? istanbul still fails 

rpm -q gnome-python2-libegg
gnome-python2-libegg-2.25.3-22.fc15.x86_64

$ python -c "import egg"
$ python -c "import egg.trayicon"
Traceback (most recent call last):
  File "<string>", line 1, in <module>
ImportError: could not import gobject (could not find _PyGObject_API object)

Comment 9 Fedora Update System 2011-05-12 13:35:15 UTC
gnome-python2-extras-2.25.3-31.fc15 has been submitted as an update for Fedora 15.
https://admin.fedoraproject.org/updates/gnome-python2-extras-2.25.3-31.fc15

Comment 10 Fedora Update System 2011-05-19 05:07:19 UTC
gnome-python2-extras-2.25.3-31.fc15 has been pushed to the Fedora 15 stable repository.  If problems still persist, please make note of it in this bug report.


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