程序内部错误:expected str, bytes or os.PathLike object, not NoneType:
multiprocessing.pool.RemoteTraceback:
"""
Traceback (most recent call last):
File "multiprocessing\pool.py", line 125, in worker
File "videotrans\process\tts_fun.py", line 71, in qwen3tts_fun
File "D:\WINNNNNNN\win-pyvideotrans-v3.99-420\_internal\qwen_tts\inference\qwen3_tts_model.py", line 118, in from_pretrained
processor = AutoProcessor.from_pretrained(pretrained_model_name_or_path, fix_mistral_regex=True,)
File "transformers\models\auto\processing_auto.py", line 396, in from_pretrained
return processor_class.from_pretrained(
File "transformers\processing_utils.py", line 1394, in from_pretrained
args = cls._get_arguments_from_pretrained(pretrained_model_name_or_path, **kwargs)
File "transformers\processing_utils.py", line 1453, in _get_arguments_from_pretrained
args.append(attribute_class.from_pretrained(pretrained_model_name_or_path, **kwargs))
File "transformers\tokenization_utils_base.py", line 2113, in from_pretrained
return cls._from_pretrained(
File "transformers\tokenization_utils_base.py", line 2151, in _from_pretrained
slow_tokenizer = (cls.slow_tokenizer_class)._from_pretrained(
File "transformers\tokenization_utils_base.py", line 2359, in _from_pretrained
tokenizer = cls(*init_inputs, **init_kwargs)
File "transformers\models\qwen2\tokenization_qwen2.py", line 179, in init
with open(merges_file, encoding="utf-8") as merges_handle:
TypeError: expected str, bytes or os.PathLike object, not NoneType
"""
The above exception was the direct cause of the following exception:
Traceback (most recent call last):
File "videotrans\util\ListenVoice.py", line 16, in run
File "videotrans\tts\__init__.py", line 369, in run
File "videotrans\tts\_base.py", line 137, in run
File "videotrans\tts\_qwenttslocal.py", line 53, in _exec
File "videotrans\configure\_base.py", line 285, in _new_process
File "videotrans\process\signelobj.py", line 13, in result
File "multiprocessing\pool.py", line 774, in get
TypeError: expected str, bytes or os.PathLike object, not NoneType