epub readers

You have a problem with Salix? Post here and we'll do what we can to help.
User avatar
zAchAry
Posts: 804
Joined: 11. May 2010, 09:02
Location: Israel

Re: epub readers

Post by zAchAry »

Code: Select all

# slapt-src -i pywebkitgtk
Same error.

Code: Select all

$ 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
Image
Help to make Slackware easier Donate to Salix
User avatar
mimosa
Salix Warrior
Posts: 3311
Joined: 25. May 2010, 17:02
Contact:

Re: epub readers

Post by mimosa »

Well, what about webkit?
User avatar
zAchAry
Posts: 804
Joined: 11. May 2010, 09:02
Location: Israel

Re: epub readers

Post by zAchAry »

Already installed

Code: Select all

webkit-1.8.3-i486-3gv [inst=yes]: WebKit (Web Browser Engine)
Image
Help to make Slackware easier Donate to Salix
User avatar
ibka
Posts: 159
Joined: 12. Sep 2010, 13:14
Location: Sweden
Contact:

Re: epub readers

Post by ibka »

Install pygobject3 from sourcery or slapt-src
Image
User avatar
mimosa
Salix Warrior
Posts: 3311
Joined: 25. May 2010, 17:02
Contact:

Re: epub readers

Post by mimosa »

I found this, which might be helpful; however I'm not sure what the Slackware equivalent of the missing package would be:

http://stackoverflow.com/questions/7823 ... repository
User avatar
laprjns
Salix Warrior
Posts: 1113
Joined: 28. Aug 2009, 01:30
Location: Connecticut USA

Re: epub readers

Post by laprjns »

zAchAry wrote:Already installed

Code: Select all

webkit-1.8.3-i486-3gv [inst=yes]: WebKit (Web Browser Engine)
You need webkitgtk3. And to build that you need gtk+3 . So do this:

Code: Select all

slapt-get -i gtk+3
then

Code: Select all

slapt-src -i webkitgtk3
“The past was erased, the erasure was forgotten, the lie became the truth.”
― George Orwell, 1984
User avatar
zAchAry
Posts: 804
Joined: 11. May 2010, 09:02
Location: Israel

Re: epub readers

Post by zAchAry »

I will not build webkitgtk3 as it is taking too long to build.
I tried to use the binary available in Slacky.eu and it seems to fail.

Code: Select all

# 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)

Code: Select all

$ 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.
Image
Help to make Slackware easier Donate to Salix
djemos
Salix Warrior
Posts: 1464
Joined: 29. Dec 2009, 13:45
Location: Greece

Re: epub readers

Post by djemos »

Try this from slackel repos. Maybe it is working for you.
webkitgtk-1.10.2
User avatar
zAchAry
Posts: 804
Joined: 11. May 2010, 09:02
Location: Israel

Re: epub readers

Post by zAchAry »

Still nothing.

Code: Select all

# spkg -i webkitgtk-1.10.2-i486-1dj.txz 
https://dpaste.de/xSpV2/

Code: Select all

$ 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
Image
Help to make Slackware easier Donate to Salix
User avatar
mimosa
Salix Warrior
Posts: 3311
Joined: 25. May 2010, 17:02
Contact:

Re: epub readers

Post by mimosa »

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 ;)
Post Reply