<html>
<head>
<meta http-equiv="content-type" content="text/html; charset=ISO-8859-1">
</head>
<body bgcolor="#FFFFFF" text="#000000">
Presumably this is a newbie question; apologies in advance, but I
have spent hours trying to RTFM, to no avail. Can anyone help?<br>
<br>
I've installed pylibtiff-0.1-svn.win32.exe since I want to be able
to read a TIFF file. But when I type (in IDLE) I get<br>
<pre><span class="kwd" style="color: rgb(0, 0, 136); ">>>>from</span><span class="pln" style="color: rgb(0, 0, 0); "> libtiff </span><span class="kwd" style="color: rgb(0, 0, 136); ">import</span><span class="pln" style="color: rgb(0, 0, 0); "> </span><span class="typ" style="color: rgb(102, 0, 102); ">TIFFfile</span><span class="pun" style="color: rgb(102, 102, 0); ">,</span><span class="pln" style="color: rgb(0, 0, 0); "> </span><span class="typ" style="color: rgb(102, 0, 102);">TIFFimage</span><span class="typ" style="color: rgb(102, 0, 102);"></span>
Traceback (most recent call last):
File "<pyshell#1>", line 1, in <module>
from libtiff import TIFFfile, TIFFimage
File "E:\Python27\lib\site-packages\libtiff\__init__.py", line 4, in <module>
from .libtiff import libtiff, TIFF
File "E:\Python27\lib\site-packages\libtiff\libtiff.py", line 35, in <module>
raise ImportError('Failed to find TIFF library. Make sure that libtiff is installed and its location is listed in PATH|LD_LIBRARY_PATH|..')
ImportError: Failed to find TIFF library. Make sure that libtiff is installed and its location is listed in PATH|LD_LIBRARY_PATH|..
>>> import sys
>>> print sys.path
['E:\\Python27\\Lib\\idlelib', 'E:\\Windows\\system32\\python27.zip', 'E:\\Python27\\DLLs', 'E:\\Python27\\lib', 'E:\\Python27\\lib\\plat-win', 'E:\\Python27\\lib\\lib-tk', 'E:\\Python27', 'E:\\Python27\\lib\\site-packages']
</pre>
<span class="typ" style="color: rgb(102, 0, 102); "></span>Libtiff
is in the 'E:\\Python27\\lib\\site-packages'
directory as it's supposed to. So is, e.g., Numpy, which imports
just fine.<br>
<br>
What am I doing wrong? FWIW, I tried the PIL package, and had the
same problem (module not found). Why do these modules not import
when Numpy, matplotlib, scipy, etc. import as expected?<br>
<br>
Running Win7, 32bit, Python 2.7.1.<br>
</body>
</html>