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.

Problem importing imageio_ffmpeg in frozen applications

See original GitHub issue

I see this issue with imageio 2.16.1 I don’t see this issue with imageio 2.10.3

This might have been caused by https://github.com/imageio/imageio/commit/bdbe699bbcda4223b0b6bd4d7474f84bbe34af09 (which appeared first in imageio 2.11).

For some reason imageio cannot import the imageio_ffmpeg module in frozen applications anymore.

This is the imageio-related traceback that I get:

  File "imageio\core\functions.py", line 98, in get_reader
  File "imageio\core\imopen.py", line 332, in imopen
ValueError: Could not find a backend to open `C:\Users\Paul\Downloads\fmt-tdms_fl-image-bright_2017\M4_0.040000ul_s_imaq.avi`` with iomode `r?`.
Based on the extension, the following plugins might add capable backends:
  FFMPEG:  pip install imageio[ffmpeg]

I checked an imageio_ffmpeg got bundled into the application.

Issue Analytics

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

github_iconTop GitHub Comments

1reaction
paulmuellercommented, Mar 15, 2022

I created the PR for PyInstaller. It might make sense to update the docs section on freezing with a note that there are hooks for imageio (including plugins) and imageio_ffmpeg and everything that does not require any additional binaries should just work with pyinstaller-hooks-contrib version greater than 2022.2.

1reaction
paulmuellercommented, Mar 15, 2022

OK. I can do that. The PR would be with Pyinstaller. I will let you know here. Please keep this open in the meantime.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Deprecation error when using imageio.ffmpeg.download()
I'm trying to merge the prerecorded videos using python Opencv. But i'm getting the error while importing. "Traceback (most recent call last): File ......
Read more >
Deprecation error when using imageio.ffmpeg.download()
I'm trying to merge the prerecorded videos using python Opencv. But i'm getting the error while importing ...
Read more >
3D time image gets stuck - Usage & Issues
Hello, I have a 3D timecourse image: Two photon movie The image seems to get stuck when I am switching to 3D mode:...
Read more >
i got error Unable to import backend : plaidml.keras.backend
i already re-instaled faceswap and still got error i try edit keras.json with backend": "tensorflow but still got error
Read more >
Release 2.6.1 imageio contributors
Raises an RuntimeError if urlopen could not be imported. (which can occur in frozen applications. class imageio.core.Array(array, meta=None). A ...
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