community icon indicating copy to clipboard operation
community copied to clipboard

kivy-examples programs produce consistent warning and error when accessing video file

Open scottfurry opened this issue 2 years ago • 0 comments

Software Versions

  • Python: 3.10.5
  • OS: Gentoo X86_64 - Kernel 5.15.52
  • Kivy: 2.1.0
  • Kivy installation method: both virtual environment and Gentoo Ebuild (package install similar in nature to RPM's or DEB's but for source install)

Describe the bug Executing example programs consistently produces an error and warning message that mpg video file, cityCC0.mpg, cannot be found. Example programs:

  • kivy-examples/demo/kivycatalog/main.py
  • kivy-examples/cover/cover_video.py
  • kivy-examples/widgets/videoplayer.py

Bug differs from #7567 as that bug discusses missing video provider under a different OS. This bug is raising possibility that there may be an issue with locating/loading a video file in the kivy framework.

kivycatalog also references an image file, cityCC0.png, that is located in the same directory as the mpg file. No warnings or errors regarding image loading/display are encountered. The referenced mpg file exists in the file system and has the same permissions as the image file.

When executing example programs from a virtual environment, the mpg file will produce error messages on the console but will be rendered/played in its widget/window.

When executing example programs from an ebuild install, the mpg file will produce error messages on the console and will not be rendered.

Expected behavior Rendering and playback of video file without warning or error on the console.

To Reproduce Execute example programs from the command line. Problem appears consistent, however all reference same video mpg file.

Code and Logs and screenshots Example programs mentioned consistently produce the following output on the console:

...
[WARNING] [Image       ] Unable to load image </usr/share/kivy-examples/widgets/cityCC0.mpg>
[ERROR  ] [Image       ] Error loading <../../widgets/cityCC0.mpg>
...

Additional context Loading and playback of another video file has not been tested.

scottfurry avatar Aug 03 '22 14:08 scottfurry