Thursday, April 14, 2016

ImportError: cannot import name ImageTk

Current Raspbian Jessie come with PIL installed by default, but no ImageTk. If you run Python script (such as in "Python to capture image from Pi Camera Module, with image effects") reported with error:
ImportError: cannot import name ImageTk

Install python-imaging-tk
$ sudo apt-get install python-imaging-tk


No comments: