Issue when using tifffile 2020.10.1 inside KNIME scripting node with memmap

Hi, I just tried to use tifffile 2020.10.1inside a KNIME scripting node (python 3.7.6) and got stuck (see below). When I try the same outside of KNIME it works ok, so I might also not a tifffile issue at all. But any hint or help is appreciated.

The reason seems to be an outdated version of tifffile used by KNIME despite the fact that I specified a specific python environment which is using the latest version of tiffffile.

cannot import name 'memmap' from 'tifffile' (/home/sebi06/programs/knime/configuration/org.eclipse.osgi/578/0/.cp/py/tifffile.py)
Traceback (most recent call last):
File "<string>", line 10, in <module>
  File "/home/sebi06/miniconda3/envs/imageanalysis/lib/python3.7/site-packages/czitools-0.0.1-py3.7.egg/czitools/__init__.py", line 1, in <module>
    from .imgfileutils import get_imgtype, get_metadata, get_metadata_ometiff
  File "/home/sebi06/miniconda3/envs/imageanalysis/lib/python3.7/site-packages/czitools-0.0.1-py3.7.egg/czitools/imgfileutils.py", line 14, in <module>
    import czifile as zis
  File "/home/sebi06/miniconda3/envs/imageanalysis/lib/python3.7/site-packages/czifile/__init__.py", line 4, in <module>
    from .czifile import __doc__, __all__, __version__
  File "/home/sebi06/miniconda3/envs/imageanalysis/lib/python3.7/site-packages/czifile/czifile.py", line 208, in <module>
    from tifffile import (
ImportError: cannot import name 'memmap' from 'tifffile' (/home/sebi06/programs/knime/configuration/org.eclipse.osgi/578/0/.cp/py/tifffile.py)

See also:

Hi @sebi06,

The KNIME Image Processing Python extension uses a custom patched version of tiffile, you can see that this version of tifffile is used by python in the first line of the error message:

You can find the patched version of tiffile here:

There might be some issue with your python environment conflicting with that file. Can you maybe post both your conda env as well as your python script ?

best,
Gabriel