fieldhouse / comictagger

Automatically exported from code.google.com/p/comictagger
0 stars 0 forks source link

Python Imaging library is not available and is needed for issue identification... #54

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
What version of ComicTagger are you using?
1.1.15-beta

On what operating system (Mac, Linux, Windows)? What version?
linux

GUI or command line?
gui

What steps will reproduce the problem?
1.Open folder filled with comics
2.select a comic from list on right
3.click auto-tag or auto-identify

What is the expected output? What do you see instead?
It gives an error when the auto-identify button is clicked and then the matches 
are displayed in the search box behind it. I can then manually click the OK 
button to load the tags. If I use auto-tag then the error is displayed in the 
cli as the following. 

Python Imaging Library (PIL) is not available and is needed for issue 
identification.
Online search: No match found.  Save aborted
============================================================
Auto-Tagging 28 of 100

Please provide any additional information below.
PIL is installed properly on my system. Also, all other dependencies are 
installed as per the instructions.

Original issue reported on code.google.com by murf...@gmail.com on 27 Jun 2014 at 4:36

GoogleCodeExporter commented 8 years ago
What linux OS and version are you using specifically?

I changed over to using Pillow (https://pypi.python.org/pypi/Pillow/2.4.0) 
instead of PIL, and I guess I didn't update that message.  Depending on your 
OS, there may be different solutions to get Pillow installed properly, whether 
it's via apt-get, pip, or another package manager.

Original comment by bevi...@gmail.com on 30 Jun 2014 at 4:06

GoogleCodeExporter commented 8 years ago
I'm getting the same error on Mint 16 (3.11.0-12-generic #19-Ubuntu SMP Wed Oct 
9 16:20:46 UTC 2013 x86_64 x86_64 x86_64 GNU/Linux).  I have python-imaging and 
Pillow-2.4.0 installed.

Original comment by davidbe...@gmail.com on 2 Jul 2014 at 6:41

GoogleCodeExporter commented 8 years ago
I fixed the issue (at least for my install).  I figured out the issue after I 
commented out the exception portion for the PIL import in "issueidentifier.py", 
so an error would be thrown on failed import.

I didn't have WEBP wasn't supported with Pillow (didn't have the packages 
installed).  There may have been additional packages that weren't supported as 
well, but an exception was thrown by pillow once it tried to import webp.

Anyway, to resolve my issue I did the following:
1. Uninstall pillow
2. run "sudo apt-get install libtiff4-dev libjpeg8-dev zlib1g-dev 
libfreetype6-dev liblcms1-dev libwebp-dev"
3. reinstall pillow (auto upgraded to v2.5

Autotagging should work now.

Original comment by davidbe...@gmail.com on 2 Jul 2014 at 6:57

GoogleCodeExporter commented 8 years ago
Awesome, thanks!  I forgot about all of those dependencies.  I will get those 
details in the wiki.

Original comment by bevi...@gmail.com on 3 Jul 2014 at 6:48

GoogleCodeExporter commented 8 years ago
For anyone else coming across this:  you might also need python-dev installed:

{{{
sudo apt-get install python-dev
}}}

Original comment by bevi...@gmail.com on 3 Jul 2014 at 7:06