|
|
马上注册,结交更多好友,享用更多功能^_^
您需要 登录 才可以下载或查看,没有账号?立即注册
x
报错如下,麻烦又大神给指点下如何解决,谢谢了。。
Traceback (most recent call last):
File "C:\Users\Administrator\AppData\Local\Programs\Python\Python37-32\lib\site-packages\pyglet\media\codecs\wave.py", line 59, in __init__
self._wave = wave.open(file)
File "C:\Users\Administrator\AppData\Local\Programs\Python\Python37-32\lib\wave.py", line 510, in open
return Wave_read(f)
File "C:\Users\Administrator\AppData\Local\Programs\Python\Python37-32\lib\wave.py", line 164, in __init__
self.initfp(f)
File "C:\Users\Administrator\AppData\Local\Programs\Python\Python37-32\lib\wave.py", line 131, in initfp
raise Error('file does not start with RIFF id')
wave.Error: file does not start with RIFF id
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "D:\py\5.py", line 9, in <module>
mp3 = pyglet.resource.media('music.mp3')
File "C:\Users\Administrator\AppData\Local\Programs\Python\Python37-32\lib\site-packages\pyglet\resource.py", line 678, in media
return media.load(path, streaming=streaming)
File "C:\Users\Administrator\AppData\Local\Programs\Python\Python37-32\lib\site-packages\pyglet\media\__init__.py", line 143, in load
raise first_exception
File "C:\Users\Administrator\AppData\Local\Programs\Python\Python37-32\lib\site-packages\pyglet\media\__init__.py", line 133, in load
loaded_source = decoder.decode(file, filename, streaming)
File "C:\Users\Administrator\AppData\Local\Programs\Python\Python37-32\lib\site-packages\pyglet\media\codecs\wave.py", line 109, in decode
return WaveSource(filename, file)
File "C:\Users\Administrator\AppData\Local\Programs\Python\Python37-32\lib\site-packages\pyglet\media\codecs\wave.py", line 61, in __init__
raise WAVEDecodeException(e)
pyglet.media.codecs.wave.WAVEDecodeException: file does not start with RIFF id |
|