[Python] ImageIO ValueError in exe made by pyinstaller

Discussão em 'Python' iniciado por Stack, Março 23, 2025.

  1. Stack

    Stack Membro Participativo

    I made an exe to read images including gifs using pyinstaller. However, the exe can't read gif and the below error occurs. I have installed the latest version of imageio and the program works in interpreter. Could you advise? Thanks in advance.

    The line raising error:

    cv_gif = imageio.mimread(pic_path)


    Error:

    Traceback (most recent call last):
    File "Image Viewer.py", line 3085, in <module>
    File "Image Viewer.py", line 522, in go
    File "Image Viewer.py", line 1264, in ShowANI
    File "imageio\core\functions.py", line 247, in mimread
    File "imageio\core\imopen.py", line 277, in imopen
    ValueError: Could not find a backend to open `C:\Users\simon\Practice\testdir3\alpaca.gif`` with iomode `rI`.
    Based on the extension, the following plugins might add capable backends:
    pillow: pip install imageio[pillow]
    GIF-PIL: pip install imageio[pillow]

    Continue reading...

Compartilhe esta Página