[osgeo4w-dev] [osgeo4w] #760: python3-pillow: enable libtiff support

OSGeo4W trac_osgeo4w at osgeo.org
Mon Sep 19 19:10:13 PDT 2022


#760: python3-pillow: enable libtiff support
------------------------+---------------------------
Reporter:  andreaerdna  |      Owner:  osgeo4w-dev@…
    Type:  enhancement  |     Status:  new
Priority:  major        |  Component:  Package
 Version:               |   Keywords:
------------------------+---------------------------
 Please enable the libtiff support for python3-pillow module in order to
 fully handle tiff images.

 Currently it seems not enabled:


 {{{
 Traceback (most recent call last):
   File "F:\QGIS\OSGEO4~1.10\qgis\apps\Python39\lib\site-
 packages\PIL\Image.py", line 432, in _getdecoder
     decoder = getattr(core, decoder_name + "_decoder")
 AttributeError: module 'PIL._imaging' has no attribute 'libtiff_decoder'

 The above exception was the direct cause of the following exception:

 Traceback (most recent call last):
   File "F:\QGIS\OSGEO4~1.10\qgis\apps\Python39\lib\code.py", line 90, in
 runcode
     exec(code, self.locals)
   File "<input>", line 1, in <module>
   File "F:\QGIS\OSGEO4~1.10\qgis\apps\Python39\lib\site-
 packages\PIL\Image.py", line 2264, in save
     self._ensure_mutable()
   File "F:\QGIS\OSGEO4~1.10\qgis\apps\Python39\lib\site-
 packages\PIL\Image.py", line 626, in _ensure_mutable
     self._copy()
   File "F:\QGIS\OSGEO4~1.10\qgis\apps\Python39\lib\site-
 packages\PIL\Image.py", line 619, in _copy
     self.load()
   File "F:\QGIS\OSGEO4~1.10\qgis\apps\Python39\lib\site-
 packages\PIL\TiffImagePlugin.py", line 1180, in load
     return self._load_libtiff()
   File "F:\QGIS\OSGEO4~1.10\qgis\apps\Python39\lib\site-
 packages\PIL\TiffImagePlugin.py", line 1249, in _load_libtiff
     decoder = Image._getdecoder(
   File "F:\QGIS\OSGEO4~1.10\qgis\apps\Python39\lib\site-
 packages\PIL\Image.py", line 434, in _getdecoder
     raise OSError(f"decoder {decoder_name} not available") from e
 OSError: decoder libtiff not available
 }}}
-- 
Ticket URL: <https://trac.osgeo.org/osgeo4w/ticket/760>
OSGeo4W <http://trac.osgeo.org/osgeo4w>
OSGeo4W is the Windows installer and package environment for the OSGeo stack.


More information about the osgeo4w-dev mailing list