Help please - Updating my odysseus build also seems to have removed my optional-requirements despite it being visible. #4846
Replies: 1 comment
-
|
Your screenshot pretty much shows the problem: the optional requirements file is copied into the image, but the install branch is disabled. This line is the important one: RUN pip install --no-cache-dir -r requirements.txt && if [ "false" = "true" ]; then pip install --no-cache-dir -r requirements-optional.txt; fiBecause that says You probably do not need to rebuild from scratch or wipe your data. Rebuild just the Odysseus image with the optional build arg enabled: cd /path/to/odysseus
docker compose build --no-cache --build-arg INSTALL_OPTIONAL=true odysseus
docker compose up -dAfter that, check that the optional packages are actually present inside the running container: docker compose exec odysseus python -m pip show PyMuPDF duckduckgo-searchFor PDF viewing specifically, docker compose exec odysseus python - <<'PY'
import importlib.util
for name in ("fitz", "duckduckgo_search"):
print(name, "OK" if importlib.util.find_spec(name) else "MISSING")
PYIf you want this to survive future build: .to: build:
context: .
args:
INSTALL_OPTIONAL: "true"Then future rebuilds can just be: docker compose up -d --buildNot sure STT/TTS are definitely from the same optional-requirements issue, worth checking separately. PDF viewing lines up with the skipped optional install, but STT/TTS may also depend on configured providers, local model setup, env vars, or a package that failed/imported differently after the update. The fastest way to separate those is to look at the app logs after the optional rebuild: docker compose logs --tail=200 odysseusIf it still fails after rebuilding with If my answer solved your problem, you can click answered the question. I'm really here to help, and along the way I'm also collecting Galaxy Brain badges haha 😆 |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
So I'm newish to using docker via cli (was using docker desktop before as i'm running linux so gpu wasn't couldn't be visible properly)

And after restarting my PC my Odysseus containers didn't startup. So I ran
docker compose up -d --buildand it spits out as normal (this is me rerunning it, took longer when I did it):
And now these things are broken: STT, TTS, Viewing PDFs, and I'm assuming something has broken with the optional requirements.
Can anybody help me out with fixing this or should I once again rebuild from scratch?
Beta Was this translation helpful? Give feedback.
All reactions