Ask Your Question
0

Glade cannot find pygobject module.

asked 2012-03-16 07:42:14 -0500

Sardathrion gravatar image

I am trying to port a Fedora 12 application to Fedora 16 with no joy. I use a custom set of widgets which give the following error:

; GLADE_CATALOG_PATH=./Components GLADE_MODULE_PATH=. glade --verbose fubar.glade 

(glade:28033): GladeUI-PYTHON-WARNING **: Error initializing Python interpreter: could not import pygobject

(glade:28033): GladeUI-PYTHON-WARNING **: Unable to load pygobject module >= 2.90.0, please make sure it is in python's path (sys.path). (use PYTHONPATH env variable to specify non default paths)
could not import gobject (version mismatch, 2.90.0 is required, found 3.0.3)
zsh: segmentation fault (core dumped)  GLADE_CATALOG_PATH=./Components GLADE_MODULE_PATH=. glade --verbose

Any idea what could be going wrong there? I do have pygobject installed and it works fine loading it from an interactive script:

; python
Python 2.7.2 (default, Oct 27 2011, 01:40:22) 
[GCC 4.6.1 20111003 (Red Hat 4.6.1-10)] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> import gobject
>>> print gobject
<module 'gobject' from '/usr/lib64/python2.7/site-packages/gobject/__init__.pyc'>
edit retag flag offensive close merge delete

2 Answers

Sort by ยป oldest newest most voted
0

answered 2012-03-28 03:33:28 -0500

Sardathrion gravatar image

The problem was that the wrong version of glade was used: 3.10 works with gtk3 and 3.8 works with gtk 2.

edit flag offensive delete link more
0

answered 2012-03-23 01:52:56 -0500

FranciscoD_ gravatar image

Looks like a bug. Pygobject probably hasn't been updated. Please file a bug @ [http://redhat.bugzilla.com](http://redhat.bugzilla.com].

To look for existing bugs: bugz.fedoraproject.org/packagename

edit flag offensive delete link more

Question Tools

1 follower

Stats

Asked: 2012-03-16 07:42:14 -0500

Seen: 752 times

Last updated: Mar 28 '12