numpy-tutorials icon indicating copy to clipboard operation
numpy-tutorials copied to clipboard

imageio.imread replaced with imageio.v2.imread

Open rifatrakib opened this issue 2 years ago • 2 comments

imageio.imread is not supported anymore, imageio.v2.imread is suggested as a replacement from the module maintainers.

rifatrakib avatar Aug 10 '22 10:08 rifatrakib

I am using Python 3.8.5 with conda, it worked perfectly fine in my setup. But since v3 is the latest way of doing this, I will make adjustments accordingly. Thanks for the feedback.

rifatrakib avatar Aug 10 '22 10:08 rifatrakib

Okay, it looks like a dependency resolution problem. We're getting very old versions of both Pillow (which is requiring a local wheel build, which is subsequently failing) and imageio (which explains why imageio.v2 or imageio.v3 fails - because these pkgs don't exist yet in imageio v2.9.0).

I suspect this is related to the gym/ataripy dependencies for the RL notebook. This change looks good, but unfortunately will be blocked until we fix this other dependency problem. If nothing else, this is a strong motivation to remove these unsupported dependencies, which I will try to do ASAP.

Thanks for the fixup @rifatrakib . Sorry it's not going as quickly as it should do to the nice can of worms you've inadvertently discovered!

rossbar avatar Aug 10 '22 11:08 rossbar