[Debian-med-packaging] Bug#838266: python-libtiff: Missing libtiff5-dev dependency and needs root access

Adrian Bunk bunk at stusta.de
Mon Sep 19 09:18:00 UTC 2016


Package: python-libtiff
Version: 0.4.1~20150805-1
Severity: serious
Tags: fixed-upstream

>>> import libtiff
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "/usr/lib/python2.7/dist-packages/libtiff/__init__.py", line 20, in <module>
    from .libtiff_ctypes import libtiff, TIFF, TIFF3D
  File "/usr/lib/python2.7/dist-packages/libtiff/libtiff_ctypes.py", line 87, in <module>
    raise ValueError('Failed to find TIFF header file (may be need to run: sudo apt-get install libtiff4-dev)')
ValueError: Failed to find TIFF header file (may be need to run: sudo apt-get install libtiff4-dev)
>>> 

libtiff5-dev should be a dependency of python-libtiff.


After installing it, I get:

>>> import libtiff
Generating '/usr/lib/python2.7/dist-packages/libtiff/tiff_h_4_0_6.py'
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "/usr/lib/python2.7/dist-packages/libtiff/__init__.py", line 20, in <module>
    from .libtiff_ctypes import libtiff, TIFF, TIFF3D
  File "/usr/lib/python2.7/dist-packages/libtiff/libtiff_ctypes.py", line 117, in <module>
    f = open(fn, 'w')
IOError: [Errno 13] Permission denied: '/usr/lib/python2.7/dist-packages/libtiff/tiff_h_4_0_6.py'
>>> 

In Launchpad #1595540 it is claimed that this is fixed in upstream git.


If I understand the upstream changes correctly upstream fixed this
by shipping the TIFF header, also removing the need for libtiff5-dev.

Ideally the header should be created at build time and not shipped in git
(for avoiding problems with future libtiff API changes).



More information about the Debian-med-packaging mailing list