CheshireCC / faster-whisper-GUI

faster_whisper GUI with PySide6
GNU Affero General Public License v3.0
1.72k stars 104 forks source link

源码中include了错误的包 #219

Open LtpLGM opened 2 months ago

LtpLGM commented 2 months ago

Traceback (most recent call last): File "D:\faster-whisper-GUI-main\FasterWhisperGUI.py", line 93, in from faster_whisper_GUI.mainWindows import MainWindows File "D:\faster-whisper-GUI-main\faster_whisper_GUI\mainWindows.py", line 34, in from faster_whisper import Word ImportError: cannot import name 'word' from 'faster_whisper' (C:\Users\LtpLGM.conda\envs\pytorch\lib\site-packages\faster_whisper__init__.py)

应将mainWindows.py, line 34的 from faster_whisper import Word修改为 from faster_whisper.transcribe import Word

LtpLGM commented 2 months ago

可能因上游faster-whisper版本更新,源代码中大量from faster_whisper ...需改为 from faster_whisper.transcribe ...

CheshireCC commented 2 months ago

之前我是通过修改源代码来修复错误的,之后统一更换 import 方式吧