Last modified: 2014-09-09 08:35:13 UTC

Wikimedia Bugzilla is closed!

Wikimedia migrated from Bugzilla to Phabricator. Bug reports are handled in Wikimedia Phabricator.
This static website is read-only and for historical purposes. It is not possible to log in and except for displaying bug reports and their history, links might be broken. See T59017, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 57017 - Import error for PIL module
Import error for PIL module
Status: NEW
Product: Pywikibot
Classification: Unclassified
General (Other open bugs)
compat-(1.0)
All All
: Low minor
: ---
Assigned To: Pywikipedia bugs
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2013-11-13 17:01 UTC by xqt
Modified: 2014-09-09 08:35 UTC (History)
1 user (show)

See Also:
Web browser: ---
Mobile Platform: ---
Assignee Huggle Beta Tester: ---


Attachments

Description xqt 2013-11-13 17:01:51 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
Comment 1 John Mark Vandenberg 2014-09-09 08:35:13 UTC
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

Note You need to log in before you can comment on or make changes to this bug.


Navigation
Links