HistomicsTK icon indicating copy to clipboard operation
HistomicsTK copied to clipboard

Installation of large_image on Linux

Open naveenagorre opened this issue 2 years ago • 4 comments

Hi I'm working on installing and running large_image on a Linux, Conda environment using pip install, I have also installed other dependencies - tifftools, large-image-source-tiff but still it's throwing tilesource error (attached).

I tried searching online for any dll's I'm missing but no luck so far:

File "/opt/conda/lib/python3.8/site-packages/libtiff/libtiff_ctypes.py", line 46, in raise ImportError('Failed to find TIFF library. Make sure that libtiff ' ImportError: Failed to find TIFF library. Make sure that libtiff is installed and its location is listed in PATH|LD_LIBRARY_PATH|

Please let me know of any solutions.

naveenagorre avatar Nov 16 '21 22:11 naveenagorre

As the error says, you need to install libtiff. As described in the README, you can do this with a python wheel that we publish (e.g., pip install --find-links https://girder.github.io/large_image_wheels large-image-source-tiff), or you can install libtiff with a package manager.

manthey avatar Nov 16 '21 22:11 manthey

Hi Manthey, thank you for the response. I have already installed libtiff using pip install but even then it's throwing me the tile source issue. Please let me know of any ambiguities

naveenagorre avatar Nov 16 '21 22:11 naveenagorre

If you didn't use the wheels to install it initially, then pip will use the cached version and not the wheels. You'll need to tell pip to reinstall it without using the cache (maybe pip install --no-cache-dir --force-reinstall ...)

manthey avatar Nov 16 '21 22:11 manthey

Hello Manthey, I have tried doing the force-reinstall as well but still doesn't solve the issue. Please let me know of any alternatives.

naveenagorre avatar Nov 17 '21 19:11 naveenagorre