danforthcenter / plantcv

Plant phenotyping with image analysis
Mozilla Public License 2.0
659 stars 264 forks source link

Unable to read ENVI pcv.readimage(filename=, mode = "ENVI") ERROR #1173

Closed JSCG95 closed 8 months ago

JSCG95 commented 1 year ago

RuntimeError: Interleave type BIP is not supported.

I've tried to install plantcv in a different environment, uninstall it, install it again but the problem persists.

However, I'm able to read the same file in a different computer that has installed the exact same plantcv 3.14.3 as the computer that is not able to read it. Both installed exactly the same way through conda.

JSCG95 commented 1 year ago

ERROR HERE:

File ~.conda\envs\env_plantcv\lib\site-packages\spyder_kernels\py3compat.py:356 in compat_exec exec(code, globals, locals)

File c:\users\jcard\onedrive - university of georgia\side_projects\rayn_camera\rayn_analysis\msi_analysis.py:28 spectral= pcv.readimage(filename=unknown_file, mode = "ENVI")

File ~\AppData\Roaming\Python\Python310\site-packages\plantcv\plantcv\readimage.py:41 in readimage array_data = read_data(filename)

File ~\AppData\Roaming\Python\Python310\site-packages\plantcv\plantcv\hyperspectral\read_data.py:172 in read_data fatal_error(f"Interleave type {interleave_type} is not supported.")

File ~\AppData\Roaming\Python\Python310\site-packages\plantcv\plantcv\fatal_error.py:13 in fatal_error raise RuntimeError(error)

RuntimeError: Interleave type BIP is not supported.

nfahlgren commented 1 year ago

Hi @JSCG95, sorry for the delay. We added support for BIP in v3.14.2, so I think conda is installing an older version in your new environment, for some reason