语音生成功能+自定义回复
-
此回复已被删除! -
请问一下修改了bot.py后运行该文件后出现cmd窗口又马上崩掉了是怎么回事
-
@幻空zzz 先打开cmd,然后把bot.py拖进去回车,看看报错。
-
@Anstiya 报错为ModuleNotFoundError: no module named 'mirai'
使用pip install mirai后 -
@幻空zzz pip install yiri-mirai
-
@Anstiya 还是一样
-
@幻空zzz 看看后面的报错
-
@Anstiya 一样是ModuleNotFoundError: no module named 'mirai'
-
@幻空zzz python版本是?报错应该是来自yiri-mirai,yiri-mirai对python3.10及以上版本似乎是不支持的
-
@Anstiya 是3.8.6
-
此回复已被删除! -
@幻空zzz 更换python解释器到3.9.0试试吧
-
大佬这个报错该怎么解决 -
此回复已被删除! -
@Anstiya 刚升级的3.9.0版本😭
-
@rinkwh 更换一下librosa的版本试试,我自己用的0.8.1
-
@Anstiya 这回是这个了
python: can't open file '/root/PythonPlugins/bot.ph': [Errno 2] No such file or
directory
[root@VM-24-3-centos PythonPlugins]# python bot.py
Traceback (most recent call last):
File "/usr/local/python3.9/lib/python3.9/site-packages/soundfile.py", line 151
, in <module>
raise OSError('sndfile library not found')
OSError: sndfile library not found
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/usr/local/python3.9/lib/python3.9/site-packages/soundfile.py", line 178
, in <module>
_snd = _ffi.dlopen(_os.path.join(_path, '_soundfile_data', packaged_libname
))
OSError: cannot load library '/usr/local/python3.9/lib/python3.9/site-packages/
soundfile_data/libsndfile.so': /usr/local/python3.9/lib/python3.9/site-packages/
_soundfile_data/libsndfile.so: cannot open shared object file: No such file or d
irectory
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/root/PythonPlugins/bot.py", line 6, in <module>
from MoeGoe import voiceGenerate
File "/root/PythonPlugins/MoeGoe.py", line 5, in <module>
from mel_processing import spectrogram_torch
File "/root/PythonPlugins/mel_processing.py", line 3, in <module>
from librosa.filters import mel as librosa_mel_fn
File "/usr/local/python3.9/lib/python3.9/site-packages/librosa/init.py", l
ine 211, in <module>
from . import core
File "/usr/local/python3.9/lib/python3.9/site-packages/librosa/core/init.p
y", line 6, in <module>
from .audio import * # pylint: disable=wildcard-import
File "/usr/local/python3.9/lib/python3.9/site-packages/librosa/core/audio.py",
line 8, in <module>
import soundfile as sf
File "/usr/local/python3.9/lib/python3.9/site-packages/soundfile.py", line 189
, in <module>
_snd = _ffi.dlopen(_libname)
OSError: cannot load library 'libsndfile.so': libsndfile.so: cannot open shared
object file: No such file or directory -
@rinkwh 在 语音生成功能。支持宁宁自爆语音 中说:
OSError: cannot load library 'libsndfile.so': libsndfile.so: cannot open shared
object file: No such file or directory依然是librosa的问题,搜了一下,找到了类似的帖子链接,依然不行的话用venv\lib文件夹里的site-package把本地的替换掉试试。
-
@rinkwh 上午在服务器也鼓捣出了这个报错,刚修改了requirements.txt,把site-package也上传了。重新安装需求(有报错时把site-package中对应的包复制到本地python的lib\site-package可解决)
-
@Anstiya 好的好的,但是佬github上的好像还没更新