Bug 309746 - gtkmozembed does not work
Summary: gtkmozembed does not work
Status: RESOLVED FIXED
: 244497 (view as bug list)
Alias: None
Product: openSUSE 10.3
Classification: openSUSE
Component: Other (show other bugs)
Version: Beta 3
Hardware: x86 openSUSE 10.3
: P2 - High : Major (vote)
Target Milestone: ---
Assignee: Hans Petter Jansson
QA Contact: E-mail List
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2007-09-12 06:25 UTC by Itamar H
Modified: 2010-08-19 15:02 UTC (History)
1 user (show)

See Also:
Found By: Development
Services Priority:
Business Priority:
Blocker: ---
Marketing QA Status: ---
IT Deployment: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Itamar H 2007-09-12 06:25:40 UTC
gtkmozembed, part of gnome-python-extras does not work.
checked on both 32bit and 64bit editions of beta3.
sample program attached (program verified as working on another distro)

the window opens, but the page is not loaded.
using the "regular workaround" of export LD_LIBRARY_PATH=/usr/lib/firefox (or lib64) causes the program to exit without any message(?!) after the "moz = gtkmozembed.MozEmbed()" line.

import gtk
import gtkmozembed
window = gtk.Window()
moz = gtkmozembed.MozEmbed()
window.add(moz)
moz.load_url("http://www.google.com")
window.show_al()
gtk.main()
Comment 1 Cyril Hrubis 2007-09-12 11:57:02 UTC
I can't find gnome-python-extras package in openSuSE distribution. Did you installed it from additional source? 
Comment 2 Itamar H 2007-09-12 12:12:13 UTC
I just installed opensuse regulary. its part of the distribution (and was installed by default)
i see it in yast, under package selector python-gnome-extras (2.14.2) - Python bindings for GNOME.




Comment 3 Cyril Hrubis 2007-09-12 12:20:30 UTC
Sorry looks like I did a typo in previous search.
Comment 4 Stephan Kulow 2007-09-19 05:36:50 UTC
I don't see it installed by default.
Comment 5 Michael Wolf 2007-09-28 21:05:11 UTC
I can reproduce this.  Unclear it's unclear so far why it's happening.
Comment 6 Hans Petter Jansson 2007-10-04 00:53:04 UTC
This Launchpad bug is relevant:

https://bugs.launchpad.net/ubuntu/+source/firefox/+bug/26436

Especially towards the end. I can get the example code above to work here if I install Seamonkey and do:

LD_LIBRARY_PATH=/usr/lib/seamonkey ./example.py

@Michael: Do we need to build the python module against Seamonkey or something? Can we?
Comment 7 Itamar H 2007-10-04 14:15:57 UTC
i found another workaround, when firefox is installed:
by using export MOZILLA_FIVE_HOME=/usr/lib/firefox (or lib64).

the question is do i need firefox installed to use gtkmozembed?
Comment 8 Hans Petter Jansson 2007-10-19 21:09:15 UTC
Taking Mike off NEEDINFO - he can't help.

Itamar: Yes.
Comment 9 JP Rosevear 2007-11-14 21:36:46 UTC
*** Bug 244497 has been marked as a duplicate of this bug. ***
Comment 10 JP Rosevear 2007-11-14 21:37:10 UTC
Useful info in duplicate bug 244497.
Comment 11 JP Rosevear 2008-07-02 20:41:47 UTC
Still a problem in 11.0.
Comment 12 Wolfgang Rosenauer 2008-07-03 07:13:16 UTC
On 11.0 (and prior) it should work (and works for me) if
MOZILLA_FIVE_HOME is set to the xulrunner 1.8.x directory

MOZILLA_FIVE_HOME=/usr/lib/xulrunner-1.8.1 python example.py

That is expected as long as the gtkmozembed module of python hasn't been
ported to libXUL (gecko 1.9) mechanisms where it could statically link in a (pretty version independent) stub library which is able to find a GRE/XRE using the registration data in /etc/gre.d/.
Please note that know absolutely nothing about the python module so someone involved upstream may comment about the future plans of switching to Gecko 1.9 style.


Comment 13 JP Rosevear 2010-08-19 15:02:20 UTC
Vincent got this to build against 1.9.2 for 11.3 and it works out of the box now.