Skip to content
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

源码中include了错误的包 #219

Open
LtpLGM opened this issue Sep 15, 2024 · 2 comments
Open

源码中include了错误的包 #219

LtpLGM opened this issue Sep 15, 2024 · 2 comments

Comments

@LtpLGM
Copy link

LtpLGM commented Sep 15, 2024

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
Copy link
Author

LtpLGM commented Sep 15, 2024

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

@CheshireCC
Copy link
Owner

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants