#119 ('string index out of range',)

45.207.**8 Posted at: 1 year ago

('string index out of range',)

=====

Windows-10-10.0.26100-SP0

version:v3.78

frozen:True

10 Replies

#1 52.192.**3 reply at 1 year ago

信息太少判断不出原因,附带出错时logs目录下当时日期名字文件的底部50行记录

#2 45.207.**8 reply at 1 year ago

--- Application started at 2025-08-21 19:26:48 ---

所有初始化完毕,准备关闭启动窗口: 1755775608.3491018

####缓存读取结束:1755775608.4308286

####启动窗口结束:1755775608.4572792

[诊断] 首次调用 tools 中的函数,开始从预定义列表构建函数映射表...

[诊断] 函数映射表构建完毕。

####信号绑定结束:1755775608.818783

pygame 2.5.2 (SDL 2.28.3, Python 3.10.4)

Hello from the pygame community. https://www.pygame.org/contribute.html

!!! UNHANDLED EXCEPTION !!!

Traceback (most recent call last):

File "videotrans\task\_only_one.py", line 56, in run

File "pathlib.py", line 1132, in read_text

File "pathlib.py", line 1117, in open

FileNotFoundError: [Errno 2] No such file or directory: 'F:\\a-六部曲\\_video_out\\机组枪械\\en.srt'

2025-08-21 19:33:02,325 - VideoTrans - ERROR - 数据类型不兼容:请打开菜单--工具--高级选项--faster/openai语音识别调整--CUDA数据类型--选择 float16,保存后重试

Traceback (most recent call last):

File "videotrans\recognition\_base.py", line 75, in run

File "videotrans\recognition\_overall.py", line 158, in _exec

RuntimeError: 数据类型不兼容:请打开菜单--工具--高级选项--faster/openai语音识别调整--CUDA数据类型--选择 float16,保存后重试

!!! UNHANDLED EXCEPTION !!!

Traceback (most recent call last):

File "videotrans\task\_only_one.py", line 45, in run

File "videotrans\task\trans_create.py", line 378, in recogn

File "videotrans\recognition\__init__.py", line 236, in run

File "videotrans\recognition\_base.py", line 75, in run

File "videotrans\recognition\_overall.py", line 158, in _exec

RuntimeError: 数据类型不兼容:请打开菜单--工具--高级选项--faster/openai语音识别调整--CUDA数据类型--选择 float16,保存后重试

2025-08-21 19:33:51,412 - VideoTrans - ERROR - 数据类型不兼容:请打开菜单--工具--高级选项--faster/openai语音识别调整--CUDA数据类型--选择 float16,保存后重试

Traceback (most recent call last):

File "videotrans\recognition\_base.py", line 75, in run

File "videotrans\recognition\_overall.py", line 158, in _exec

RuntimeError: 数据类型不兼容:请打开菜单--工具--高级选项--faster/openai语音识别调整--CUDA数据类型--选择 float16,保存后重试

!!! UNHANDLED EXCEPTION !!!

Traceback (most recent call last):

File "videotrans\task\_only_one.py", line 45, in run

File "videotrans\task\trans_create.py", line 378, in recogn

File "videotrans\recognition\__init__.py", line 236, in run

File "videotrans\recognition\_base.py", line 75, in run

File "videotrans\recognition\_overall.py", line 158, in _exec

RuntimeError: 数据类型不兼容:请打开菜单--工具--高级选项--faster/openai语音识别调整--CUDA数据类型--选择 float16,保存后重试

urllib3\connectionpool.py:1097: InsecureRequestWarning: Unverified HTTPS request is being made to host '127.0.0.1'. Adding certificate verification is strongly advised. See: https://urllib3.readthedocs.io/en/latest/advanced-usage.html#tls-warnings

urllib3\connectionpool.py:1097: InsecureRequestWarning: Unverified HTTPS request is being made to host '127.0.0.1'. Adding certificate verification is strongly advised. See: https://urllib3.readthedocs.io/en/latest/advanced-usage.html#tls-warnings

urllib3\connectionpool.py:1097: InsecureRequestWarning: Unverified HTTPS request is being made to host '127.0.0.1'. Adding certificate verification is strongly advised. See: https://urllib3.readthedocs.io/en/latest/advanced-usage.html#tls-warnings

