On Aug 3, 2012 5:22 PM, "Lex Berezhny" <[email protected]> wrote: > > lex@D830:~/projects/giweb/pyjs/examples/helloworld$ sudo ldconfig -v | > grep webkit > libwebkitgtk-3.0.so.0 -> libwebkitgtk-3.0.so.0.13.2 > libwebkitgtk-python-1.0.so.0 -> libwebkitgtk-python-1.0.so.0.2.0 > libwebkitgtk-1.0.so.0 -> libwebkitgtk-1.0.so.0.13.1 > libwebkitgtk-3.0.so.0 -> libwebkitgtk-3.0.so.0.13.1 > > > On Fri, Aug 3, 2012 at 6:15 PM, Lex Berezhny <[email protected]> wrote: > > Hmm, I added the LD_LIBRARY_PATH but it doesn't seem to be used: > > > > > > lex@D830:~/projects/giweb/pyjs/examples/helloworld$ ls $LD_LIBRARY_PATH > > girepository-1.0 libjavascriptcoregtk-3.0.so.0 > > libwebkitgtk-3.0.so libwebkitgtk-3.0.so.0.13.2 > > libjavascriptcoregtk-3.0.so libjavascriptcoregtk-3.0.so.0.13.2 > > libwebkitgtk-3.0.so.0 pkgconfig > > > > lex@D830:~/projects/giweb/pyjs/examples/helloworld$ ../../bin/pyjd Hello.py > > > > ** (Hello.py:28941): WARNING **: Failed to load shared library > > 'libwebkitgtk-3.0.so.0' referenced by the typelib: > > libwebkitgtk-3.0.soso: cannot open shared object file: No such file or > > directory > > > > ** (Hello.py:28941): WARNING **: Failed to load shared library > > 'libjavascriptcoregtk-3.0.so.0' referenced by the typelib: > > libjavascriptcoregtk-3.0.soso: cannot open shared object file: No such > > file or directory > > Traceback (most recent call last): > > File "Hello.py", line 1, in <module> > > import pyjd # this is dummy in pyjs. > > File "/home/lex/projects/giweb/pyjs/pyjd/__init__.py", line 37, in <module> > > from giwebkit import * > > File "/home/lex/projects/giweb/pyjs/pyjd/giwebkit.py", line 125, in <module> > > WebKit = WebKit() > > File "/home/lex/projects/giweb/pyjs/pyjd/giwebkit.py", line 44, in WebKit > > tlc = (WebKit.DOMDocument, WebKit.DOMHTMLElement, > > File "/usr/lib/python2.7/dist-packages/gi/module.py", line 243, in __getattr__ > > return getattr(self._introspection_module, name) > > File "/usr/lib/python2.7/dist-packages/gi/module.py", line 153, in __getattr__ > > parent = get_parent_for_object(info) > > File "/usr/lib/python2.7/dist-packages/gi/module.py", line 73, in > > get_parent_for_object > > return getattr(module, name) > > File "/usr/lib/python2.7/dist-packages/gi/module.py", line 243, in __getattr__ > > return getattr(self._introspection_module, name) > > File "/usr/lib/python2.7/dist-packages/gi/module.py", line 154, in __getattr__ > > interfaces = tuple(interface for interface in > > get_interfaces_for_object(info) > > File "/usr/lib/python2.7/dist-packages/gi/module.py", line 83, in > > get_interfaces_for_object > > interfaces.append(getattr(module, name)) > > File "/usr/lib/python2.7/dist-packages/gi/module.py", line 243, in __getattr__ > > return getattr(self._introspection_module, name) > > File "/usr/lib/python2.7/dist-packages/gi/module.py", line 180, in __getattr__ > > wrapper = metaclass(name, bases, dict_) > > File "/usr/lib/python2.7/dist-packages/gi/types.py", line 232, in __init__ > > register_interface_info(cls.__info__.get_g_type()) > > TypeError: must be an interface
This won't use ldconfig or any cache, the LD_* is meant to override the that and allow you to use the local copy. Make sure you have libwebkit3 (gtk3). You're also missing the GI_TYPELIB_PATH is seems? Does the script I linked work? What does `ldd path/to/libwebkit.so` output? I'm on road ATM (passenger ;-) so a bit hard to diagnose but I try. -- C Anthony --
