diff --git a/kivy/core/image/img_pil.py b/kivy/core/image/img_pil.py index 18def762c..a405bacf7 100644 --- a/kivy/core/image/img_pil.py +++ b/kivy/core/image/img_pil.py @@ -4,7 +4,12 @@ PIL: PIL image loader __all__ = ('ImageLoaderPIL', ) -import Image as PILImage +try: + import Image as PILImage +except ImportError: + # for python3 + from PIL import Image as PILImage + from kivy.logger import Logger from kivy.core.image import ImageLoaderBase, ImageData, ImageLoader