https://bugzilla.wikimedia.org/show_bug.cgi?id=71864
Bug ID: 71864 Summary: Travis builds not loading flickrripper due to missing ImageTk Product: Pywikibot Version: core (2.0) Hardware: All OS: All Status: NEW Severity: normal Priority: Unprioritized Component: tests Assignee: Pywikipedia-bugs@lists.wikimedia.org Reporter: jayvdb@gmail.com Web browser: --- Mobile Platform: ---
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"
https://bugzilla.wikimedia.org/show_bug.cgi?id=71864
John Mark Vandenberg jayvdb@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- See Also| |https://bugzilla.wikimedia. | |org/show_bug.cgi?id=71454, | |https://bugzilla.wikimedia. | |org/show_bug.cgi?id=68606
https://bugzilla.wikimedia.org/show_bug.cgi?id=71864
John Mark Vandenberg jayvdb@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Blocks| |69069
https://bugzilla.wikimedia.org/show_bug.cgi?id=71864
John Mark Vandenberg jayvdb@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Priority|Unprioritized |Low
https://bugzilla.wikimedia.org/show_bug.cgi?id=71864
--- Comment #1 from Gerrit Notification Bot gerritadmin@wikimedia.org --- Change 170647 had a related patch set uploaded by John Vandenberg: Script test checks: import ImageTk from PIL
https://gerrit.wikimedia.org/r/170647
https://bugzilla.wikimedia.org/show_bug.cgi?id=71864
Gerrit Notification Bot gerritadmin@wikimedia.org changed:
What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |PATCH_TO_REVIEW
https://bugzilla.wikimedia.org/show_bug.cgi?id=71864
--- Comment #2 from John Mark Vandenberg jayvdb@gmail.com --- 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.
https://bugzilla.wikimedia.org/show_bug.cgi?id=71864
--- Comment #3 from Gerrit Notification Bot gerritadmin@wikimedia.org --- Change 170647 merged by jenkins-bot: Script test checks: import ImageTk from PIL
https://gerrit.wikimedia.org/r/170647
https://bugzilla.wikimedia.org/show_bug.cgi?id=71864
John Mark Vandenberg jayvdb@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Status|PATCH_TO_REVIEW |NEW
--- Comment #4 from John Mark Vandenberg jayvdb@gmail.com --- 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.
https://bugzilla.wikimedia.org/show_bug.cgi?id=71864
--- Comment #5 from Gerrit Notification Bot gerritadmin@wikimedia.org --- Change 171194 had a related patch set uploaded by John Vandenberg: Export sys.path to pwb scripts
https://gerrit.wikimedia.org/r/171194
https://bugzilla.wikimedia.org/show_bug.cgi?id=71864
Gerrit Notification Bot gerritadmin@wikimedia.org changed:
What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |PATCH_TO_REVIEW
https://bugzilla.wikimedia.org/show_bug.cgi?id=71864
--- Comment #6 from Gerrit Notification Bot gerritadmin@wikimedia.org --- Change 171194 merged by jenkins-bot: Export sys.path to pwb scripts
https://gerrit.wikimedia.org/r/171194
https://bugzilla.wikimedia.org/show_bug.cgi?id=71864
John Mark Vandenberg jayvdb@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Status|PATCH_TO_REVIEW |RESOLVED Resolution|--- |FIXED
pywikipedia-bugs@lists.wikimedia.org