执行streamlit run st.py 后网页显示BadZipFile: File is not a zip file

Open
#455 2 comments 2 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
2/5
Estimated time
1-3 hours
Newbie friendliness
35/100
Issue type
Bug
Clarity
Needs clarification
Activity status
Stale
Tech stack
python
Domain
tooling

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

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from Huanshere/VideoLingo

All issues in Huanshere/VideoLingo

Similar issues

More Python issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.