urllib3\connectionpool.py:1097: InsecureRequestWarning: Unverified HTTPS request is being made to host '127.0.0.1'. Adding certificate verification is strongly advised. See: https://urllib3.readthedocs.io/en/latest/advanced-usage.html#tls-warnings

urllib3\connectionpool.py:1097: InsecureRequestWarning: Unverified HTTPS request is being made to host '127.0.0.1'. Adding certificate verification is strongly advised. See: https://urllib3.readthedocs.io/en/latest/advanced-usage.html#tls-warnings

urllib3\connectionpool.py:1097: InsecureRequestWarning: Unverified HTTPS request is being made to host '127.0.0.1'. Adding certificate verification is strongly advised. See: https://urllib3.readthedocs.io/en/latest/advanced-usage.html#tls-warnings

urllib3\connectionpool.py:1097: InsecureRequestWarning: Unverified HTTPS request is being made to host '127.0.0.1'. Adding certificate verification is strongly advised. See: https://urllib3.readthedocs.io/en/latest/advanced-usage.html#tls-warnings

urllib3\connectionpool.py:1097: InsecureRequestWarning: Unverified HTTPS request is being made to host '127.0.0.1'. Adding certificate verification is strongly advised. See: https://urllib3.readthedocs.io/en/latest/advanced-usage.html#tls-warnings

urllib3\connectionpool.py:1097: InsecureRequestWarning: Unverified HTTPS request is being made to host '127.0.0.1'. Adding certificate verification is strongly advised. See: https://urllib3.readthedocs.io/en/latest/advanced-usage.html#tls-warnings

urllib3\connectionpool.py:1097: InsecureRequestWarning: Unverified HTTPS request is being made to host '127.0.0.1'. Adding certificate verification is strongly advised. See: https://urllib3.readthedocs.io/en/latest/advanced-usage.html#tls-warnings

urllib3\connectionpool.py:1097: InsecureRequestWarning: Unverified HTTPS request is being made to host '127.0.0.1'. Adding certificate verification is strongly advised. See: https://urllib3.readthedocs.io/en/latest/advanced-usage.html#tls-warnings

urllib3\connectionpool.py:1097: InsecureRequestWarning: Unverified HTTPS request is being made to host '127.0.0.1'. Adding certificate verification is strongly advised. See: https://urllib3.readthedocs.io/en/latest/advanced-usage.html#tls-warnings

urllib3\connectionpool.py:1097: InsecureRequestWarning: Unverified HTTPS request is being made to host '127.0.0.1'. Adding certificate verification is strongly advised. See: https://urllib3.readthedocs.io/en/latest/advanced-usage.html#tls-warnings

urllib3\connectionpool.py:1097: InsecureRequestWarning: Unverified HTTPS request is being made to host '127.0.0.1'. Adding certificate verification is strongly advised. See: https://urllib3.readthedocs.io/en/latest/advanced-usage.html#tls-warnings

urllib3\connectionpool.py:1097: InsecureRequestWarning: Unverified HTTPS request is being made to host '127.0.0.1'. Adding certificate verification is strongly advised. See: https://urllib3.readthedocs.io/en/latest/advanced-usage.html#tls-warnings

urllib3\connectionpool.py:1097: InsecureRequestWarning: Unverified HTTPS request is being made to host '127.0.0.1'. Adding certificate verification is strongly advised. See: https://urllib3.readthedocs.io/en/latest/advanced-usage.html#tls-warnings

urllib3\connectionpool.py:1097: InsecureRequestWarning: Unverified HTTPS request is being made to host '127.0.0.1'. Adding certificate verification is strongly advised. See: https://urllib3.readthedocs.io/en/latest/advanced-usage.html#tls-warnings

urllib3\connectionpool.py:1097: InsecureRequestWarning: Unverified HTTPS request is being made to host '127.0.0.1'. Adding certificate verification is strongly advised. See: https://urllib3.readthedocs.io/en/latest/advanced-usage.html#tls-warnings

urllib3\connectionpool.py:1097: InsecureRequestWarning: Unverified HTTPS request is being made to host '127.0.0.1'. Adding certificate verification is strongly advised. See: https://urllib3.readthedocs.io/en/latest/advanced-usage.html#tls-warnings

urllib3\connectionpool.py:1097: InsecureRequestWarning: Unverified HTTPS request is being made to host '127.0.0.1'. Adding certificate verification is strongly advised. See: https://urllib3.readthedocs.io/en/latest/advanced-usage.html#tls-warnings

