Kivy: [ERROR] [AudioGstplayer] Resource not found

I am new to Kivy, when I run this code, I get an error:

[INFO   ] [Logger      ] Record log in /home/kid/.kiv /logs/kivy_15-08-30_30.txt
[INFO   ] [Kivy        ] v1.9.1-dev
[INFO   ] [Python      ] v2.7.6 (default, Jun 22 2015, 17:58:13) 
[GCC 4.8.2]
[INFO   ] [AudioGstplayer] Using Gstreamer 1.2.4.0
[INFO   ] [Audio       ] Providers: audio_gstplayer, audio_sdl2(audio_ffpyplayer ignored)
Sound found at a better day.mp3
[ERROR  ] [AudioGstplayer] Resource not found.
[ERROR  ] [AudioGstplayer] Resource not found.
Sound is -1.000 seconds

full code:

from kivy.core.audio import SoundLoader

sound = SoundLoader.load('a better day.mp3')
if sound:
    print("Sound found at %s" % sound.source)
    print("Sound is %.3f seconds" % sound.length)
    sound.play()
+4
source share
2 answers

You do not have your “better day .mp3” with the file name in your folder. That is why it shows this error because it cannot find this audio file (resource not found).

0
source

I got this error [ERROR] [AudioGstplayer] b'IAudioRenderClient :: GetBuffer failed (88890004): AUDCLNT_E_DEVICE_INVALIDATED '

please, help

0
source

All Articles