On May 28, 2012 3:39 AM, "Rene Maurer" <[email protected]> wrote:
>
> On 05/28/2012 at 10:05 Rene Maurer <[email protected]> wrote:
> > On 05/24/2012 at 06:05 C Anthony Risinger <[email protected]> wrote:
> >
> >> MAKE DEPS: gperf gobject-introspection python2 gtk3 mesa
> > + geoclue
> >
> >> if all goes well you should be able to run the helloworld example at
> >> the very least.
>
> Answering myself...
>
> > [helloworld]$ cat ~/.pyjd/pyjdrc
> > [gui]
> > engine=giwebkitk
>                 ^
> After fixing this and installing python2-gobject (on my system only
> python2-gobject2 was installed) i have now:
>
> [helloworld]$ ../../../pyjs/bin/pyjd Hello.py
> Traceback (most recent call last):
>  File "Hello.py", line 1, in <module>
>    import pyjd # this is dummy in pyjs.
>  File "/home/rene/Local/python/pyjs/pyjs/pyjd/__init__.py", line 37,
> in <module> from giwebkit import *
>  File "/home/rene/Local/python/pyjs/pyjs/pyjd/giwebkit.py", line 46,
> in <module> gi.require_version('WebKit', '3.0')
>  File "/usr/lib/python2.7/site-packages/gi/__init__.py", line 48, in
> require_version raise ValueError('Namespace %s not available' %
> namespace) ValueError: Namespace WebKit not available

Yeah I thought this might happen :-(

The GI stuff can't find the typelib or GIR file ... there is an env var
that can be exported (I've done it before) but I don't recall which ATM and
I'm on the road.  Later today I can find it for you.

If you search PyGI bugzilla for my name, I wrote a test case that uses it.
Yesterday I realized I never implemented the "setter" part, so no
attributes/text are really set (buttons/etc) but I'll be hammering on this
again extremely soon.

-- 

C Anthony

Reply via email to