question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

ValueError when reading TIFF file with volread on 2.11.1

See original GitHub issue

When opening a TIFF stack with imageio.volread() using version 2.11.1, I get the following message : <tifffile.TiffPage 0 @8> imagej_metadata failed with ValueError: The truth value of an array with more than one element is ambiguous. Use a.any() or a.all() I previously opened the same files with version 2.9.0 without any issue. Considering the message itself, I wonder if it’s because of the update or if it’s numpy dependent ?

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Comments:16 (9 by maintainers)

github_iconTop GitHub Comments

1reaction
BptGrmcommented, Feb 9, 2022

I looked a bit into it, 2022.2.2 shows up on my Linux setup, but not on the Windows setup where I initially encountered the bug. I’ll try to reproduce it on Ubuntu, where I can get 2022.2.2 .

EDIT : my test environment was running Python 3.7, upgrading to Python 3.8 allowed me to install 2022.2.2 which in turn solved the issue. Thanks !

Read more comments on GitHub >

github_iconTop Results From Across the Web

How can I solve this error from TIFF file? - GIS Stack Exchange
LZW: 5> requires the 'imagecodecs' package. This is my code: !pip install tifffile !pip install imagecodecs import numpy import tifffile as tiff ......
Read more >
Value Error in reading tif image with pil in python?
The problem is that PIL wants to see a ".tiff" at the end of the file name. You have ".tif". The solution is...
Read more >
TIFF TIFF format — imageio 2.5.0 documentation
Provides support for a wide range of Tiff images. Images that contain multiple pages can be read using imageio.mimread() to read the individual...
Read more >
Read a bitmap image stored in the TIFF format - R-Project.org
Reads an image from a TIFF file/content into a raster array. ... Either name of the file to read from or a raw...
Read more >
tifffile - PyPI
Read and write TIFF files. ... Julian_datetime raises ValueError for dates before year 1 (breaking). Regressed import time due to typing. 2022.4.8.
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found