执行streamlit run st.py 后网页显示BadZipFile: File is not a zip file
Nobody has claimed this yet.
Assessment
- Difficulty
- 2/5
- Estimated time
- 1-3 hours
- Newbie friendliness
- 35/100
Research direction
Start with st.py and trace the import into core/tts_backend/estimate_duration.py, then inspect the g2p_en and NLTK resource lookup shown in the traceback. Reproduce with streamlit run st.py and verify whether the installed tagger resource is valid; done means startup completes without BadZipFile.
Written by the indexing model from the issue text.
Description
执行streamlit run st.py 后网页显示BadZipFile: File is not a zip file
Traceback:
File "C:\Anacoda3\envs\videolingo\lib\site-packages\streamlit\runtime\scriptrunner\exec_code.py", line 88, in exec_func_with_error_handling
result = func()
File "C:\Anacoda3\envs\videolingo\lib\site-packages\streamlit\runtime\scriptrunner\script_runner.py", line 590, in code_to_exec
exec(code, module.dict)
File "N:\GPT_SoVITS\VideoLingo\VideoLingo\st.py", line 3, in
from core.st_utils.imports_and_utils import *
File "N:\GPT_SoVITS\VideoLingo\VideoLingo\core_init_.py", line 3, in
from . import (
File "N:\GPT_SoVITS\VideoLingo\VideoLingo\core_4_2_translate.py", line 6, in
from core.8_1_audio_task import check_len_then_trim
File "N:\GPT_SoVITS\VideoLingo\VideoLingo\core_8_1_audio_task.py", line 7, in
from core.tts_backend.estimate_duration import init_estimator, estimate_duration
File "N:\GPT_SoVITS\VideoLingo\VideoLingo\core\tts_backend\estimate_duration.py", line 3, in
from g2p_en import G2p
File "C:\Anacoda3\envs\videolingo\lib\site-packages\g2p_en_init.py", line 1, in
from .g2p import G2p
File "C:\Anacoda3\envs\videolingo\lib\site-packages\g2p_en\g2p.py", line 22, in
nltk.data.find('taggers/averaged_perceptron_tagger.zip')
File "C:\Anacoda3\envs\videolingo\lib\site-packages\nltk\data.py", line 538, in find
return ZipFilePathPointer(p, zipentry)
File "C:\Anacoda3\envs\videolingo\lib\site-packages\nltk\data.py", line 391, in init
zipfile = OpenOnDemandZipFile(os.path.abspath(zipfile))
File "C:\Anacoda3\envs\videolingo\lib\site-packages\nltk\data.py", line 1020, in init
zipfile.ZipFile.init(self, filename)
File "C:\Anacoda3\envs\videolingo\lib\zipfile.py", line 1258, in init
self._RealGetContents()
File "C:\Anacoda3\envs\videolingo\lib\zipfile.py", line 1325, in _RealGetContents
raise BadZipFile("File is not a zip file")
请问这样怎么解决呢,是不是我没有下载哪个文件导致缺少了zip文件造成的呢
- Dominant language
- Python
- Stars
- 18.5k
- Forks
- 2k
- Avg merge
- 7h 41m
- Merged PRs (30d)
- 12
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from Huanshere/VideoLingo
-
Difficulty 1/5 1-3 hours Newbie friendliness 78/100
Huanshere/VideoLingo#587 · 1 reaction ·
-
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
Huanshere/VideoLingo#561 · 2 reactions ·
-
Difficulty 2/5 1-3 hours Newbie friendliness 68/100
Huanshere/VideoLingo#545 ·
-
Difficulty 5/5 Over a week Newbie friendliness 30/100
Huanshere/VideoLingo#598 · 3 comments ·
-
现在能一键式流程,能不能增加分步骤处理 Open
Difficulty 4/5 3-5 days Newbie friendliness 52/100
Huanshere/VideoLingo#593 · 1 comment ·
All issues in Huanshere/VideoLingo
Similar issues
-
Difficulty 2/5 1-3 hours Newbie friendliness 74/100
bancolombia/sentinel#23 ·
-
test md OpenCI
Difficulty 2/5 1-3 hours Newbie friendliness 74/100
-
integration:quickjs org:external priority:backlog topic:code-interpreter topic:middleware type:feature
Difficulty 2/5 1-3 hours Newbie friendliness 74/100
langchain-ai/deepagents#6450 ·
-
bug client
Difficulty 2/5 1-3 hours Newbie friendliness 88/100
-
Difficulty 2/5 1-3 hours Newbie friendliness 74/100