-
Notifications
You must be signed in to change notification settings - Fork 1.9k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
报错zipfile.BadZipFile: File is not a zip file #2223
Labels
Comments
我也有这个问题,我在AI Studio上安装了paddlespeech。 from pathlib import Path
import numpy as np
import paddle
import yaml
from yacs.config import CfgNode
from paddlespeech.t2s.models.fastspeech2 import FastSpeech2
from paddlespeech.t2s.models.fastspeech2 import FastSpeech2Inference
from paddlespeech.t2s.modules.normalizer import ZScore
from frontend import Frontend 出现错误:
我的所有pip包:
|
Duplicate of #1925 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
看了之前的回答,重新安装了很多次环境都没有解决这个问题,请问为什么?
报错如下:
Traceback (most recent call last):
File "/usr/local/zx/PaddleSpeech-develop/try_1.py", line 1, in
from paddlespeech.cli.tts.infer import TTSExecutor
File "/usr/local/zx/PaddleSpeech-develop/paddlespeech/cli/tts/init.py", line 14, in
from .infer import TTSExecutor
File "/usr/local/zx/PaddleSpeech-develop/paddlespeech/cli/tts/infer.py", line 32, in
from paddlespeech.t2s.exps.syn_utils import get_frontend
File "/usr/local/zx/PaddleSpeech-develop/paddlespeech/t2s/init.py", line 18, in
from . import frontend
File "/usr/local/zx/PaddleSpeech-develop/paddlespeech/t2s/frontend/init.py", line 16, in
from .phonectic import *
File "/usr/local/zx/PaddleSpeech-develop/paddlespeech/t2s/frontend/phonectic.py", line 20, in
from g2p_en import G2p
File "/root/anaconda3/envs/speech/lib/python3.9/site-packages/g2p_en/init.py", line 1, in
from .g2p import G2p
File "/root/anaconda3/envs/speech/lib/python3.9/site-packages/g2p_en/g2p.py", line 22, in
nltk.data.find('taggers/averaged_perceptron_tagger.zip')
File "/root/anaconda3/envs/speech/lib/python3.9/site-packages/nltk/data.py", line 542, in find
return ZipFilePathPointer(p, zipentry)
File "/root/anaconda3/envs/speech/lib/python3.9/site-packages/nltk/compat.py", line 41, in _decorator
return init_func(*args, **kwargs)
File "/root/anaconda3/envs/speech/lib/python3.9/site-packages/nltk/data.py", line 394, in init
zipfile = OpenOnDemandZipFile(os.path.abspath(zipfile))
File "/root/anaconda3/envs/speech/lib/python3.9/site-packages/nltk/compat.py", line 41, in _decorator
return init_func(*args, **kwargs)
File "/root/anaconda3/envs/speech/lib/python3.9/site-packages/nltk/data.py", line 935, in init
zipfile.ZipFile.init(self, filename)
File "/root/anaconda3/envs/speech/lib/python3.9/zipfile.py", line 1266, in init
self._RealGetContents()
File "/root/anaconda3/envs/speech/lib/python3.9/zipfile.py", line 1333, in _RealGetContents
raise BadZipFile("File is not a zip file")
zipfile.BadZipFile: File is not a zip file
环境如下:
The text was updated successfully, but these errors were encountered: