Skip to content

Getting "LookupError" while Run Locally on Windows #585

@egemengulpinar

Description

@egemengulpinar

Which OS are you using?

  • OS: windows 11 Pro 24H2

I've got error while running start-webui.bat after install.bat properly.

Error log:

D:\INDIVIDUAL2\Whisper-WebUI\venv\Lib\site-packages\ctranslate2\__init__.py:8: UserWarning: pkg_resources is deprecated as an API. See https://setuptools.pypa.io/en/latest/pkg_resources.html. The pkg_resources package is slated for removal as early as 2025-11-30. Refrain from using this package or pin to Setuptools<81.
  import pkg_resources
Traceback (most recent call last):
  File "D:\INDIVIDUAL2\Whisper-WebUI\app.py", line 11, in <module>
    from modules.whisper.whisper_factory import WhisperFactory
  File "D:\INDIVIDUAL2\Whisper-WebUI\modules\whisper\whisper_factory.py", line 7, in <module>
    from modules.whisper.faster_whisper_inference import FasterWhisperInference
  File "D:\INDIVIDUAL2\Whisper-WebUI\modules\whisper\faster_whisper_inference.py", line 16, in <module>
    from modules.whisper.data_classes import *
  File "D:\INDIVIDUAL2\Whisper-WebUI\modules\whisper\data_classes.py", line 12, in <module>
    from modules.utils.constants import *
  File "D:\INDIVIDUAL2\Whisper-WebUI\modules\utils\constants.py", line 3, in <module>
    AUTOMATIC_DETECTION = _("Automatic Detection")
                          ^^^^^^^^^^^^^^^^^^^^^^^^
  File "D:\INDIVIDUAL2\Whisper-WebUI\venv\Lib\site-packages\gradio_i18n\i18n.py", line 161, in gettext
    return I18nString(key)
           ^^^^^^^^^^^^^^^
  File "D:\INDIVIDUAL2\Whisper-WebUI\venv\Lib\site-packages\gradio_i18n\i18n.py", line 82, in __new__
    request: gr.Request = LocalContext.request.get()
                          ^^^^^^^^^^^^^^^^^^^^^^^^^^
LookupError: <ContextVar name='request' at 0x00000235F7D3F290>
"launching the app"
Press any key to continue . . .

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions