From 89b15dae131847e615484f273d8e6b3c50edd229 Mon Sep 17 00:00:00 2001 From: scorpp Date: Wed, 7 Oct 2015 14:02:14 +0000 Subject: [PATCH] make it work with latest pillow-3.0.0 According to [1] Image.fromstring() method has been deprecaed for a while and have now been removed. This path replaces Image.fromstring() with Image.frombytes() just as exception message says. [1] http://pillow.readthedocs.org/en/3.0.x/releasenotes/3.0.0.html#deprecated-methods --- oblogout/__init__.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/oblogout/__init__.py b/oblogout/__init__.py index 69ca4c5..bc4d402 100755 --- a/oblogout/__init__.py +++ b/oblogout/__init__.py @@ -148,7 +148,7 @@ def __init_window(self): self.logger.debug("Rendering Fade") # Convert Pixbuf to PIL Image wh = (pb.get_width(),pb.get_height()) - pilimg = Image.fromstring("RGB", wh, pb.get_pixels()) + pilimg = Image.frombytes("RGB", wh, pb.get_pixels()) pilimg = pilimg.point(lambda p: (p * self.opacity) / 255 )