> Presumably this is a newbie question; apologies in advance, but I have spent > hours trying to RTFM, to no avail. Can anyone help? > > 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 > >>>from libtiff import TIFFfile, TIFFimage > 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'] > Libtiff is in the 'E:\\Python27\\lib\\site-packages' directory as it's > supposed to. So is, e.g., Numpy, which imports just fine. > > 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?
Just a shot in the dark here... Maybe they were not installed properly? How did you install Python and the modules? Do you have more than one installed version of Python? Ramit Ramit Prasad | JPMorgan Chase Investment Bank | Currencies Technology 712 Main Street | Houston, TX 77002 work phone: 713 - 216 - 5423 -- This email is confidential and subject to important disclaimers and conditions including on offers for the purchase or sale of securities, accuracy and completeness of information, viruses, confidentiality, legal privilege, and legal entity disclaimers, available at http://www.jpmorgan.com/pages/disclosures/email. _______________________________________________ Tutor maillist - Tutor@python.org To unsubscribe or change subscription options: http://mail.python.org/mailman/listinfo/tutor