Your message dated Fri, 18 Dec 2015 13:28:15 +0000
with message-id <e1a9v4x-0000hz...@franck.debian.org>
and subject line Bug#808279: fixed in tilestache 1.49.8-2
has caused the Debian Bug report #808279,
regarding Patch for python-pil bug #808238
to be marked as done.

This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
Bug report if necessary, and/or fix the problem forthwith.

(NB: If you are a system administrator and have no idea what this
message is talking about, this may indicate a serious mail system
misconfiguration somewhere. Please contact ow...@bugs.debian.org
immediately.)


-- 
808279: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=808279
Debian Bug Tracking System
Contact ow...@bugs.debian.org with problems
--- Begin Message ---
Package: tilestache
Version: 1.49.8-1
Severity: normal

This is a fix for bug #808238 from Python-pil

Tilestache uses PIL.Image.fromstring, which has been deprecated in Pillow since 2.0.0, and has now been removed in 3.0.0.

Patch follows:

diff --git a/TileStache/Mapnik.py b/TileStache/Mapnik.py
index 24120a8..64d74bf 100644
--- a/TileStache/Mapnik.py
+++ b/TileStache/Mapnik.py
@@ -128,7 +128,12 @@ class ImageProvider:
                 # always release the lock
                 global_mapnik_lock.release()

-        img = Image.fromstring('RGBA', (width, height), img.tostring())
+        if hasattr(Image, 'frombytes'):
+            # Image.fromstring is deprecated past Pillow 2.0
+            img = Image.frombytes('RGBA', (width, height), img.tostring())
+        else:
+            # PIL still uses Image.fromstring
+            img = Image.fromstring('RGBA', (width, height), img.tostring()

logging.debug('TileStache.Mapnik.ImageProvider.renderArea() %dx%d in %.3f from %s', width, height, time() - start_time, self.mapfile)

diff --git a/TileStache/Pixels.py b/TileStache/Pixels.py
index d17faa0..bfebbb0 100644
--- a/TileStache/Pixels.py
+++ b/TileStache/Pixels.py
@@ -100,7 +100,13 @@ def apply_palette(image, palette, t_index):

         indexes.append(mapping[(r, g, b)])

-    output = Image.fromstring('P', image.size, ''.join(indexes))
+    if hasattr(Image, 'frombytes'):
+        # Image.fromstring is deprecated past Pillow 2.0
+        output = Image.frombytes('P', image.size, ''.join(indexes))
+    else:
+        # PIL still uses Image.fromstring
+        output = Image.fromstring('P', image.size, ''.join(indexes))
+
     bits = int(ceil(log(len(palette)) / log(2)))

     palette += [(0, 0, 0)] * (256 - len(palette))

--- End Message ---
--- Begin Message ---
Source: tilestache
Source-Version: 1.49.8-2

We believe that the bug you reported is fixed in the latest version of
tilestache, which is due to be installed in the Debian FTP archive.

A summary of the changes between this version and the previous one is
attached.

Thank you for reporting the bug, which will now be closed.  If you
have further comments please address them to 808...@bugs.debian.org,
and the maintainer will reopen the bug report if appropriate.

Debian distribution maintenance software
pp.
Bas Couwenberg <sebas...@debian.org> (supplier of updated tilestache package)

(This message was generated automatically at their request; if you
believe that there is a problem with it please contact the archive
administrators by mailing ftpmas...@ftp-master.debian.org)


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA512

Format: 1.8
Date: Fri, 18 Dec 2015 13:44:43 +0100
Source: tilestache
Binary: tilestache
Architecture: source all
Version: 1.49.8-2
Distribution: unstable
Urgency: medium
Maintainer: Debian GIS Project <pkg-grass-devel@lists.alioth.debian.org>
Changed-By: Bas Couwenberg <sebas...@debian.org>
Description:
 tilestache - map tiles caching system
Closes: 808279
Changes:
 tilestache (1.49.8-2) unstable; urgency=medium
 .
   * Add patch by Eric Soroos for Pillow 3.0.0 support.
     (closes: #808279)
   * Add upstream metadata.
   * Update Vcs-Browser URL to use HTTPS.
Checksums-Sha1:
 57b76d1eb37ddb9f30e44a7c47b705e11c86593b 2017 tilestache_1.49.8-2.dsc
 9b252c962acf6c2383613a433bbc1a28c77f8607 7880 tilestache_1.49.8-2.debian.tar.xz
 b9342071a7fcb8de13180f81d126d0c921563a69 156764 tilestache_1.49.8-2_all.deb
Checksums-Sha256:
 390e34d840a58985c7b19c736455fac5af7196fe802d6e0cf418f28409d079c8 2017 
tilestache_1.49.8-2.dsc
 82cd576dda636182e54d1f990dfa0aeab9716284ce38b2b47e19193cb471ae58 7880 
tilestache_1.49.8-2.debian.tar.xz
 84858cd72b3c2a237a637fd49399e35c4928b9a8ea13ea209180ad00b37f5610 156764 
tilestache_1.49.8-2_all.deb
Files:
 b9fb2decbf120d3a2e9aaf3238458c00 2017 web extra tilestache_1.49.8-2.dsc
 ff6979167dbc0583be186226a8fcc295 7880 web extra 
tilestache_1.49.8-2.debian.tar.xz
 50a3c8757b3c1cb4086b3f18a014a841 156764 web extra tilestache_1.49.8-2_all.deb

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1

iQIcBAEBCgAGBQJWdAN6AAoJEGdQ8QrojUrxBRcP/jiRNmoAls070ao0thmfJgYU
Jn1yR+tI9Iux+xn47ISO9dnyVXuqu3kMXaC4ijepLxHWCrPqzTlIaaznhXBw+OIc
wl5scXA4v5Q4QOLjEGiSnfuLqoAQnv/XKmD5wXeNzSQy6vJAx7MvFeXd47QJOQWg
PPoOTP/ilNI4nhvgfWwyKddrMSocwuv9AsrEsPgTYAqBYEwElJdQLDynkOFTBLqn
m7PsLdh9riakNyZSop2bICunY4dvTzb0tTFUSWj8GbwuXZ4CAh3luVsFgHM5QOuW
ugG5Avod7XauQ5g5HhgSpIw1XQW6QAKn5f+UjjSiwvZc5bSVO7+Vhcmk6t2hDR+N
tWh+b6ycALDWmHIEP2vmhpa3iTTa5ZST2gg0pl+ASL0PFzBFVTz5/RDUUPu1LeSy
id3ebUvMoubxK+0MV+B/u9PSYsNtq7I9g0LiIERgVJKhpQWogvrBUGjp+e96SD4Y
jQrMze+sUz3eghwFTUqLmHbbuF7Y9A8x7Ww/o7Eb1vIPPV5Yn2QY6FUKRFZC0txy
E73PA6OA/UKG8jxU4JmjtCeMk6kpm9pMmT4Vqg1q9nXQcJKQ4kJ9h66R+96HdIJc
V7FyMid/ifYZD3kMJ2Nyu8OS+00oh9ZTy39ZQ5wAVrP32X4PYkjXW0yG36WK7Fby
KBYr0ueN6QkXnrPA4uaK
=J/0f
-----END PGP SIGNATURE-----

--- End Message ---
_______________________________________________
Pkg-grass-devel mailing list
Pkg-grass-devel@lists.alioth.debian.org
http://lists.alioth.debian.org/cgi-bin/mailman/listinfo/pkg-grass-devel

Reply via email to