-
Notifications
You must be signed in to change notification settings - Fork 1.9k
Open
Description
The error from the terminal as follow:
Traceback (most recent call last):
File "/home/jerry/code/dasai/voice_model/streaming_asr_server/local/streaming_asr_server.py", line 17, in <module>
from paddlespeech.server.bin.paddlespeech_server import ServerExecutor
File "/home/jerry/anaconda3/envs/match/lib/python3.10/site-packages/paddlespeech/server/__init__.py", line 20, in <module>
from .bin.paddlespeech_client import ASRClientExecutor
File "/home/jerry/anaconda3/envs/match/lib/python3.10/site-packages/paddlespeech/server/bin/__init__.py", line 16, in <module>
from .paddlespeech_server import ServerExecutor
File "/home/jerry/anaconda3/envs/match/lib/python3.10/site-packages/paddlespeech/server/bin/paddlespeech_server.py", line 26, in <module>
from paddlespeech.server.restful.api import setup_router as setup_http_router
File "/home/jerry/anaconda3/envs/match/lib/python3.10/site-packages/paddlespeech/server/restful/api.py", line 23, in <module>
from paddlespeech.server.restful.text_api import router as text_router
File "/home/jerry/anaconda3/envs/match/lib/python3.10/site-packages/paddlespeech/server/restful/text_api.py", line 21, in <module>
from paddlespeech.server.engine.text.python.text_engine import PaddleTextConnectionHandler
File "/home/jerry/anaconda3/envs/match/lib/python3.10/site-packages/paddlespeech/server/engine/text/python/text_engine.py", line 19, in <module>
from paddlespeech.cli.text.infer import TextExecutor
File "/home/jerry/anaconda3/envs/match/lib/python3.10/site-packages/paddlespeech/cli/text/__init__.py", line 14, in <module>
from .infer import TextExecutor
File "/home/jerry/anaconda3/envs/match/lib/python3.10/site-packages/paddlespeech/cli/text/infer.py", line 29, in <module>
from paddlespeech.text.models.ernie_linear import ErnieLinear
File "/home/jerry/anaconda3/envs/match/lib/python3.10/site-packages/paddlespeech/text/models/__init__.py", line 14, in <module>
from .ernie_crf import ErnieCrf
File "/home/jerry/anaconda3/envs/match/lib/python3.10/site-packages/paddlespeech/text/models/ernie_crf/__init__.py", line 14, in <module>
from .model import ErnieCrf
File "/home/jerry/anaconda3/envs/match/lib/python3.10/site-packages/paddlespeech/text/models/ernie_crf/model.py", line 16, in <module>
from paddlenlp.layers.crf import LinearChainCrf
File "/home/jerry/anaconda3/envs/match/lib/python3.10/site-packages/paddlenlp/__init__.py", line 35, in <module>
from . import (
File "/home/jerry/anaconda3/envs/match/lib/python3.10/site-packages/paddlenlp/data/__init__.py", line 18, in <module>
from .data_collator import *
File "/home/jerry/anaconda3/envs/match/lib/python3.10/site-packages/paddlenlp/data/data_collator.py", line 26, in <module>
from ..transformers import BertTokenizer
File "/home/jerry/anaconda3/envs/match/lib/python3.10/site-packages/paddlenlp/transformers/__init__.py", line 17, in <module>
from .model_utils import PretrainedModel, register_base_model
File "/home/jerry/anaconda3/envs/match/lib/python3.10/site-packages/paddlenlp/transformers/model_utils.py", line 66, in <module>
from ..generation import GenerationConfig, GenerationMixin
File "/home/jerry/anaconda3/envs/match/lib/python3.10/site-packages/paddlenlp/generation/__init__.py", line 33, in <module>
from .streamers import BaseStreamer, TextIteratorStreamer, TextStreamer
File "/home/jerry/anaconda3/envs/match/lib/python3.10/site-packages/paddlenlp/generation/streamers.py", line 18, in <module>
from paddlenlp.transformers.tokenizer_utils import PretrainedTokenizer
File "/home/jerry/anaconda3/envs/match/lib/python3.10/site-packages/paddlenlp/transformers/tokenizer_utils.py", line 61, in <module>
from .utils import InitTrackerMeta, fn_args_to_dict
File "/home/jerry/anaconda3/envs/match/lib/python3.10/site-packages/paddlenlp/transformers/utils.py", line 59, in <module>
from .aistudio_utils import aistudio_download
File "/home/jerry/anaconda3/envs/match/lib/python3.10/site-packages/paddlenlp/transformers/aistudio_utils.py", line 17, in <module>
from aistudio_sdk.hub import download
ImportError: cannot import name 'download' from 'aistudio_sdk.hub' (/home/jerry/anaconda3/envs/match/lib/python3.10/site-packages/aistudio_sdk/hub.py)
I run the server.sh
and found the error report in the punc.log
file. The bash scripts in the demo dirctory all fail with the error shown above.