The problem appears to be related to difference between Firefox and Seamonkey (originally known as "Mozilla").
I've been tracking this bug across other distributions, including Fedora 7 and CentOS 5 and can confirm the issue is not specific to Unbuntu. The Segmentation Fault occurs when a "show_all" call is made to a parent window (such as "self.parent.show_all()")
The F7 release of gnome-python2-gtkmozembed (equivalent to the Ubuntu package in question) shows the python module itself being linked to the firefox libraries:
If you install the "seamonkey" package (the new name for the mozilla project is "seamonkey" so we're really just talking about the original software from the mozilla project) and simply swap paths temporarily:
The problem appears to be related to difference between Firefox and Seamonkey (originally known as "Mozilla").
I've been tracking this bug across other distributions, including Fedora 7 and CentOS 5 and can confirm the issue is not specific to Unbuntu. The Segmentation Fault occurs when a "show_all" call is made to a parent window (such as "self.parent. show_all( )")
The F7 release of gnome-python2- gtkmozembed (equivalent to the Ubuntu package in question) shows the python module itself being linked to the firefox libraries:
ldd /usr/lib/ python2. 5/site- packages/ gtk-2.0/ gtkmozembed. so
libgtkembedmoz.so => /usr/lib/ firefox- 2.0.0.5/ libgtkembedmoz. so (0x00be5000) firefox- 2.0.0.5/ libxpcom. so (0x00ce5000) firefox- 2.0.0.5/ libxpcom_ core.so (0x00e63000)
libxpcom.so => /usr/lib/
libxpcom_core.so => /usr/lib/
If you install the "seamonkey" package (the new name for the mozilla project is "seamonkey" so we're really just talking about the original software from the mozilla project) and simply swap paths temporarily:
mv /usr/lib/ firefox- 2.0.0.5 /usr/lib/ firefox- 2.0.0.5. off seamokey- 1.1.3 /usr/lib/ firefox- 2.0.0.5
ln -s /usr/lib/
The code will work immediately. Python therefore needs its gtkmozembed module compiled against seamonkey, not firefox, in order to work.
You may or may not still need the LD_LIBRARY_PATH export (I don't have an Ubuntu box to verify) but my guess is you won't.
Best of luck.
Cheers