Reply
Thread Tools
Posts: 8 | Thanked: 1 time | Joined on Jul 2008
#1
Hi Group.

I am trying to get the gtkmozembed (embedding browser window inside of PyGtk app) method working after following a related thread in this developers forum on this subject.

I will try to find the exact thread and back reference it in this post as soon as I find it.

Below is the exact code I am attempting to run from this site: as their
test case

http://www.pygtk.org/pygtkmozembed/c...mozembed.html:

<CODE>
import gtk
import gtkmozembed

class TinyGecko:
def __init__(self):
self.moz = gtkmozembed.MozEmbed()

win = gtk.Window()
win.add(self.moz)
win.show_all()
# self.moz.load_url('http://www.pygtk.org')
data = '<html><head><title>Hello</title></head><body>pygtk dev</body></html>'
self.moz.render_data(data, long(len(data)), 'file:///', 'text/html')

if __name__ == '__main__':
TinyGecko()
gtk.main()

<CODE>

@ http://www.pygtk.org/pygtkmozembed/c...kmozembed.html

Per the other thread mentioning this subject, I did install the plugins mentioned (the python2.5-gnome-extras package from www.ywwg.com/maemo) as well as the shared object successfully.

The code fails with a 'Seg fault' after running for a few seconds. This happens for both the (a) Load URL case (www.pygtk.org') & (b) for the commented out 'data' = '<html>... case' as well with the same behavior.

So finally the ? -- Has anyone gotten this to run properly under OS2008 Diablo? My hunch here is that the shared lib needs to be recompiled to work properly under OS2008 (I do not know how to resolve this myself?) This is only an guess on my part.

So, does anyone have this working &/or have any advise on what to do next to try to work this out. If I do get this working, I will postback the answer into this thread.

TIA for any advise. //GHudd
 
Posts: 8 | Thanked: 1 time | Joined on Jul 2008
#2
More:

Ok found the reference to gtkmozembed...

Developers
User HNS
Chumby Thread

(Page 4)

talks of getting this working & the method.
(I would point right into this post if I knew how)

Best. GH
 
Posts: 8 | Thanked: 1 time | Joined on Jul 2008
#3
More info that may point towards an answer to this...

I plowed around the internet and found another hint on possibly getting the gtkmozembed to work:

As mentioned in this forum ->

http://ubuntuforums.org/archive/index.php/t-189581.html

There is some discussion abouy gthmozembed and the sig-fault issue as a gtkmozembez bug (and a workaround for regular linux distros)

(the post from 'Fredo' below)

--------------------
Hi!
The bug with gtkmozembed segfaulting can easily be worked around: Just export LD_LIBRARY_PATH=/usr/lib/firefox before starting your pygtk application.
Nevertheless, it's annoying and I'd be glad if it would get fixed.
Cheers,
Fredo
--------------------

Obviously there is no /usr/lib/firefox on the N800 os2008

so I took a guess and tried both,

LD_LIBRARY_PATH=/usr/lib/

and

LD_LIBRARY_PATH=/usr/lib/microb-engine

And reran the test app. Still, nothing happens.
//GH
 
Reply


 
Forum Jump


All times are GMT. The time now is 22:02.