Last modified: 2014-11-06 16:35:22 UTC
As mentioned on bug 71454 comment 2 , current travis builds are not loading flickrripper as script_tests cant import dependency ImageTk https://travis-ci.org/wikimedia/pywikibot-core/jobs/37419168 "flickrripper depends on ImageTk, which isnt available: No module named ImageTk"
Change 170647 had a related patch set uploaded by John Vandenberg: Script test checks: import ImageTk from PIL https://gerrit.wikimedia.org/r/170647
py2.6, py2.7 and py3 builds all have an error when installing Pillow on Travis https://travis-ci.org/wikimedia/pywikibot-core/jobs/39756966 https://travis-ci.org/wikimedia/pywikibot-core/jobs/39760334 https://travis-ci.org/wikimedia/pywikibot-core/jobs/39756970 which was done here: https://gerrit.wikimedia.org/r/#/c/159207/ The builds all report the following in the Pillow install routine: --- TKINTER support available Yet script_tests cant load the module ImageTk. It needs to be loaded as 'from PIL import ImageTk' , but 'import PIL.ImageTk' appears to work for a few versions of Pillow that I have tried.
Change 170647 merged by jenkins-bot: Script test checks: import ImageTk from PIL https://gerrit.wikimedia.org/r/170647
After a bit of playing with a brand new install of Python, I can reproduce this. setup.py test is installing flickrapi into the local directory, and it can be imported within the setup.py environment, .. /home/travis/build/wikimedia/pywikibot-core/flickrapi-2.0_beta0-py3.3.egg But, when flickrripper is invoked via pwb.py, flickrapi can not be found.
Change 171194 had a related patch set uploaded by John Vandenberg: Export sys.path to pwb scripts https://gerrit.wikimedia.org/r/171194
Change 171194 merged by jenkins-bot: Export sys.path to pwb scripts https://gerrit.wikimedia.org/r/171194