https://bugzilla.wikimedia.org/show_bug.cgi?id=57017
Web browser: --- Bug ID: 57017 Summary: Import error for PIL module Product: Pywikibot Version: compat (1.0) Hardware: All OS: All Status: NEW Severity: normal Priority: Unprioritized Component: General Assignee: Pywikipedia-bugs@lists.wikimedia.org Reporter: info@gno.de Classification: Unclassified Mobile Platform: ---
import catimages
Traceback (most recent call last): File "<pyshell#2>", line 1, in <module> import catimages File "catimages.py", line 66, in <module> from PIL import Image # new 'PIL' fork 'Pillow' (fedora 19) ImportError: No module named PIL
https://bugzilla.wikimedia.org/show_bug.cgi?id=57017
John Mark Vandenberg jayvdb@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Priority|Unprioritized |Low CC| |jayvdb@gmail.com Severity|normal |minor
--- Comment #1 from John Mark Vandenberg jayvdb@gmail.com --- What is the bug?
The catimages code is:
try: import Image # classic 'PIL' except ImportError: from PIL import Image # new 'PIL' fork 'Pillow' (fedora 19)
http://git.wikimedia.org/commit/pywikibot%2Fcompat.git/5dc246cd5f17aea47383d...
I think compat tries to automatically install every dependency, so this bug might be that PIL/Pillow needs to be added to externals/__init__.py
Or, it could provide a nice error message if it failed to find the package after two imports.
Also it isnt not documented at https://www.mediawiki.org/wiki/Manual:Pywikibot/Installation#Dependencies
pywikipedia-bugs@lists.wikimedia.org