Well I almost got it up. keyword being almost :-) I got webkit-gtk3 +quartz installed I am able to do import gi from python
Had a to a little tweek in pyjd/__init__.py to add the paths pyjswidgets and pyjsaddons into sys.path bash-3.2$ cd examples/kitchensink/ bash-3.2$ ../../mypython/bin/python KitchenSink.py INFO:pyjs.runners:conf: [('runner', 'giwebkit'), ('home', '/Users/sarvi/.pyjd'), ('is_desktop', True), ('native_dnd', True), ('engine', 'giwebkit')] init None True INFO:pyjs.runners.giwebkit:uri: [('scheme', 'file'), ('user', None), ('password', None), ('host', ''), ('port', 0L), ('path', '/Users/sarvi/Workspace/pyjs/examples/kitchensink/public/KitchenSink.html'), ('query', None), ('fragment', None)] DEBUG:pyjs.runners.giwebkit:sub-frame: <WebFrame object at 0x15108a1e0 (WebKitWebFrame at 0x7ff43a874e80)> Traceback (most recent call last): File "/Users/sarvi/Workspace/pyjs/pyjs/runners/giwebkit.py", line 588, in _frame_loaded_cb self._doc.ctx = self File "/Users/sarvi/Workspace/pyjs/pyjs/runners/giwebkit.py", line 409, in __call__ self.setattr(inst, key, attr) File "/Users/sarvi/Workspace/pyjs/pyjs/runners/giwebkit.py", line 456, in setattr inst.set_data(key, attr) File "/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/gi/overrides/GObject.py", line 590, in _unsupported_data_method raise RuntimeError('Data access methods are unsupported. ' RuntimeError: Data access methods are unsupported. Use normal Python attributes instead Is this something people have seen? On Wednesday, October 16, 2013 12:01:02 PM UTC-7, Sarvi Shanmugham wrote: > > > On Wednesday, October 16, 2013 11:18:52 AM UTC-7, C Anthony Risinger wrote: >> >> On Wed, Oct 16, 2013 at 1:00 PM, Sarvi Shanmugham <sarv...@gmail.com>wrote: >> >>> Can you point me to some documentation on how to get this giwebkit >>> compiling >>> from scratch so that I can give it a go on the mac. >>> >>> So far in looking for document I have been confused between >>> pywebkitgtk, then pythonwebkit and no giwebkit >>> >>> pywebkitgtk is a standard port I can find in my mac port repo >>> From what I read pythonwebkit is an old branch of webkit with luke's >>> python changes/wrappers. >>> >>> what is this giwebkit? Is it a standard part of webkit? or is it a >>> branch of like pythonwebkit? >>> >> >> * pywebkitgtk is (was?) a python binding to webkitgtk that i think uses >> pygtk2 >> * pythonwebkit is webkitgtk + luke's patches for direct python bindings >> * giwebkit is `pyjs/runners/giwebkit.py` (a dynamic binding to a >> GI-enabled webkitgtk build) >> >> ...`giwebkit` is just the name i gave it, but it should work out-of-the >> box with any recent (last 2 yrs or so) webkitgtk build so long as it was >> built with `--enable-introspection` >> >> the missing piece (addEventListener) is used pretty early so it might >> fail to boot, but it should be pretty easy to temporarily fake it. >> >> from python you must be able to do this: >> from gi.repository import WebKit >> >> you need [upstream!] GTK3 and webkitgtk (libwebkitgtk-3.0.so.*) to make >> it work. >> > I see the following 2 choices in mac ports. From my read > of pyjs/runners/giwebkit.py > I think I need the following > ---------------- > localhost:pyjs sarvi$ sudo port info webkit-gtk3 > webkit-gtk3 @2.0.4_2 (www, gnome) > Variants: quartz, universal, [+]video > > Description: Apple's WebKit HTML rendering library for GTK+ > Homepage: http://webkitgtk.org/ > > Extract Dependencies: xz > Build Dependencies: gtk-doc, pkgconfig, autoconf, automake, libtool > Library Dependencies: glib2, bison, flex, enchant, geoclue, > gobject-introspection, harfbuzz-icu, libxslt, libpng, libsecret, libsoup, > mesa, > sqlite3, webp, xorg-libXt, gtk3, > gstreamer1-gst-plugins-base > Platforms: darwin, freebsd > License: LGPL-2+ BSD > Maintainers: jerem...@macports.org, dev...@macports.org > ------------ > > So It looks like I should be picking the later i.e "sudo port info > webkit-gtk3" > > So I can go ahead and install this and don't have to patch it before > compiling right? > > After I install webkit-gtk3, and lets say I have the latest pyjs sources > from git. > What else do I need to do? > > Sarvi > PS: If I get this to work, I promise I will do the documentation for pyjd > on MacOS > > > > >> >> -- >> >> C Anthony >> > -- --- You received this message because you are subscribed to the Google Groups "Pyjs.org Users" group. To unsubscribe from this group and stop receiving emails from it, send an email to pyjs-users+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/groups/opt_out.