McCloudS / subgen

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

Install issue "No module named 'fastapi'" #25

Closed hhjuhl closed 10 months ago

hhjuhl commented 10 months ago

I´ve been trying to set up the docker image on a synology NAS. I keep getting this error. (See below). I'm using docker compose and I've tried all sorts of variations of the repo´s docker-compose.yml

USER@SERVER:/volume1/docker/appdata$ sudo docker-compose up subgen [+] Running 1/0 ⠿ Container subgen Created 0.0s Attaching to subgen subgen | Traceback (most recent call last): subgen | File "/subgen/./subgen.py", line 29, in subgen | from fastapi import FastAPI, File, UploadFile, Query, Header, Body, Form, Request subgen | ModuleNotFoundError: No module named 'fastapi' subgen exited with code 1

McCloudS commented 10 months ago

Thanks for the headsup, my dev 'environment' is me on an iPad in bed, so I make mistakes often. I inadvertently removed the package install portion in the script, it's now back in. If you mapped your volume, you can manually replace subgen.py or just re-pull the docker image. Leaving issue open for any comments.