urllib3\connectionpool.py:1097: InsecureRequestWarning: Unverified HTTPS request is being made to host '127.0.0.1'. Adding certificate verification is strongly advised. See: https://urllib3.readthedocs.io/en/latest/advanced-usage.html#tls-warnings

urllib3\connectionpool.py:1097: InsecureRequestWarning: Unverified HTTPS request is being made to host '127.0.0.1'. Adding certificate verification is strongly advised. See: https://urllib3.readthedocs.io/en/latest/advanced-usage.html#tls-warnings

urllib3\connectionpool.py:1097: InsecureRequestWarning: Unverified HTTPS request is being made to host '127.0.0.1'. Adding certificate verification is strongly advised. See: https://urllib3.readthedocs.io/en/latest/advanced-usage.html#tls-warnings

2025-08-21 19:48:50,978 - VideoTrans - ERROR - 重试2次后失败:string index out of range

NoneType: None

2025-08-21 19:48:53,219 - VideoTrans - ERROR - 重试2次后失败:string index out of range

NoneType: None

2025-08-21 19:49:38,223 - VideoTrans - ERROR - 重试2次后失败:string index out of range

NoneType: None

2025-08-21 19:50:29,269 - VideoTrans - ERROR - 重试2次后失败:string index out of range

NoneType: None

2025-08-21 19:51:12,054 - VideoTrans - ERROR - 重试2次后失败:string index out of range

NoneType: None

#3 2406:**:ff7 reply at 1 year ago

请打开菜单--工具--高级选项--faster/openai语音识别调整--CUDA数据类型--选择 float16,保存后重试

先处理这个。再重新测试看看

#4 141.11.**3 reply at 1 year ago

每次进度到一半就这个出错,cuad开不开都会出错,float16和float32和auto,都会出错

#5 141.11.**3 reply at 1 year ago

--- Application started at 2025-08-23 00:25:24 ---

[诊断] 首次调用 tools 中的函数,开始从预定义列表构建函数映射表...

[诊断] 函数映射表构建完毕。

所有初始化完毕,准备关闭启动窗口: 1755879924.7662733

####缓存读取结束:1755879924.859331

####启动窗口结束:1755879924.8687434

####信号绑定结束:1755879925.1682732

2025-08-23 00:41:31,708 - VideoTrans - ERROR - 重试2次后失败:string index out of range

NoneType: None

2025-08-23 00:41:34,314 - VideoTrans - ERROR - 重试2次后失败:string index out of range

NoneType: None

2025-08-23 00:42:18,145 - VideoTrans - ERROR - 重试2次后失败:string index out of range

NoneType: None

2025-08-23 00:43:07,207 - VideoTrans - ERROR - 重试2次后失败:string index out of range

NoneType: None

2025-08-23 00:43:48,946 - VideoTrans - ERROR - 重试2次后失败:string index out of range

NoneType: None

2025-08-23 00:48:49,752 - VideoTrans - ERROR - 重试2次后失败:string index out of range

NoneType: None

2025-08-23 00:48:49,752 - VideoTrans - ERROR - 重试2次后失败:string index out of range

NoneType: None

2025-08-23 00:48:49,753 - VideoTrans - ERROR - 重试2次后失败:string index out of range

NoneType: None

2025-08-23 00:48:49,769 - VideoTrans - ERROR - 重试2次后失败:string index out of range

NoneType: None

2025-08-23 00:48:49,769 - VideoTrans - ERROR - 重试2次后失败:string index out of range

NoneType: None

#6 18.141.**6 reply at 1 year ago

Admin

顶部导航下载3.78–0821覆盖试试

#7 36.148.**6 reply at 1 year ago

现在用的就是3.78–0821,而且删掉重新解压也试过了也会有这个问题,把补丁包覆盖进来也试过了也会有这个问题

#8 2408:**:9717 reply at 1 year ago

重试,截图失败时的软件界面设置

#9 141.11.**3 reply at 11 months ago

image

image

#10 175.162.**2 reply at 11 months ago

string index out of range 同样,发现是翻译后如果是空白的句子就会这样,需要在传给TTS的时候判断是否是超长或者空字符串

Thinking...
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.

Dondate via ko-fi.com

Related resource