#3305 TaskCfg(cache_folder='C:/Users/pc xeon/Downloads/win-pyvideotrans-v3.97/tmp/6616/359389beea', target_dir='C:/Users/pc xe

1.54* Posted at: 5 days ago 👁35

ASR Error [FunASR(Local)] ModuleNotFoundError: No module named 'pytz.tzinfo'
concurrent.futures.process._RemoteTraceback:
"""
Traceback (most recent call last):
File "concurrent\futures\process.py", line 243, in _process_worker
File "videotrans\process\stt_fun.py", line 470, in paraformer
File "pyimod02_importers.py", line 457, in exec_module
File "modelscope\pipelines\__init__.py", line 4, in

from .base import Pipeline

File "pyimod02_importers.py", line 457, in exec_module
File "modelscope\pipelines\base.py", line 16, in

from modelscope.msdatasets import MsDataset

File "pyimod02_importers.py", line 457, in exec_module
File "modelscope\msdatasets\__init__.py", line 2, in

from modelscope.msdatasets.ms_dataset import MsDataset

File "pyimod02_importers.py", line 457, in exec_module
File "modelscope\msdatasets\ms_dataset.py", line 9, in

from datasets import (Dataset, DatasetDict, Features, IterableDataset,

File "pyimod02_importers.py", line 457, in exec_module
File "datasets\__init__.py", line 17, in

from .arrow_dataset import Dataset

File "pyimod02_importers.py", line 457, in exec_module
File "datasets\arrow_dataset.py", line 59, in

import pandas as pd

File "C:\Users\pc xeon\Downloads\win-pyvideotrans-v3.97\_internal\pandas\__init__.py", line 61, in

from pandas.core.api import (

File "C:\Users\pc xeon\Downloads\win-pyvideotrans-v3.97\_internal\pandas\core\api.py", line 1, in

from pandas._libs import (

File "C:\Users\pc xeon\Downloads\win-pyvideotrans-v3.97\_internal\pandas\_libs\__init__.py", line 18, in

from pandas._libs.interval import Interval

File "pandas/_libs/interval.pyx", line 1, in init pandas._libs.interval
File "pandas/_libs/hashtable.pyx", line 1, in init pandas._libs.hashtable
File "pandas/_libs/missing.pyx", line 1, in init pandas._libs.missing
File "C:\Users\pc xeon\Downloads\win-pyvideotrans-v3.97\_internal\pandas\_libs\tslibs\__init__.py", line 40, in

from pandas._libs.tslibs.conversion import localize_pydatetime

File "pandas/_libs/tslibs/conversion.pyx", line 1, in init pandas._libs.tslibs.conversion
File "pandas/_libs/tslibs/offsets.pyx", line 1, in init pandas._libs.tslibs.offsets
File "pandas/_libs/tslibs/timestamps.pyx", line 1, in init pandas._libs.tslibs.timestamps
File "pandas/_libs/tslibs/timedeltas.pyx", line 1, in init pandas._libs.tslibs.timedeltas
File "pandas/_libs/tslibs/timezones.pyx", line 32, in init pandas._libs.tslibs.timezones
ModuleNotFoundError: No module named 'pytz.tzinfo'
"""

The above exception was the direct cause of the following exception:

Traceback (most recent call last):
File "videotrans\task\job.py", line 106, in run
File "videotrans\task\_speech2text.py", line 156, in recogn
File "videotrans\recognition\__init__.py", line 245, in run
File "videotrans\recognition\_base.py", line 141, in run
File "videotrans\recognition\_funasr.py", line 71, in _exec
File "videotrans\configure\_base.py", line 287, in _new_process
File "concurrent\futures\_base.py", line 446, in result
File "concurrent\futures\_base.py", line 391, in __get_result
ModuleNotFoundError: No module named 'pytz.tzinfo'
TaskCfg(cache_folder='C:/Users/pc xeon/Downloads/win-pyvideotrans-v3.97/tmp/6616/359389beea', target_dir='C:/Users/pc xeon/Downloads/win-pyvideotrans-v3.97/output/recogn', remove_noise=False, is_separate=False, detect_language='zh-cn', subtitle_language=None, source_language=None, target_language=None, source_language_code=None, target_language_code=None, source_sub=None, target_sub='C:/Users/pc xeon/Downloads/win-pyvideotrans-v3.97/output/recogn/tst.srt', source_wav=None, source_wav_output=None, target_wav=None, target_wav_output=None, subtitles='', novoice_mp4=None, noextname='tst', shibie_audio='C:/Users/pc xeon/Downloads/win-pyvideotrans-v3.97/tmp/6616/359389beea/tst-1771652419.3830674.wav', targetdir_mp4=None, instrument=None, vocal=None, back_audio=None, background_music=None, app_mode='biaozhun', subtitle_type=0, volume='+0%', pitch='+0Hz', voice_rate='+0%', voice_role=None, copysrt_rawvideo=False, clear_cache=False, translate_type=None, tts_type=None, recogn_type=3, model_name='paraformer-zh', voice_autorate=False, video_autorate=False, is_cuda=False, name='C:/Users/pc xeon/Downloads/tst.mp4', basename='tst.mp4', ext='mp4', dirname='C:/Users/pc xeon/Downloads', shound_del_name=None, uuid='359389beea', remove_silent_mid=False, align_sub_audio=True, enable_diariz=False, nums_diariz=0, rephrase=0, only_out_mp4=False, fix_punc=False, recogn2pass=False)


=
system:Windows-10-10.0.19045-SP0
version:v3.97
frozen:True
language:en
root_dir:C:/Users/pc xeon/Downloads/win-pyvideotrans-v3.97

1 Replies

This error is caused by a missing or corrupted pytz module within the pre-packaged Windows version of the software, which is triggered when using the FunASR (Local) speech recognition model.

Solution:

  1. Re-download the complete software package. The error ModuleNotFoundError: No module named 'pytz.tzinfo' indicates a dependency issue in the bundled environment. The most reliable fix is to download the full version (not the patch) of pyVideoTrans v3.97 again from the official source.
  2. Extract to a clean location. Unzip the new download to a new directory on a non-system drive (e.g., D:\pyVideoTrans). Ensure the path contains no Chinese characters, spaces, or special symbols.
  3. Do not run from the old location. Delete or move the old win-pyvideotrans-v3.97 folder you were using (C:\Users\pc xeon\Downloads\win-pyvideotrans-v3.97) to avoid confusion.
  4. Launch from the new location. Run sp.exe from the newly extracted folder.

Important Note: Your current software path C:\Users\pc xeon\Downloads\win-pyvideotrans-v3.97 contains a space (pc xeon). This is a known cause for various issues. The new path you choose must avoid spaces entirely.

Please refer to the relevant documentation:

Post Your Reply
Open source and free maintenance is not easy. If this project is helpful to you, please consider making a small donation to help the project continue to maintain and update.

Related resource