MobileRead Forums

MobileRead Forums (https://www.mobileread.com/forums/index.php)
-   Plugins (https://www.mobileread.com/forums/forumdisplay.php?f=268)
-   -   EPubtidyTool help (https://www.mobileread.com/forums/showthread.php?t=335302)

Gandulf 12-02-2020 08:16 AM

EPubtidyTool help
 
Installed the test plugin and managed to install the things that gave errors, but EPubtidyTool says cannot import PIL library.

Using Ubuntu 20.04.1 LTS. I have installed the pil library in terminal.

Can anyone help please.

1 irritating thing about the plugin is the windows it opens always open on my 2nd screen and that is a TV that is usally switched off.

KevinH 12-02-2020 08:48 AM

Yes the PIL module is a requirement for Sigil. It is shipped with the Python3 version that is embedded in Sigil on Windows and Mac. Some Linux distributions for some strange reason decided that Plugin support was somehow "optional" and made those packages "optional" in the install. Not really sure why. Plugin support has been around for over 5 years and is not going away and there are many many very useful plugins.

As for the windows it opens, not sure about that. It really depends on how the tk gui or pyqt5 gui used by the plugin determeines which is the main display and which is not. It can also be related to your Desktop/WM thinking space is available on the second monitor and deciding to use it. I have found that is I have more than one monitor on almost any system connected on the boot of the machine, then it is a very good idea to have them turned on at all times for this very reason.

Doitsu 12-02-2020 08:54 AM

Quote:

Originally Posted by Gandulf (Post 4064460)
Installed the test plugin and managed to install the things that gave errors, but EPubtidyTool says cannot import PIL library.

I tested it on my Arch Linux machine and it works fine. AFAIK, PIL has some image library dependencies.

To find out what depencies are missing, open a terminal and enter the following:

Code:

python3
from PIL import Image, ImageTk

You should get some kind of error message.

Most likely you'll have to install libjpeg.

Also note that you'll need to install Pillow not PIL
(Pillow is a fork of PIL that kept the PIL import name for backwards compatibility.)

On my machine the following packages are installed:
Pillow 7.2.0
libjpeg-turbo 2.0.5-3

Gandulf 12-02-2020 02:43 PM

Seems one must uninstall pil and then install pillow, thanks.


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

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