Skip to content

Unable to start: "Auto-detected mode as 'legacy'" #587

@salfter

Description

@salfter

Which OS are you using?

  • OS: Arch Linux

I'm trying to run this under Docker. I had it running previously, but something broke it a while back. Now I have some files that need to be subtitled, so I'm trying to get it running again. When I try to bring it up with docker compose up -d, I get the following:

(Whisper-WebUI) salfter@janeway ~/Whisper-WebUI $ docker compose up -d
[+] Running 1/2
 ✔ Network whisper-webui_default  Created                                                                      0.1s
 ⠸ Container whisper-webui        Starting                                                                    10.3s
Error response from daemon: failed to create task for container: failed to create shim task: OCI runtime create failed: runc create failed: unable to start container process: error during container init: error running prestart hook #0: exit status 1, stdout: , stderr: Auto-detected mode as 'legacy'
nvidia-container-cli: ldcache error: process /sbin/ldconfig terminated with signal 9
(Whisper-WebUI) salfter@janeway ~/Whisper-WebUI $

This happens with either the image downloaded from Docker Hub or an image built with docker compose build.

I found while getting insanely-fast-whisper-cli to work that I had to downgrade torch and torchaudio to v2.7.0 to get it to run on my GeForce GTX 1070. I tried making a similar change here in requirements.txt (which is why I then built it with docker compose build), but that made no difference.

I also tried a bare-metal setup, but pip install -r requirements.txt fails with this error:

(Whisper-WebUI) salfter@janeway ~/Whisper-WebUI $ !533
pip install -r requirements.txt
Looking in indexes: https://pypi.org/simple, https://download.pytorch.org/whl/cu126
Collecting git+https://github.com/jhj0517/jhj0517-whisper.git (from -r requirements.txt (line 15))
  Cloning https://github.com/jhj0517/jhj0517-whisper.git to /tmp/pip-req-build-ri5wj10z
  Running command git clone --filter=blob:none --quiet https://github.com/jhj0517/jhj0517-whisper.git /tmp/pip-req-build-ri5wj10z
  Resolved https://github.com/jhj0517/jhj0517-whisper.git to commit 197244318d5d75d9d195bff0705ab05a591684ec
  Installing build dependencies ... done
  Getting requirements to build wheel ... error
  error: subprocess-exited-with-error

  × Getting requirements to build wheel did not run successfully.
  │ exit code: 1
  ╰─> [25 lines of output]
      <string>:5: 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.
      Traceback (most recent call last):
        File "/home/salfter/Whisper-WebUI/lib/python3.13/site-packages/pip/_vendor/pyproject_hooks/_in_process/_in_process.py", line 389, in <module>
          main()
          ~~~~^^
        File "/home/salfter/Whisper-WebUI/lib/python3.13/site-packages/pip/_vendor/pyproject_hooks/_in_process/_in_process.py", line 373, in main
          json_out["return_val"] = hook(**hook_input["kwargs"])
                                   ~~~~^^^^^^^^^^^^^^^^^^^^^^^^
        File "/home/salfter/Whisper-WebUI/lib/python3.13/site-packages/pip/_vendor/pyproject_hooks/_in_process/_in_process.py", line 143, in get_requires_for_build_wheel
          return hook(config_settings)
        File "/tmp/pip-build-env-bb_afpvq/overlay/lib/python3.13/site-packages/setuptools/build_meta.py", line 331, in get_requires_for_build_wheel
          return self._get_build_requires(config_settings, requirements=[])
                 ~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
        File "/tmp/pip-build-env-bb_afpvq/overlay/lib/python3.13/site-packages/setuptools/build_meta.py", line 301, in _get_build_requires
          self.run_setup()
          ~~~~~~~~~~~~~~^^
        File "/tmp/pip-build-env-bb_afpvq/overlay/lib/python3.13/site-packages/setuptools/build_meta.py", line 512, in run_setup
          super().run_setup(setup_script=setup_script)
          ~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^
        File "/tmp/pip-build-env-bb_afpvq/overlay/lib/python3.13/site-packages/setuptools/build_meta.py", line 317, in run_setup
          exec(code, locals())
          ~~~~^^^^^^^^^^^^^^^^
        File "<string>", line 21, in <module>
        File "<string>", line 11, in read_version
      KeyError: '__version__'
      [end of output]

  note: This error originates from a subprocess, and is likely not a problem with pip.
error: subprocess-exited-with-error

× Getting requirements to build wheel did not run successfully.
│ exit code: 1
╰─> See above for output.

note: This error originates from a subprocess, and is likely not a problem with pip.
(Whisper-WebUI) salfter@janeway ~/Whisper-WebUI $

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