McCloudS / subgen

Autogenerate subtitles using OpenAI Whisper Model via Jellyfin, Plex, Emby, Tautulli, or Bazarr
MIT License
570 stars 49 forks source link

ModuleNotFoundError: No module named 'watchdog' #80

Closed Spillebulle closed 5 months ago

Spillebulle commented 6 months ago

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.

McCloudS commented 6 months ago

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

McCloudS commented 5 months ago

Assuming you're good now. Reply if not.

Spillebulle commented 5 months ago

Assuming you're good now. Reply if not.

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

McCloudS commented 5 months ago

Your docker container just may be out of date, I've re-pulled just now and it launches without issue.

I changed how the watchdog module gets imported about 3 weeks ago, and also added watchdog as a requirement in requirements.txt (that gets install on docker image creation).