McCloudS / subgen

Autogenerate subtitles using OpenAI Whisper Model via Jellyfin, Plex, Emby, Tautulli, or Bazarr

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

ModuleNotFoundError: No module named 'watchdog'

Spillebulle opened this issue · comments

After a new image pull I get this error on :latest causing the container to stop

2024-04-09T17:50:18.254346388Z subgen.env file not found. Please run prompt_and_save_env_variables() first.
2024-04-09T17:50:18.254363974Z subgen.py exists and UPDATE is set to False, skipping download.
2024-04-09T17:50:18.254367378Z Launching subgen.py
2024-04-09T17:50:22.951462439Z Traceback (most recent call last):
2024-04-09T17:50:22.951493248Z File "/subgen/subgen.py", line 27, in
2024-04-09T17:50:22.951515086Z from watchdog.observers.polling import PollingObserver as Observer
2024-04-09T17:50:22.951528023Z ModuleNotFoundError: No module named 'watchdog'
2024-04-09T17:50:23.652572367Z Traceback (most recent call last):
2024-04-09T17:50:23.652591512Z File "/subgen/launcher.py", line 168, in
2024-04-09T17:50:23.652930700Z main()
2024-04-09T17:50:23.652938337Z File "/subgen/launcher.py", line 163, in main
2024-04-09T17:50:23.652999429Z subprocess.run([f'{python_cmd}', '-u', 'subgen.py'], check=True)
2024-04-09T17:50:23.653003860Z File "/usr/lib/python3.10/subprocess.py", line 526, in run
2024-04-09T17:50:23.653637977Z raise CalledProcessError(retcode, process.args,
2024-04-09T17:50:23.653642597Z subprocess.CalledProcessError: Command '['python3', '-u', 'subgen.py']' returned non-zero exit status 1.

I’ll rebuild the image and it should fix it. Quick fix is try UPDATE=True which fixes the watchdog import.

Assuming you're good now. Reply if not.

Assuming you're good now. Reply if not.

I added the UPDATE=True as an env but still same error message