MobileRead Forums

MobileRead Forums (https://www.mobileread.com/forums/index.php)
-   Plugins (https://www.mobileread.com/forums/forumdisplay.php?f=268)
-   -   Error message about testplugin (v. 0.13) (https://www.mobileread.com/forums/showthread.php?t=278337)

roger64 09-12-2016 11:34 AM

Error message about testplugin (v. 0.13)
 
Hi

I had been using the "official" sigil Arch package (v. 0.9.6.1.) for several weeks without any problem when it failed the testplugin (v 0.13). (see lower)

I uninstalled it (pacman -R) and installed the sigil-git version. Compilation went perfectly without any single error. All dependencies met.

However, it failed also the testplugin (v 0.13) with exactly the same message. According to eschwartz,

Quote:

That isn't a dependency error, it is an error somewhere in the internals of the plugin launcher.

Possibly in /usr/share/sigil/plugin_launchers/python/opf_parser.py it is failing to build the list of files according to type somehow, though I have no idea why not.
Here we are. :blink:

Test plugin error message
Code:

Statut :success

Verify sys.path settings manually
  /usr/share/sigil/plugin_launchers/python
  /usr/lib/python35.zip
  /usr/lib/python3.5
  /usr/lib/python3.5/plat-linux
  /usr/lib/python3.5/lib-dynload
  /usr/lib/python3.5/site-packages
  /home/roger/.local/share/sigil-ebook/sigil/plugins/testplugin
 
Verifying proper Python packages are available
  Python Package: PIL Found
  Python Package: cssselect Found
  Python Package: cssutils Found
  Python Package: html5lib Found
  Python Package: lxml Found
  Python Package: regex Found
  Python Package: chardet Found
  Python Package: six Found
 
Verifying Sigil Python Libraries can be found/loaded
  Sigil Python library: epub_utils Found
  Sigil Python library: quickparser Found
  Sigil Python library: compatibility_utils Found
  Sigil Python library: sigil_bs4 Found
 
Verifying Hunspell Spell Checking
  Hunspell en_US affix file and dictionary Found
  Hunspell shared library Found
  Hunspell spellchecking works True
 
Verifying Sigil Gumbo Library operation
  Sigil Gumbo BS4 Adapter library Found
  Sigil BS4/Gumbo Parser works True
 
Verifying selected basic plugin interface elements
  bk.text_iter() works False
  bk.manifest_iter() works False
  bk.spine_iter() works False
  bk.other_iter() works False
  reading a non-manifest book file works True
  reading a specific OPF manifest id works True
  writing to a specific OPF manifest id works True
  Launcher Version 20160605
  ePub Version 3.0
  adding your own file to the manifest works True
  basename to id mapping works True
  deleting our added file works True
 
 
Failure -  4  Tests of Plugin Operations Failed

About dependencies

Code:

[roger@anterg ~]$ sudo pip3 install lxml bs4
[sudo] Mot de passe de roger*:*
Requirement already satisfied (use --upgrade to upgrade): lxml in /usr/lib/python3.5/site-packages
Requirement already satisfied (use --upgrade to upgrade): bs4 in /usr/lib/python3.5/site-packages
Requirement already satisfied (use --upgrade to upgrade): beautifulsoup4 in /usr/lib/python3.5/site-packages (from bs4)
[roger@anterg ~]$


DiapDealer 09-12-2016 11:51 AM

I'll take a look, but I'm not seeing any issues with the various plugin iter routines using the latest git on Arch.

You ARE running the test plugin on the default, empty epub and not any other epub, right? It has to be the default template epub created when opening Sigil for complete success to be possible.

Doitsu 09-12-2016 12:04 PM

Like roger64, I also have an Arch machine and wasn't able to reproduce these errors with my home-built Sigil version. (I used DiapDealer's instructions.)

@eschwartz:
Does the testplugin also display the same 4 error messages on your machine?

roger64 09-12-2016 12:13 PM

I had previously tried on a big EPUB. Trying the testplugin on the empty default EPUB as you suggested gives a success. :o

Code:

Statut :success

Verify sys.path settings manually
  /usr/share/sigil/plugin_launchers/python
  /usr/lib/python35.zip
  /usr/lib/python3.5
  /usr/lib/python3.5/plat-linux
  /usr/lib/python3.5/lib-dynload
  /usr/lib/python3.5/site-packages
  /home/roger/.local/share/sigil-ebook/sigil/plugins/testplugin
 
Verifying proper Python packages are available
  Python Package: PIL Found
  Python Package: cssselect Found
  Python Package: cssutils Found
  Python Package: html5lib Found
  Python Package: lxml Found
  Python Package: regex Found
  Python Package: chardet Found
  Python Package: six Found
 
Verifying Sigil Python Libraries can be found/loaded
  Sigil Python library: epub_utils Found
  Sigil Python library: quickparser Found
  Sigil Python library: compatibility_utils Found
  Sigil Python library: sigil_bs4 Found
 
Verifying Hunspell Spell Checking
  Hunspell en_US affix file and dictionary Found
  Hunspell shared library Found
  Hunspell spellchecking works True
 
Verifying Sigil Gumbo Library operation
  Sigil Gumbo BS4 Adapter library Found
  Sigil BS4/Gumbo Parser works True
 
Verifying selected basic plugin interface elements
  bk.text_iter() works True
  bk.manifest_iter() works True
  bk.spine_iter() works True
  bk.other_iter() works True
  reading a non-manifest book file works True
  reading a specific OPF manifest id works True
  writing to a specific OPF manifest id works True
  Launcher Version 20160909
  ePub Version 3.0
  adding your own file to the manifest works True
  basename to id mapping works True
  deleting our added file works True
 
 
Success - All Tests of Plugin Operations Passed


DiapDealer 09-12-2016 12:30 PM

All's well that ends well. :)

eschwartz 09-12-2016 03:51 PM

@roger64,

Well, that certainly explained it. ;)

The underlying reason is because the testplugin is testing for the presence of specific, named files -- trying to exactly match the contents of the default empty book.

If it could just look at any ebook, then how would it know whether it is correctly interpreting the contents of the book?


All times are GMT -4. The time now is 08:53 PM.

Powered by: vBulletin
Copyright ©2000 - 3.8.5, Jelsoft Enterprises Ltd.
MobileRead.com is a privately owned, operated and funded community.