modelscope/FunASR

pyinstaller6.11版本打包后运行报错

Opened this issue · 1 comments

F:\gitwork\asr\runtime\python\websocket\dist>funasr_wss_server.exe
model loading
funasr version: 1.1.11.
model_conf {'model': './models/iic/speech_paraformer-large_asr_nat-zh-cn-16k-common-vocab8404-pytorch', 'model_revision': 'v2.0.4', 'ngpu': 1, 'ncpu': 4, 'device': 'cuda', 'disable_pbar': True, 'disable_log': True, 'disable_update': True}
INFO:root:download models from model hub: ms
Traceback (most recent call last):
File "funasr_wss_server.py", line 79, in
File "funasr\auto\auto_model.py", line 125, in init
File "funasr\auto\auto_model.py", line 223, in build_model
TypeError: 'NoneType' object is not callable
[PYI-22532:ERROR] Failed to execute script 'funasr_wss_server' due to unhandled exception!
有遇到类似的吗?

同问, 请问解决了吗 @SFidea
我看源码,是这一行报错
tokenizer = tokenizer_class(**tokenizer_conf)
是什么依赖包没有打进去吗