-
-
Notifications
You must be signed in to change notification settings - Fork 897
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
你好,mac上使用报错,提示数组越界 #377
Comments
什么阶段出错的,刚打开就报错,还是进行到某个阶段 |
这是我的环境 DEPRECATION: srt is being installed using the legacy 'setup.py install' method, because it does not have a 'pyproject.toml' and the 'wheel' package is not installed. pip 23.1 will enforce this behaviour change. A possible replacement is to enable the '--use-pep517' option. Discussion can be found at pypa/pip#8559 DEPRECATION: imageio-ffmpeg is being installed using the legacy 'setup.py install' method, because it does not have a 'pyproject.toml' and the 'wheel' package is not installed. pip 23.1 will enforce this behaviour change. A possible replacement is to enable the '--use-pep517' option. Discussion can be found at pypa/pip#8559 [notice] A new release of pip is available: 23.0.1 -> 24.0 ..... 按照”源码部署/MacOS Linux系统可源码部署“安装完成后 python sp.py 打开软件界面 |
当前虚拟环境下 |
(venv) (pyvideotrans) ➜ pyvideotrans git:(main) ✗ pip install --upgrade pyside6 [notice] A new release of pip is available: 23.0.1 -> 24.0 Current thread 0x00000001eb5e1b40 (most recent call first): Extension modules: xxsubtype, shiboken6.Shiboken (total: 2) |
requirements-cpu-or-mac.txt |
(venv) (pyvideotrans) ➜ pyvideotrans git:(main) ✗ source ./venv/bin/activate [notice] A new release of pip is available: 23.0.1 -> 24.0 Current thread 0x00000001eb5e1b40 (most recent call first): Extension modules: xxsubtype, shiboken6.Shiboken (total: 2) |
我把你给我那个requirements-cpu-or-mac.txt。从新再来一遍试试,稍等 |
我把整个流程全部从新开始了一遍,并且使用你给我的两个建议,然后现在启动成功,目前没有闪退,我将继续试试 |
谢谢您 |
(venv) (pyvideotrans) ➜ pyvideotrans git:(main) ✗ python sp.py During handling of the above exception, another exception occurred: Traceback (most recent call last): During handling of the above exception, another exception occurred: Traceback (most recent call last): During handling of the above exception, another exception occurred: Traceback (most recent call last): |
填写代理地址试试 |
有个插曲,我之前是可以whisper出来的,然后我选择了手动上传字幕,在过后就出现这个问题了,我现在没有上传字幕,是哪里有缓存吗?我清理过 |
视频改个名称 |
你好,改了一个名称以后,可以了,只是目前没有成功翻译视频语音过一次,M2太慢了 |
我想请教一个问题,你是用什么技术实现。srt字幕转语音,并且按照srt字幕时间轴合并进去的,我想不知道云端用命令行的方式来使用,感谢你 |
没看懂 |
(venv) (pyvidoetrans) ➜ pyvideotrans git:(main) ✗ python sp.py
启动用时:1.9229629039764404
2024-04-29 23:45:33.823 python[97145:9921884] +[CATransaction synchronize] called within transaction
2024-04-29 23:45:47.171 python[97145:9921884] *** Terminating app due to uncaught exception 'NSRangeException', reason: '*** -[__NSArrayM objectAtIndexedSubscript:]: index 0 beyond bounds for empty array'
*** First throw call stack:
(
0 CoreFoundation 0x00000001902df19c __exceptionPreprocess + 176
1 libobjc.A.dylib 0x000000018fdfe4d4 objc_exception_throw + 60
2 CoreFoundation 0x00000001903c99d4 -[__NSCFString characterAtIndex:].cold.1 + 0
3 CoreFoundation 0x0000000190252c8c -[__NSArrayM objectAtIndexedSubscript:] + 188
4 libqcocoa.dylib 0x000000012c42a044 _ZN20QCocoaSystemTrayIcon13emitActivatedEv + 274796
5 libqcocoa.dylib 0x000000012c42a0c8 _ZN20QCocoaSystemTrayIcon13emitActivatedEv + 274928
6 libqcocoa.dylib 0x000000012c428688 _ZN20QCocoaSystemTrayIcon13emitActivatedEv + 268208
7 QtWidgets 0x000000011d1951a8 ZN9QListView16selectionChangedERK14QItemSelectionS2 + 204
8 QtCore 0x000000011facb48c _ZN11QMetaObject8activateEP7QObjectPKS_iPPv + 3808
9 QtCore 0x000000011fc91e44 ZN19QItemSelectionModel20emitSelectionChangedERK14QItemSelectionS2 + 216
10 QtCore 0x000000011fc91a2c _ZN19QItemSelectionModel6selectERK14QItemSelection6QFlagsINS_13SelectionFlagEE + 636
11 QtCore 0x000000011fc9170c _ZN19QItemSelectionModel6selectERK11QModelIndex6QFlagsINS_13SelectionFlagEE + 68
12 QtCore 0x000000011fc928cc _ZN19QItemSelectionModel15setCurrentIndexERK11QModelIndex6QFlagsINS_13SelectionFlagEE + 260
13 QtWidgets 0x000000011cff3338 _ZNK9QComboBox5countEv + 828
14 QtWidgets 0x000000011cff68b4 _ZN9QComboBoxC1ER16QComboBoxPrivateP7QWidget + 2412
15 QtCore 0x000000011facb224 _ZN11QMetaObject8activateEP7QObjectPKS_iPPv + 3192
16 QtCore 0x000000011fc7a944 _ZN18QAbstractItemModel13endInsertRowsEv + 200
17 QtGui 0x000000012f62f1a8 _ZN18QStandardItemModel11itemChangedEP13QStandardItem + 844
18 QtWidgets 0x000000011cff9e38 _ZN9QComboBox11insertItemsEiRK5QListI7QStringE + 340
19 QtWidgets.abi3.so 0x000000012ecdd90c ZL26Sbk_QComboBoxFunc_addItemsP7_objectS0 + 156
20 python3.10 0x00000001021b948c cfunction_vectorcall_O + 100
21 python3.10 0x0000000102272c8c _PyEval_EvalFrameDefault + 40236
22 python3.10 0x000000010215bddc _PyFunction_Vectorcall + 548
23 python3.10 0x0000000102160548 method_vectorcall + 288
24 libpyside6.abi3.6.6.dylib 0x0000000103f4e750 _ZN6PySide13SignalManager20callPythonMetaMethodERK11QMetaMethodPPvP7_objectb + 536
25 libpyside6.abi3.6.6.dylib 0x0000000103f518b8 _ZN6PySide16GlobalReceiverV211qt_metacallEN11QMetaObject4CallEiPPv + 672
26 QtCore 0x000000011facb1f4 _ZN11QMetaObject8activateEP7QObjectPKS_iPPv + 3144
27 QtWidgets 0x000000011cff69d0 _ZN9QComboBoxC1ER16QComboBoxPrivateP7QWidget + 2696
28 QtWidgets 0x000000011cff3358 _ZNK9QComboBox5countEv + 860
29 QtWidgets 0x000000011cff628c _ZN9QComboBoxC1ER16QComboBoxPrivateP7QWidget + 836
30 QtCore 0x000000011facb224 _ZN11QMetaObject8activateEP7QObjectPKS_iPPv + 3192
31 QtWidgets 0x000000011cff59a8 _ZN25QComboBoxPrivateContainer11eventFilterEP7QObjectP6QEvent + 920
32 QtCore 0x000000011fa81748 _ZN23QCoreApplicationPrivate29sendThroughObjectEventFiltersEP7QObjectP6QEvent + 244
33 QtWidgets 0x000000011cee0574 _ZN19QApplicationPrivate13notify_helperEP7QObjectP6QEvent + 240
34 QtWidgets 0x000000011cee25c0 _ZN12QApplication6notifyEP7QObjectP6QEvent + 5072
35 QtCore 0x000000011fa81474 _ZN16QCoreApplication15notifyInternal2EP7QObjectP6QEvent + 292
36 QtWidgets 0x000000011cee0b34 _ZN19QApplicationPrivate14sendMouseEventEP7QWidgetP11QMouseEventS1_S1_PS1_R8QPointerIS0_Ebb + 808
37 QtWidgets 0x000000011cf3ecdc _ZNK21QWidgetRepaintManager3rhiEv + 12228
38 QtWidgets 0x000000011cf3da6c _ZNK21QWidgetRepaintManager3rhiEv + 7508
39 QtWidgets 0x000000011cee0594 _ZN19QApplicationPrivate13notify_helperEP7QObjectP6QEvent + 272
40 QtWidgets 0x000000011cee13e8 _ZN12QApplication6notifyEP7QObjectP6QEvent + 504
41 QtCore 0x000000011fa81474 _ZN16QCoreApplication15notifyInternal2EP7QObjectP6QEvent + 292
42 QtGui 0x000000012f38b9ec _ZN22QGuiApplicationPrivate17processMouseEventEPN29QWindowSystemInterfacePrivate10MouseEventE + 1740
43 QtGui 0x000000012f3e7674 _ZN22QWindowSystemInterface22sendWindowSystemEventsE6QFlagsIN10QEventLoop17ProcessEventsFlagEE + 408
44 libqcocoa.dylib 0x000000012c3cbd74 qt_plugin_instance + 58768
45 CoreFoundation 0x0000000190266710 CFRUNLOOP_IS_CALLING_OUT_TO_A_SOURCE0_PERFORM_FUNCTION + 28
46 CoreFoundation 0x00000001902666a4 __CFRunLoopDoSource0 + 176
47 CoreFoundation 0x0000000190266414 __CFRunLoopDoSources0 + 244
48 CoreFoundation 0x000000019026501c __CFRunLoopRun + 828
49 CoreFoundation 0x000000019026458c CFRunLoopRunSpecific + 612
50 HIToolbox 0x0000000199a99df4 RunCurrentEventLoopInMode + 292
51 HIToolbox 0x0000000199a99a84 ReceiveNextEventCommon + 220
52 HIToolbox 0x0000000199a99988 _BlockUntilNextEventMatchingListInModeWithFilter + 76
53 AppKit 0x0000000193483f58 _DPSNextEvent + 636
54 AppKit 0x00000001934830f4 -[NSApplication(NSEvent) _nextEventMatchingEventMask:untilDate:inMode:dequeue:] + 716
55 AppKit 0x0000000193477558 -[NSApplication run] + 464
56 libqcocoa.dylib 0x000000012c3c98fc qt_plugin_instance + 49432
57 QtCore 0x000000011fa8b160 _ZN10QEventLoop4execE6QFlagsINS_17ProcessEventsFlagEE + 540
58 QtCore 0x000000011fa81b00 _ZN16QCoreApplication4execEv + 112
59 QtWidgets.abi3.so 0x000000012ed9f2d8 _ZL25Sbk_QApplicationFunc_execP7_object + 60
60 python3.10 0x00000001021b95c8 cfunction_vectorcall_NOARGS + 96
61 python3.10 0x0000000102272c8c _PyEval_EvalFrameDefault + 40236
62 python3.10 0x0000000102267258 _PyEval_Vector + 532
63 python3.10 0x00000001022e04c4 run_mod + 220
64 python3.10 0x00000001022e0264 pyrun_file + 156
65 python3.10 0x00000001022dfcb0 _PyRun_SimpleFileObject + 316
66 python3.10 0x00000001022df618 _PyRun_AnyFileObject + 216
67 python3.10 0x0000000102303bf8 pymain_run_file_obj + 196
68 python3.10 0x0000000102303484 pymain_run_file + 72
69 python3.10 0x0000000102302b24 pymain_run_python + 340
70 python3.10 0x0000000102302978 Py_RunMain + 40
71 python3.10 0x00000001020feeb0 main + 56
72 dyld 0x000000018fe2ff28 start + 2236
)
libc++abi: terminating due to uncaught exception of type NSException
[1] 97145 abort python sp.py
The text was updated successfully, but these errors were encountered: