$ ppub
ERROR:root:Could not find any typelib for WebKit
Traceback (most recent call last):
File "/usr/share/ppub/ppub.py", line 22, in <module>
from gi.repository import Gdk, Gtk, GObject, WebKit
ImportError: cannot import name WebKit
# spkg -i webkitgtk3-1.8.3-i486-1sl.txz
Installing package webkitgtk3-1.8.3-i486-1sl...
| WebKitGTK+ (GTK3+ WebKit Module)
|
| WebKitGTK+ is an open source web browser engine. webkitgtk is
| also the name of the Mac OS X system framework version of the
| engine that's used by Safari Dashboard, Mail, and many other
| OS X applications.
|
|
|
|
|
|
|
WARNING: File already exist usr/share/gtk-doc/html/webkitgtk/index-1.1.20.html (it will be replaced)
WARNING: File already exist usr/share/gtk-doc/html/webkitgtk/webkitgtk-webkitdownload.html (it will be replaced)
WARNING: File already exist usr/share/gtk-doc/html/webkitgtk/index-1.1.16.html (it will be replaced)
WARNING: File already exist usr/share/gtk-doc/html/webkitgtk/index-1.1.8.html (it will be replaced)
WARNING: File already exist usr/share/gtk-doc/html/webkitgtk/WebKitIconDatabase.html (it will be replaced)
WARNING: File already exist usr/share/gtk-doc/html/webkitgtk/index-1.1.11.html (it will be replaced)
WARNING: File already exist usr/share/gtk-doc/html/webkitgtk/index-1.1.14.html (it will be replaced)
WARNING: File already exist usr/share/gtk-doc/html/webkitgtk/WebKitHitTestResult.html (it will be replaced)
WARNING: File already exist usr/share/gtk-doc/html/webkitgtk/WebKitWebDatabase.html (it will be replaced)
WARNING: File already exist usr/share/gtk-doc/html/webkitgtk/index-1.3.3.html (it will be replaced)
WARNING: File already exist usr/share/gtk-doc/html/webkitgtk/ch03.html (it will be replaced)
WARNING: File already exist usr/share/gtk-doc/html/webkitgtk/ch02.html (it will be replaced)
WARNING: File already exist usr/share/gtk-doc/html/webkitgtk/index-1.3.8.html (it will be replaced)
WARNING: File already exist usr/share/gtk-doc/html/webkitgtk/WebKitSecurityOrigin.html (it will be replaced)
WARNING: File already exist usr/share/gtk-doc/html/webkitgtk/WebKitWebInspector.html (it will be replaced)
WARNING: File already exist usr/share/gtk-doc/html/webkitgtk/index-deprecated.html (it will be replaced)
WARNING: File already exist usr/share/gtk-doc/html/webkitgtk/home.png (it will be replaced)
WARNING: File already exist usr/share/gtk-doc/html/webkitgtk/WebKitGeolocationPolicyDecision.html (it will be replaced)
WARNING: File already exist usr/share/gtk-doc/html/webkitgtk/WebKitNetworkRequest.html (it will be replaced)
WARNING: File already exist usr/share/gtk-doc/html/webkitgtk/index.html (it will be replaced)
WARNING: File already exist usr/share/gtk-doc/html/webkitgtk/WebKitWebSettings.html (it will be replaced)
WARNING: File already exist usr/share/gtk-doc/html/webkitgtk/WebKitWebResource.html (it will be replaced)
WARNING: File already exist usr/share/gtk-doc/html/webkitgtk/annotation-glossary.html (it will be replaced)
WARNING: File already exist usr/share/gtk-doc/html/webkitgtk/WebKitSpellChecker.html (it will be replaced)
WARNING: File already exist usr/share/gtk-doc/html/webkitgtk/WebKitWebPlugin.html (it will be replaced)
WARNING: File already exist usr/share/gtk-doc/html/webkitgtk/WebKitWebBackForwardList.html (it will be replaced)
WARNING: File already exist usr/share/gtk-doc/html/webkitgtk/index-1.1.6.html (it will be replaced)
WARNING: File already exist usr/share/gtk-doc/html/webkitgtk/index-1.1.17.html (it will be replaced)
WARNING: File already exist usr/share/gtk-doc/html/webkitgtk/index-1.3.1.html (it will be replaced)
WARNING: File already exist usr/share/gtk-doc/html/webkitgtk/WebKitWebHistoryItem.html (it will be replaced)
WARNING: File already exist usr/share/gtk-doc/html/webkitgtk/index-1.1.1.html (it will be replaced)
WARNING: File already exist usr/share/gtk-doc/html/webkitgtk/left.png (it will be replaced)
WARNING: File already exist usr/share/gtk-doc/html/webkitgtk/WebKitWebFrame.html (it will be replaced)
WARNING: File already exist usr/share/gtk-doc/html/webkitgtk/index-1.1.18.html (it will be replaced)
WARNING: File already exist usr/share/gtk-doc/html/webkitgtk/webkitgtk-webkitwebview.html (it will be replaced)
WARNING: File already exist usr/share/gtk-doc/html/webkitgtk/WebKitWebPolicyDecision.html (it will be replaced)
WARNING: File already exist usr/share/gtk-doc/html/webkitgtk/WebKitNetworkResponse.html (it will be replaced)
WARNING: File already exist usr/share/gtk-doc/html/webkitgtk/index-all.html (it will be replaced)
WARNING: File already exist usr/share/gtk-doc/html/webkitgtk/webkit-environment.html (it will be replaced)
WARNING: File already exist usr/share/gtk-doc/html/webkitgtk/index-1.1.5.html (it will be replaced)
WARNING: File already exist usr/share/gtk-doc/html/webkitgtk/index-1.1.15.html (it will be replaced)
WARNING: File already exist usr/share/gtk-doc/html/webkitgtk/index.sgml (it will be replaced)
WARNING: File already exist usr/share/gtk-doc/html/webkitgtk/index-1.1.2.html (it will be replaced)
WARNING: File already exist usr/share/gtk-doc/html/webkitgtk/index-1.1.3.html (it will be replaced)
WARNING: File already exist usr/share/gtk-doc/html/webkitgtk/index-1.1.23.html (it will be replaced)
WARNING: File already exist usr/share/gtk-doc/html/webkitgtk/index-1.0.2.html (it will be replaced)
WARNING: File already exist usr/share/gtk-doc/html/webkitgtk/WebKitWebDataSource.html (it will be replaced)
WARNING: File already exist usr/share/gtk-doc/html/webkitgtk/WebKitFaviconDatabase.html (it will be replaced)
WARNING: File already exist usr/share/gtk-doc/html/webkitgtk/index-1.1.10.html (it will be replaced)
WARNING: File already exist usr/share/gtk-doc/html/webkitgtk/webkitgtk-Global-functions.html (it will be replaced)
WARNING: File already exist usr/share/gtk-doc/html/webkitgtk/up.png (it will be replaced)
WARNING: File already exist usr/share/gtk-doc/html/webkitgtk/index-1.1.4.html (it will be replaced)
WARNING: File already exist usr/share/gtk-doc/html/webkitgtk/index-1.1.7.html (it will be replaced)
WARNING: File already exist usr/share/gtk-doc/html/webkitgtk/WebKitSoupAuthDialog.html (it will be replaced)
WARNING: File already exist usr/share/gtk-doc/html/webkitgtk/index-1.0.3.html (it will be replaced)
WARNING: File already exist usr/share/gtk-doc/html/webkitgtk/ch01.html (it will be replaced)
WARNING: File already exist usr/share/gtk-doc/html/webkitgtk/webkitgtk.devhelp2 (it will be replaced)
WARNING: File already exist usr/share/gtk-doc/html/webkitgtk/WebKitWebPluginDatabase.html (it will be replaced)
WARNING: File already exist usr/share/gtk-doc/html/webkitgtk/index-1.3.4.html (it will be replaced)
WARNING: File already exist usr/share/gtk-doc/html/webkitgtk/WebKitWebNavigationAction.html (it will be replaced)
WARNING: File already exist usr/share/gtk-doc/html/webkitgtk/right.png (it will be replaced)
WARNING: File already exist usr/share/gtk-doc/html/webkitgtk/index-1.1.13.html (it will be replaced)
WARNING: File already exist usr/share/gtk-doc/html/webkitgtk/WebKitWebWindowFeatures.html (it will be replaced)
WARNING: File already exist usr/share/gtk-doc/html/webkitgtk/style.css (it will be replaced)
WARNING: File already exist usr/share/gtk-doc/html/webkitgtk/WebKitViewportAttributes.html (it will be replaced)
WARNING: File already exist usr/share/gtk-doc/html/webkitgtk/index-1.0.1.html (it will be replaced)
WARNING: File already exist usr/share/gtk-doc/html/webkitgtk/index-1.3.2.html (it will be replaced)
$ ppub
** (ppub.py:30867): 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
/usr/lib/python2.7/site-packages/gi/_gobject/__init__.py:119: Warning: cannot derive `__main__+Viewer' from non-derivable parent type `void'
type_register(cls, namespace.get('__gtype_name__'))
Traceback (most recent call last):
File "/usr/share/ppub/ppub.py", line 31, in <module>
class Viewer(WebKit.WebView): #Renders the book (webkit viewer)
File "/usr/lib/python2.7/site-packages/gi/types.py", line 212, in __init__
super(GObjectMeta, cls).__init__(name, bases, dict_)
File "/usr/lib/python2.7/site-packages/gi/_gobject/__init__.py", line 65, in __init__
cls._type_register(cls.__dict__)
File "/usr/lib/python2.7/site-packages/gi/_gobject/__init__.py", line 119, in _type_register
type_register(cls, namespace.get('__gtype_name__'))
RuntimeError: could not create new GType: __main__+Viewer (subclass of void)
I will be glad to have webkitgtk3 in official Salix OS or Slackware repositories.
$ ppub
Traceback (most recent call last):
File "/usr/share/ppub/ppub.py", line 22, in <module>
from gi.repository import Gdk, Gtk, GObject, WebKit
File "/usr/lib/python2.7/site-packages/gi/importer.py", line 76, in load_module
dynamic_module._load()
File "/usr/lib/python2.7/site-packages/gi/module.py", line 222, in _load
version)
File "/usr/lib/python2.7/site-packages/gi/module.py", line 90, in __init__
repository.require(namespace, version)
gi.RepositoryError: Requiring namespace 'Gtk' version '2.0', but '3.0' is already loaded
Looks like a conflict between the two versions of webkitgtk3 (or whatever it's called).
My suggestion would be to remove both of them and follow laprjn's advice. He very likely tested before posting, so it will probably work. Just leave it to build overnight I suppose