4
我是很新,Kivy,當我運行此代碼,我得到的錯誤:Kivy:[錯誤] [AudioGstplayer]未找到資源
[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
全碼:
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()
您可能在kivy郵件列表或irc上有更好的運氣,但我不確定是否存在健全的問題,但其他開發人員更可能在那裏看到問題。 – inclement
我得到了同樣的錯誤:)請幫助 –