UserWarning: PySoundFile failed. Trying audioread instead.

老子安装librosa后出现这个warning,真是够了,啥玩意。虽是警告,但看起来不顺眼,不舒服,想去掉。

完整错误如下:

UserWarning: PySoundFile failed. Trying audioread instead.
  warnings.warn('PySoundFile failed. Trying audioread instead.')

我之前安装librosa后也没出现这个警示啊,难道这个库用新的依赖库了??那么可以降级试试。

果然是版本更新的问题,降级为0.6.1完美解决。

拜拜。

另外有相关问题可以加入QQ群讨论,不设微信群

QQ群:868373192 

语音图像视频深度-学习群

C:\Users\Lenovo\anaconda3\python.exe -X pycache_prefix=C:\Users\Lenovo\AppData\Local\JetBrains\PyCharm2023.3\cpython-cache "C:/Program Files/JetBrains/PyCharm 2023.3.6/plugins/python/helpers/pydev/pydevd.py" --multiprocess --qt-support=auto --client 127.0.0.1 --port 57735 --file C:\Users\Lenovo\PycharmProjects\毕设\1.py 已连接到 pydev 调试器(内部版本号 233.15325.20)C:\Users\Lenovo\anaconda3\Lib\site-packages\torch\distributed\distributed_c10d.py:366: UserWarning: torch.distributed.reduce_op is deprecated, please use torch.distributed.ReduceOp instead warnings.warn( C:\Users\Lenovo\anaconda3\Lib\site-packages\paramiko\transport.py:219: CryptographyDeprecationWarning: Blowfish has been deprecated and will be removed in a future release "class": algorithms.Blowfish, C:\Users\Lenovo\PycharmProjects\毕设\1.py:20: UserWarning: PySoundFile failed. Trying audioread instead. y, sr = librosa.load(file_path, sr=sr) C:\Users\Lenovo\anaconda3\Lib\site-packages\librosa\core\audio.py:184: FutureWarning: librosa.core.audio.__audioread_load Deprecated as of librosa version 0.10.0. It will be removed in librosa version 1.0. y, sr_native = __audioread_load(path, offset, duration, dtype) Traceback (most recent call last): File "C:\Users\Lenovo\anaconda3\Lib\site-packages\librosa\core\audio.py", line 176, in load y, sr_native = __soundfile_load(path, offset, duration, dtype) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "C:\Users\Lenovo\anaconda3\Lib\site-packages\librosa\core\audio.py", line 209, in __soundfile_load context = sf.SoundFile(path) ^^^^^^^^^^^^^^^^^^ File "C:\Users\Lenovo\anaconda3\Lib\site-packages\soundfile.py", line 690, in __init__ self._file = self._open(file, mode_int, closefd) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "C:\Users\Lenovo\anaconda3\Lib\site-packages\soundfile.py", line 1265, in _open raise LibsndfileError(err, prefix="Error opening {0!r}: ".format(self.name)) soundfile.LibsndfileError: Error opening 'exa
最新发布
04-02
评论 13
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包

打赏作者

小李飞刀李寻欢

您的欣赏将是我奋斗路上的动力!

¥1 ¥2 ¥4 ¥6 ¥10 ¥20
扫码支付:¥1
获取中
扫码支付

您的余额不足,请更换扫码支付或充值

打赏作者

实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值