Last modified: 2014-09-09 08:35:13 UTC
>>> 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
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/5dc246cd5f17aea47383de4e599977bfa3d37a07 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